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

load() missing 1 required positional argument: 'Loader' #16

Open
Kerwin0621 opened this issue Jun 28, 2022 · 2 comments
Open

load() missing 1 required positional argument: 'Loader' #16

Kerwin0621 opened this issue Jun 28, 2022 · 2 comments

Comments

@Kerwin0621
Copy link

Traceback (most recent call last):
File "/home/kerwin/KeTrack/demo.py", line 59, in
track_images(args.path)
File "/home/kerwin/KeTrack/demo.py", line 10, in track_images
tracker = Tracker(model='yolox-s', ckpt='weights/yolox_s.pth',filter_class=['person'])
File "/home/kerwin/KeTrack/tracker.py", line 18, in init
cfg.merge_from_file("deep_sort/configs/deep_sort.yaml")
File "/home/kerwin/KeTrack/deep_sort/utils/parser.py", line 23, in merge_from_file
self.update(yaml.load(fo.read()))
TypeError: load() missing 1 required positional argument: 'Loader'

@winner-4
Copy link

Hello, I also encountered the same problem as you. Have you solved it?

@Anoue
Copy link

Anoue commented Aug 1, 2022

1.slef.update(yaml.load(fo.read(),Loader=yaml.FullLoader))
2.self.update(yaml.safe_load(fo.read()))
3.self.update(yaml.load(fo.read(), Loader=yaml.CLoader))
Choose one from three

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

3 participants