vt-vl-lab / 3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting

Home Page:https://shihmengli.github.io/3D-Photo-Inpainting/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colab: 'missing argument' error prevents executing the inpainting

CrimsonCuttle opened this issue · comments

When attempting to execute the inpainting after going through the colab normally as one would, I get the following result:

Traceback (most recent call last):
  File "main.py", line 29, in <module>
    config = yaml.load(open(args.config, 'r'))
TypeError: load() missing 1 required positional argument: 'Loader'

How do I fix this? Is the colab just broken?

commented

Happens to me too. Looks like its broken

commented

Someone did say:

found a solution here: https://bobbyhadz.com/blog/python-typeerror-load-missing-1-required-positional-argument-loader

You have to edit "main.py" and change line 29 from "config = yaml.load(open(args.config, 'r'))" to "config = yaml.full_load(open(args.config, 'r'))"

The Python "TypeError: load() missing 1 required positional argument: 'Loader'" occurs when we use the yaml.load() method without specifying the Loader keyword argument. To solve the error, use the yaml.full_load() method instead or explicitly set the Loader keyword arg.

In another issue so maybe that can help

Someone did say:

found a solution here: https://bobbyhadz.com/blog/python-typeerror-load-missing-1-required-positional-argument-loader

You have to edit "main.py" and change line 29 from "config = yaml.load(open(args.config, 'r'))" to "config = yaml.full_load(open(args.config, 'r'))"

The Python "TypeError: load() missing 1 required positional argument: 'Loader'" occurs when we use the yaml.load() method without specifying the Loader keyword argument. To solve the error, use the yaml.full_load() method instead or explicitly set the Loader keyword arg.

In another issue so maybe that can help

This definitely fixed it! 🖖