-
Notifications
You must be signed in to change notification settings - Fork 173
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
Matching the geometry to the input image #22
Comments
Hi @jamalknight! This is an excellent question! I want to give a complete (and thus somewhat long!) response, as I think this will be useful for others as well. My answer below assumes a perspective camera. What does Mesh R-CNN output?First, let's see what Mesh R-CNN outputs. Mesh R-CNN returns the 3D shape of an object in the camera coordinate system confined in a 3D box which respects the aspect ratio of the object detected in the image. If you provide the focal length Metric ScaleWhile most images nowadays have access to their focal_length I don't care about metric scale. I just want to pixel align.However if you don't care about metric scale and you only care about pixel aligning the object to the image, that is possible with our demo! The demo runs with a default focal_length Here is an example! When I run the demo on an input image (1st image), it recognizes the sofa (2nd image). I get a 3D shape prediction for the sofa which after I render with blender with focal length |
@gkioxari Could you please share the blender script (if you still have it) you used to produce the third image? Also I wonder if it's possible to render the mesh onto the image using PyTorch3D directly. Figuring this out (new to 3D)... |
I am currently using (location: (0, 0, 0), rotation: (180deg, 0,180deg), focal length: 20mm, clip start/end: 0.1m/100m) I'm still getting a gray render when I go to camera view. Is it a problem with the light? or maybe clipping? Here's the original image and mesh produced by MeshRCNN: chair3.zip Thank you @gkioxari ! |
Hmm, enabling "Depth of Field" makes it show something. Not sure why "Depth of Field" is needed... |
Hi there
I have a question about aligning the geometry to a camera in a 3D app like Maya.
Object classification/segmentation is ok example
The geometry obj file is created, but I was wondering if there is a way to align the geometry with a perspective camera that matches the original image.
I would like it to match the image - is there a relatively simple way this could be done?
The text was updated successfully, but these errors were encountered: