facebookresearch / frankmocap

A Strong and Easy-to-use Single View 3D Hand+Body Pose Estimator
Other
2.12k stars 373 forks source link

Error in handmocap demo #156

Closed gyfastas closed 2 years ago

gyfastas commented 2 years ago

Hi! Thank you for your great work! I tried running handmocap demo on windows (after following the installation guideline provided by https://github.com/carlosedubarreto/frankmocap_win_install ) and found it raises error in handmocap/hand_bbox_detector.py :

line 30, in from model.utils.config import cfg as cfgg ModuleNotFoundError: No module named 'model'

Then I tried using from detectors.hand_object_detector.lib.model.utils.config import cfg as cfgg but it still does not works. The error is as follows:

frankmocap\detectors\hand_object_detector\lib\model\roi_layers\nms.py", line 3, in from model import _C ModuleNotFoundError: No module named 'model'

Could you provide some suggestions? I'm a little bit confused by the importing

penincillin commented 2 years ago

It seems that the detectron2 is not correctly installed on your windows. Please make sure the detectron2 is correctly installed according to your operating system, CUDA version and etc.

lakehui commented 2 years ago

try cd hand_object_detector/lib
python setup.py build develop

it works for me.

sunmengnan commented 2 years ago

hand_object_detector

where is hand_object_detector?

penincillin commented 2 years ago

@sunmengnan It is at ./detectors/hand_object_detector.

liuhaorandezhanghao commented 2 years ago

@sunmengnan It is at ./detectors/hand_object_detector.

(venv) [root@algo-10-143-1-10 frankmocap-main]# python -m demo.demo_bodymocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output --renderer_type pytorch3d Loading Body Pose Estimator use_smplx False WARNING: You are using a SMPL model, with only 10 shape coefficients. Cannot import OpendrRenderer Cannot import Pytorch3dRenderer Traceback (most recent call last): File "/opt/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/opt/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/vtuber/project/frankmocap/frankmocap-main/demo/demo_bodymocap.py", line 178, in main() File "/home/vtuber/project/frankmocap/frankmocap-main/demo/demo_bodymocap.py", line 169, in main from renderer.screen_free_visualizer import Visualizer File "/home/vtuber/project/frankmocap/frankmocap-main/renderer/screen_free_visualizer.py", line 25, in assert g_valid_visualize, "You should import either OpenDR or Pytorch3D" AssertionError: You should import either OpenDR or Pytorch3D

penincillin commented 2 years ago

@liuhaorandezhanghao It seems that the opendr or pytorch3d is not correctly installed. Would you min check line-14 and line-20 to see whether the rendering packages are successfully installed.