Spaces:
Runtime error
Runtime error
# define similiar objects as pytorch3d using numpy | |
from collections import namedtuple | |
Faces = namedtuple("Faces", "verts_idx normals_idx textures_idx materials_idx") | |
Aux = namedtuple( | |
"Properties", "normals verts_uvs material_colors texture_images texture_atlas" | |
) | |
Obj = namedtuple("Obj", "verts faces properties") | |
DEFAULT_MATERIAL= { | |
'material_1': | |
{ | |
'ambient_color': [1., 1., 1.], | |
'diffuse_color': [1., 1., 1.], | |
'specular_color': [0., 0., 0.], | |
'shininess': 10. | |
} | |
} |