Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in initial yaml loading (TypeError: load() missing 1 required positional argument: 'Loader') #27

Open
KayembaLuwaga opened this issue Apr 29, 2024 · 1 comment

Comments

@KayembaLuwaga
Copy link

KayembaLuwaga commented Apr 29, 2024

In lines [53-59], trainval.py file;
I solved by commenting line 57 in trainval.py file, default_arg = yaml.load(f), and replace with default_arg = yaml.safe_load(f) , as shown below:

def load_arg(p):
# save arg
if os.path.exists(p.config):
with open(p.config, 'r') as f:
# default_arg = yaml.load(f)
default_arg = yaml.safe_load(f)

@zhou00NJUST
Copy link

try

pip install pyyaml==5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants