yfeng95 / PIXIE

Other
450 stars 65 forks source link

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

Open Mihailllll opened 2 years ago

Mihailllll commented 2 years ago

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 commented 2 years ago

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