generative-inpainting-pytorch
generative-inpainting-pytorch copied to clipboard
TypeError: load() missing 1 required positional argument: 'Loader'
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?
Could you post your error message or logs here?
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
Fixed by replacing return yaml.load(stream)
with return yaml.load(stream, Loader=yaml.FullLoader)
on line 476 of /utils/tools.py