Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Location of the volume #4

Closed
lochuynh1989 opened this issue Mar 3, 2020 · 3 comments
Closed

Location of the volume #4

lochuynh1989 opened this issue Mar 3, 2020 · 3 comments

Comments

@lochuynh1989
Copy link

Hi there,

I wonder whether the origin of the volume is (0,0,0)?

I'm testing the method on a public dataset (http://people.csail.mit.edu/drdaniel/mesh_animation), and I know exactly where (0,0,0) is in the images. But the volume seems to float around the scene. This is the first preview for training process:
prog_000001

Each camera is pointing to the opposite side of the scene, so I expect the same for the volume location in images. But for some reason, they are on the same side in the images. Can you help?

Thank you.

@stephenlombardi
Copy link
Contributor

Hi,

The origin of the volume is dictated by the data inside pose.txt. I provided an example pose.txt for the dry ice dataset but that's a specific transformation for that particular dataset; you'll have to change it if you're using your own data. See my post here for an explanation of that file: #1 (comment)

If you know the origin of the scene is [0, 0, 0] then you should be able to just put an identity matrix inside the pose.txt file.

@lochuynh1989
Copy link
Author

I have run the code with identity matrix in pose.txt and got the above result.
I tried to change the translation in pose.txt, but it only worked on 1 set of cameras. For example, on the the first column, I changed the translation vector to [1,0,0], the volume moved to the right on the first camera and to the left on the second one.
As you mention, I may need to convert my world space into your world space and get the new KRTs. What should I do to get that?

@stephenlombardi
Copy link
Contributor

My guess is the focal length/principal point are wrong. Note that the dataset (dryice1.py) I've provided modifies the focal length and principal point in the KRT file because I'm using downsampled images (#1 (comment)), you'll probably have to correct that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants