-
Notifications
You must be signed in to change notification settings - Fork 12
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
How to inference the model on custom image? #10
Comments
Hi,
thank you for your interest in our work!
Could you share exactly which script you are using and maybe append a
screenshot of the stacktrace?
This sounds like a classical import issue. (Even though the module should
be named derender3d)
Best,
Felix
|
Hi @Brummi Thanks for the prompt reply. I use |
Hi, I am getting the same error. I am trying to run the script as suggested in the evaluation |
Hi, Could you maybe try this trick: import sys
sys.modules['unsup3d'] = derender3d |
Thanks @Brummi I'll give it a try. Which script should I use for evaluating on my custom image? I want to try inferencing an image and get the normal |
Can you please be specific in which file we should place this. I think the issue is with the load, I tried toch.load, and load with strict=False flag. Could not find any module named unsup3d anywhere in the other code files as well. |
The derender3d module was previously named unsup3d. So I guess this is some relict of refactoring the code for the github release. I am trying to check it right now. |
Interestingly, I am able to load the model based on CelebA and run the co3d data with it by re-directing the checkpoint path:
I get numbers like these as output: |
Put this code snippet in the file where you want to load the CO3D checkpoint. This should fix the issue of it not knowing unsup3d. import derender3d
import sys
sys.modules["unsup3d"] = derender3d |
@Ir1d I don't have a script where you can just load up an image and then inference on it. However, the scripts/images_decomposition_co3d.py file almost does what you want. It shows you how to do inference with the CO3D model on the CO3D dataset and then save all the outputs. (Concretely, in line 241, the normal map is saved to disk) |
Unfortunately the Evaluation script is misleading, it assumes everything is pre-computed and calculated the metrics. Better would have been a simple example of inferring all those i.e., step before running the metrics. |
FYI: lines 12 and 14 need to be switched to get the scripts/images_decomposition_co3d.py running. |
Hi,
Thanks for the great work. When I try to inference the model and loading the checkpoints (CO3D), with whatever script I always get such errors:
ModuleNotFoundError: No module named 'unsup3d
.@Brummi Could you please guide me on how to inference custom images using the pre-trained CO3D models? Thanks!
The text was updated successfully, but these errors were encountered: