Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference on custom data? #5

Open
vahidEttehadiAniml opened this issue Jul 15, 2024 · 13 comments
Open

Inference on custom data? #5

vahidEttehadiAniml opened this issue Jul 15, 2024 · 13 comments

Comments

@vahidEttehadiAniml
Copy link

I was wondering how I can feed my capture to model? Can you hint me to some code to understand better the coordinate and scaling of input camera poses.

Thanks in advance.

@apchenstu
Copy link
Collaborator

That's indeed a nice question, the code now doesn't support unposed input or custom format. Here is a loader example, the c2ws is in opencv format and the scene is normalized within [-0.5,0.5].
Please note that the current project doesn't support background, you need to preprocess your images by masking out the background first.

@vahidEttehadiAniml
Copy link
Author

Thanks for your reply.

I followed your suggestion, but I'm still having issues.

Quick question: Is the scene/camera normalized within the range of [-0.5, 0.5], or are only the objects within [-0.5, 0.5] while the cameras are positioned outside this range?
t (copy)

@apchenstu
Copy link
Collaborator

Yes, only the objects (instead of cameras) are normalized in [-0.5,0.5]

@apchenstu
Copy link
Collaborator

apchenstu commented Jul 16, 2024

BTW, after scaling the objects, please also need to align the cameras using: https://github.com/autonomousvision/LaRa/blob/main/dataLoader/gobjverse.py#L58-L66

@fenght96
Copy link

res
me too.

@apchenstu
Copy link
Collaborator

would you like to share the images and camera parameters of this example? Such a reconstruction quality is not excepted

res me too.

Would you like to share the images and camera parameters for this example? The reconstruction quality is unexpectedly low.

@fenght96
Copy link

Thanks for your reply.
I have sent to your e-mail address.

@apchenstu
Copy link
Collaborator

would you like to share the images and camera parameters of this example? Such a reconstruction quality is not excepted

res me too.

Would you like to share the images and camera parameters for this example? The reconstruction quality is unexpectedly low.

customize_case1_images_01_000001

Here are the results of the real-world images. The primary issue appears to be the improper setting of the scene center and scene scale. There is significant room for improvement with real-world inputs, such as using real-world images to train our model.

@vahidEttehadiAniml
Copy link
Author

would you like to share the images and camera parameters of this example? Such a reconstruction quality is not excepted

res me too.

Would you like to share the images and camera parameters for this example? The reconstruction quality is unexpectedly low.

customize_case1_images_01_000001

Here are the results of the real-world images. The primary issue appears to be the improper setting of the scene center and scene scale. There is significant room for improvement with real-world inputs, such as using real-world images to train our model.

can you elaborate more? In my case I render images while looking at the object center. So, I think scene center should be ok, but I am no sure about the scale.

@apchenstu
Copy link
Collaborator

would you like to share the images and camera parameters of this example? Such a reconstruction quality is not excepted

res me too.

Would you like to share the images and camera parameters for this example? The reconstruction quality is unexpectedly low.

customize_case1_images_01_000001
Here are the results of the real-world images. The primary issue appears to be the improper setting of the scene center and scene scale. There is significant room for improvement with real-world inputs, such as using real-world images to train our model.

can you elaborate more? In my case I render images while looking at the object center. So, I think scene center should be ok, but I am no sure about the scale.

Could you please send me the data and your loader?

@chenhonghua
Copy link

hi, @apchenstu

if I wanna use my real data, how to set the scale or scene center?

@apchenstu
Copy link
Collaborator

hi, @apchenstu

if I wanna use my real data, how to set the scale or scene center?

the scene center is the object center, and the bounding box is [-0.5,0.5], so you need to scale and shift the object that is roughly bounded by the bounding box.

@vahidEttehadiAniml
Copy link
Author

would you like to share the images and camera parameters of this example? Such a reconstruction quality is not excepted

res me too.

Would you like to share the images and camera parameters for this example? The reconstruction quality is unexpectedly low.

customize_case1_images_01_000001
Here are the results of the real-world images. The primary issue appears to be the improper setting of the scene center and scene scale. There is significant room for improvement with real-world inputs, such as using real-world images to train our model.

can you elaborate more? In my case I render images while looking at the object center. So, I think scene center should be ok, but I am no sure about the scale.

Could you please send me the data and your loader?

Sorry for the late reply. I just sent the a sample+dataloader to you. Thanks in advacne.

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

No branches or pull requests

4 participants