You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create an array of strings of material names for each face.# If faces_materials_idx == -1 then that face doesn't have a material.idx=faces_materials_idx.cpu().numpy()
face_material_names=np.array(material_names)[idx] # (F,)face_material_names[idx==-1] =""
If idx ==-1, np.array(material_names)[-1] will be executed, which causes an error.
The text was updated successfully, but these errors were encountered:
bottler
changed the title
Bug in obj_io.py
Bug in obj_io.py with shapenet
Oct 24, 2022
Summary:
Make the negative index actually not an error
fixes#1368
Reviewed By: das-intensity
Differential Revision: D62177991
fbshipit-source-id: e5ed433bde1f54251c4d4b6db073c029cbe87343
🐛 Bugs / Unexpected behaviors
Error Information:
Instructions To Reproduce the Issue:
https://github.com/facebookresearch/pytorch3d/blob/main/pytorch3d/datasets/shapenet/shapenet_core.py line
If idx ==-1, np.array(material_names)[-1] will be executed, which causes an error.
The text was updated successfully, but these errors were encountered: