hitachinsk / FGT

[ECCV 2022] Flow-Guided Transformer for Video Inpainting
https://hitachinsk.github.io/publication/2022-10-01-Flow-Guided-Transformer-for-Video-Inpainting
MIT License
300 stars 31 forks source link

yaml.load fails in wsl, change load method to make it work #15

Closed R4ZZ3 closed 2 years ago

R4ZZ3 commented 2 years ago

When testing with the given test script (video_inpainting.py) the following happens:

With PyYAML==6.0 on Windows using vs code in WSL2 I get error: image

According to this it now needs to explicitly tell Loader object or either use safe_load / full _load methods as explained here: https://bobbyhadz.com/blog/python-typeerror-load-missing-1-required-positional-argument-loader

When I change to yaml.full_load(f) it works

hitachinsk commented 2 years ago

Thanks for your advise. When I tested the scripts on my own server, the yaml.load only threw warnings, but it seems to be an error in other newer environments. I will fix it.

hitachinsk commented 2 years ago

I have modified the load function to yaml.full_load, hope it works for you.