generative-inpainting-pytorch icon indicating copy to clipboard operation
generative-inpainting-pytorch copied to clipboard

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

Open mauricewells opened this issue 2 years ago • 2 comments

I run with the command below, but your code makes error message like above.

python test_single.py --image examples/imagenet/imagenet_patches_ILSVRC2012_val_00008210_input.png --mask examples/center_mask_256.png --output examples/output.png

how can i fix that?

mauricewells avatar Apr 15 '22 10:04 mauricewells

Could you post your error message or logs here?

daa233 avatar Apr 18 '22 05:04 daa233

i resolved with !pip install pyyaml==5.4.1

https://stackoverflow.com/questions/69564817/typeerror-load-missing-1-required-positional-argument-loader-in-google-col

st0421 avatar May 27 '22 01:05 st0421

Fixed by replacing return yaml.load(stream) with return yaml.load(stream, Loader=yaml.FullLoader) on line 476 of /utils/tools.py

nathanaelhuh avatar Apr 06 '23 18:04 nathanaelhuh