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

ModuleNotFoundError: No module named 'kaolin.graphics' #2

Closed
ujjawalcse opened this issue Apr 8, 2021 · 6 comments
Closed

ModuleNotFoundError: No module named 'kaolin.graphics' #2

ujjawalcse opened this issue Apr 8, 2021 · 6 comments

Comments

@ujjawalcse
Copy link

ujjawalcse commented Apr 8, 2021

Pascal 3D+ dataset with 4722 images is successfully loaded.

Traceback (most recent call last): File "main.py", line 149, in <module> from rendering.renderer import Renderer File "/home/ujjawal/my_work/object_recon/2d3d/code/rendering/renderer.py", line 1, in <module> from kaolin.graphics.dib_renderer.rasterizer import linear_rasterizer ModuleNotFoundError: No module named kaolin.graphics

I also downloaded the graphics folder from here https://github.com/NVIDIAGameWorks/kaolin/tree/e7e513173bd4159ae45be6b3e156a3ad156a3eb9 and tried to place in the graphics folder in the kaolin folder locally and here is the error
Traceback (most recent call last): File "main.py", line 149, in <module> from rendering.renderer import Renderer File "/home/ujjawal/my_work/object_recon/2d3d/code/rendering/renderer.py", line 1, in <module> from kaolin.graphics.dib_renderer.rasterizer import linear_rasterizer File "/usr/local/lib/python3.6/dist-packages/kaolin-0.9.0-py3.6-linux-x86_64.egg/kaolin/graphics/__init__.py", line 2, in <module> File "/usr/local/lib/python3.6/dist-packages/kaolin-0.9.0-py3.6-linux-x86_64.egg/kaolin/graphics/nmr/__init__.py", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/kaolin-0.9.0-py3.6-linux-x86_64.egg/kaolin/graphics/nmr/rasterizer.py", line 30, in <module> ImportError: cannot import name rasterize_cuda

@NikolaZubic
Copy link
Owner

There are a lot of problems that can occur. Most users emailed us and were satisfied. Everything worked. It is recommended to use Linux. We cannot guarantee that this project will work on other operating systems because of the Kaolin and other third-party modules. Also, do not forget to check your CUDA version and update everything. If you have that problem, it is associated with Kaolin installation, not with this project.

@ricklentz
Copy link
Contributor

ricklentz commented Aug 9, 2021

@ujjawalcse You may want to double-check that you used the correct branch of Kaolin.

@NikolaZubic Great work! I did a PR to add a line to your install docs after the cd kaolin step: git checkout e7e513173b. It will be a clear reminder to others not to forget to switch Kaolin branches before installing (else, they will get the above "ModuleNotFoundError: No module named kaolin.graphics" error).

ricklentz added a commit to ricklentz/2dimageto3dmodel that referenced this issue Aug 9, 2021
This step will help others to avoid the "ModuleNotFoundError: No module named kaolin.graphics" error.

Fix to issue:
NikolaZubic#2
@ujjawalcse
Copy link
Author

Thanks, @ricklentz,
yaa sure I'll try it.

@Praveenk8051
Copy link

@ujjawalcse were you able to solve this error ?

@lw0210
Copy link

lw0210 commented Oct 27, 2021

Thanks, @ricklentz, yaa sure I'll try it.

Have you reproduced the paper?

@lw0210
Copy link

lw0210 commented Nov 1, 2021 via email

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

5 participants