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
ImportError: cannot import name 'Textures' #64
Comments
The same issue was raised in PIFu repository and the pull request is merged there. Unfortunately I don't have bandwidth to change the code in PIFuHD for now. But you can make the same modification in pifuhd repo as well. Thanks. |
I'm seeing same error, very annoying. |
after making the suggested change, still getting another error:
|
Facing same issue :/ I don't see any documentation under https://pytorch3d.readthedocs.io/en/latest/modules/renderer/texturing.html. I guess the moved texturing from structures to render class. |
Same issue Line 42 Line 111 After that,it work :) |
@GambleV after applying chagnges you recommended above, I am getting the following error.
Any help? Thanks |
@farazBhatti , apologize for post wrong ans. The two lines should be changed to Try this :) |
where in the google colab do I put this? Thanks!!! |
Also, Do you have detailed instructions for running this locally? Or in a docker VM (with and without nvidai-cuda support?) |
@wanfuse123 |
What FILE is this change supposed to be made in ? I downloaded the project , installed all its dependencies, and I get the error. Can you tell me what file these lines are changed in. grep -R "from pytorch3d.renderer import" . turns up nothing in the pifudh directory. Thanks for being patient! |
for me error at: NameError Traceback (most recent call last) /content/pifuhd/lib/colab_util.py in generate_video_from_obj(obj_path, image_path, video_path, renderer) NameError: name 'Meshes' is not defined |
@EnricoBeltramo |
This issue occur in lib/colab_util.py when use |
I suppose meshes doesn't exist anymore in pytorch3d: ---> 41 from pytorch3d.renderer import TexturesUV, TexturesVertex, TexturesAtlas, Meshes ImportError: cannot import name 'Meshes' Some one know the correct version of pytorch3d in order to change colab here: |
Sorry for having you guys wait for long time. I just made fix and it should be working now! |
ImportError Traceback (most recent call last)
in ()
----> 1 from lib.colab_util import generate_video_from_obj, set_renderer, video
2
3 renderer = set_renderer()
4 generate_video_from_obj(obj_path, out_img_path, video_path, renderer)
5
/content/pifuhd/lib/colab_util.py in ()
39
40 # Data structures and functions for rendering
---> 41 from pytorch3d.structures import Meshes, Textures
42 from pytorch3d.renderer import (
43 look_at_view_transform,
ImportError: cannot import name 'Textures'
from the google colab could be due to pytorch3d version?
The text was updated successfully, but these errors were encountered: