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

Problem with docker, it is not inferring ( I did not change any parameter) #110

Open
Marwani3D opened this issue Dec 6, 2023 · 1 comment

Comments

@Marwani3D
Copy link

Marwani3D commented Dec 6, 2023

Hello, Docker is not running properly

(econ) root ➜ ~/code $ python -m apps.infer -cfg ./configs/econ.yaml -in_dir ./examples -out_dir ./results
Resume Normal Estimator from  ./data/ckpt/normal.ckpt 
Complete with  SMPL-X (Explicit) 
SMPL-X estimate with  PIXIE 
Dataset Size: 1
  0%|                                                                                                             | 0/1 [00:00<?, ?it/s]INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Body Fitting -- normal: 0.000 | silhouette: 0.194 | joint: 0.543 | Total: 0.737| loose:1, occluded:0: 100%|| 50/50 [00:15<00:00,  3.20i
Body Fitting -- normal: 0.000 | silhouette: 0.194 | joint: 0.543 | Total: 0.737| loose:1, occluded:0: 100%|| 50/50 [00:15<00


304e9c4798a8c3967de7c74c24ef2e38:   0%|                                                                           | 0/1 [05:56<?, ?it/s]
Traceback (most recent call last):
  File "/root/miniconda/envs/econ/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/miniconda/envs/econ/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/root/code/apps/infer.py", line 471, in <module>
    BNI_object.extract_surface(False)
  File "/root/code/lib/common/BNI.py", line 48, in extract_surface
    bni_result = double_side_bilateral_normal_integration(
  File "/root/code/lib/common/BNI_utils.py", line 690, in double_side_bilateral_normal_integration
    vertices_front, faces_front = remove_stretched_faces(vertices_front, faces_front)
  File "/root/code/lib/common/BNI_utils.py", line 132, in remove_stretched_faces
    faces_cam_angles = np.dot(mesh.face_normals, camera_ray)
  File "/root/miniconda/envs/econ/lib/python3.8/site-packages/trimesh/base.py", line 340, in face_normals
    triangles=self.triangles,
  File "/root/miniconda/envs/econ/lib/python3.8/site-packages/trimesh/caching.py", line 139, in get_cached
    value = function(*args, **kwargs)
  File "/root/miniconda/envs/econ/lib/python3.8/site-packages/trimesh/base.py", line 782, in triangles
    triangles = self.vertices.view(np.ndarray)[self.faces]
**IndexError: index 0 is out of bounds for axis 0 with size 0**
@YuliangXiu
Copy link
Owner

Please check #24 and #10

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

2 participants