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

prepare_pose code maybe wrong #22

Open
HW140701 opened this issue Oct 15, 2024 · 5 comments
Open

prepare_pose code maybe wrong #22

HW140701 opened this issue Oct 15, 2024 · 5 comments

Comments

@HW140701
Copy link

When I tested it with reference to the prepare_pose/README.md document, the following error occurred when I ran DWPose

Traceback (most recent call last):
  File "inference_video.py", line 23, in <module>
    pose = DWposeDetector()
  File "/home/huangwang/git/RealisDance_new/RealisDance/prepare_pose/DWPose/ControlNet-v1-1-nightly/annotator/dwpose/__init__.py", line 35, in __init__
    self.pose_estimation = Wholebody()
  File "/home/huangwang/git/RealisDance_new/RealisDance/prepare_pose/DWPose/ControlNet-v1-1-nightly/annotator/dwpose/wholebody.py", line 16, in __init__
    self.session_det = ort.InferenceSession(path_or_bytes=onnx_det, providers=providers)
  File "/home/huangwang/miniforge3/envs/DWPose_control-v11/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
  File "/home/huangwang/miniforge3/envs/DWPose_control-v11/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 480, in _create_inference_session
    sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from ControlNet-v1-1-nightly/annotator/ckpts/yolox_l.onnx failed:Load model ControlNet-v1-1-nightly/annotator/ckpts/yolox_l.onnx failed. File doesn't exist

I checked the original code of the DWPose repo and found that the weight path in whole_body.py is different.
so I want to ask, is this prepare_pose reviewed or checked?

@theFoxofSky
Copy link
Collaborator

Please check this issue @Wangbenzhi

@zhuochen02
Copy link

When I tested it with reference to the prepare_pose/README.md document, the following error occurred when I ran DWPose

Traceback (most recent call last):
  File "inference_video.py", line 23, in <module>
    pose = DWposeDetector()
  File "/home/huangwang/git/RealisDance_new/RealisDance/prepare_pose/DWPose/ControlNet-v1-1-nightly/annotator/dwpose/__init__.py", line 35, in __init__
    self.pose_estimation = Wholebody()
  File "/home/huangwang/git/RealisDance_new/RealisDance/prepare_pose/DWPose/ControlNet-v1-1-nightly/annotator/dwpose/wholebody.py", line 16, in __init__
    self.session_det = ort.InferenceSession(path_or_bytes=onnx_det, providers=providers)
  File "/home/huangwang/miniforge3/envs/DWPose_control-v11/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
  File "/home/huangwang/miniforge3/envs/DWPose_control-v11/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 480, in _create_inference_session
    sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from ControlNet-v1-1-nightly/annotator/ckpts/yolox_l.onnx failed:Load model ControlNet-v1-1-nightly/annotator/ckpts/yolox_l.onnx failed. File doesn't exist

I checked the original code of the DWPose repo and found that the weight path in whole_body.py is different. so I want to ask, is this prepare_pose reviewed or checked?

If you've placed the file correctly and it still doesn't work, just use the absolute path

@Wangbenzhi
Copy link
Contributor

thanks for your feedbeek, fixed.

@HW140701
Copy link
Author

prepare_pose code have too many error, I guess you haven't pulled your own code and actually run it.

@theFoxofSky
Copy link
Collaborator

@Wangbenzhi

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

4 participants