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

Assertion Issue #81

Open
digs1998 opened this issue Sep 28, 2022 · 1 comment
Open

Assertion Issue #81

digs1998 opened this issue Sep 28, 2022 · 1 comment

Comments

@digs1998
Copy link

I get this issue after running the predict.py command using the webcam argument.

Using model: monoloco_pp-201207-1350.pkl
Traceback (most recent call last):
File "/dartfs-hpc/rc/home/c/f006d3c/.conda/envs/mytest/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/dartfs-hpc/rc/home/c/f006d3c/.conda/envs/mytest/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/dartfs-hpc/rc/home/c/f006d3c/monoloco/monoloco/run.py", line 218, in
main()
File "/dartfs-hpc/rc/home/c/f006d3c/monoloco/monoloco/run.py", line 144, in main
webcam(args)
File "/dartfs-hpc/rc/home/c/f006d3c/monoloco/monoloco/visuals/webcam.py", line 80, in webcam
args, dic_models = factory_from_args(args)
File "/dartfs-hpc/rc/home/c/f006d3c/monoloco/monoloco/visuals/webcam.py", line 38, in factory_from_args
assert len(args.output_types) == 1 and 'json' not in args.output_types
AssertionError

@dimarapis
Copy link

If still interested, you need to parse --output_types multi (e.g. python3 -m monoloco.run predict --webcam --output_types multi ) or remove assertion. Also, you will probably need to install matplotlib 3.4.1 (pip install matplotlib==3.4.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