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

TypeError: load() missing 1 required positional argument: 'Loader' #27

Open
Mihailllll opened this issue Apr 21, 2022 · 2 comments
Open

Comments

@Mihailllll
Copy link

Hi!
I have configured cuda and torch of other versions, because my system requires it.
I wont start body example, but get this error:

total 12 images
creating the SMPLX Decoder
Traceback (most recent call last):
File "demos/demo_fit_body.py", line 165, in
main(parser.parse_args())
File "demos/demo_fit_body.py", line 35, in main
pixie = PIXIE(config = pixie_cfg, device=device)
File "/home/owner/PythonProjects/3dBodyFromImage/4/PIXIE/pixielib/pixie.py", line 50, in init
self._create_model()
File "/home/owner/PythonProjects/3dBodyFromImage/4/PIXIE/pixielib/pixie.py", line 108, in _create_model
self.smplx = SMPLX(self.cfg.model).to(self.device)
File "/home/owner/PythonProjects/3dBodyFromImage/4/PIXIE/pixielib/models/SMPLX.py", line 156, in init
self.extra_joint_selector = JointsFromVerticesSelector(
File "/home/owner/PythonProjects/3dBodyFromImage/4/PIXIE/pixielib/models/lbs.py", line 399, in init
data = yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'

Please, help fix this.

@Mihailllll
Copy link
Author

It's fix this error
from yaml import Loader
with open(fname, 'r') as f:
data = yaml.load(f, Loader=Loader)

@One-coder-gzh
Copy link

I have the same question.

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