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

Fix bug OUTPUT_FOLDER is parsed as a list. #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tienthanh1993
Copy link

@tienthanh1993 tienthanh1993 commented Jul 27, 2021

Hello Jonathon,

I've found minor bug in OUTPUT_FOLDER argument which is caused "TypeError: expected str, bytes or os.PathLike object, not list" error when using OUTPUT_FOLDER argument.

expected str, bytes or os.PathLike object, not list
Traceback (most recent call last):
File "***\trackeval\eval.py", line 126, in evaluate
output_fol = dataset.get_output_fol(tracker)
File "***\trackeval\datasets_base_dataset.py", line 49, in get_output_fol
return os.path.join(self.output_fol, tracker, self.output_sub_fol)
File "D:\DevTools\Anaconda3\envs\smartcam-gpu\lib\ntpath.py", line 76, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not list
Traceback (most recent call last):
File "evaluate/scripts/run_mot_challenge.py", line 91, in
evaluator.evaluate(dataset_list, metrics_list)
File "***\trackeval_timing.py", line 16, in wrap
result = f(*args, **kw)
File "***\trackeval\eval.py", line 177, in evaluate
raise err
File "***\trackeval\eval.py", line 126, in evaluate
output_fol = dataset.get_output_fol(tracker)
File "***\trackeval\datasets_base_dataset.py", line 49, in get_output_fol
return os.path.join(self.output_fol, tracker, self.output_sub_fol)
File "D:\DevTools\Anaconda3\envs\smartcam-gpu\lib\ntpath.py", line 76, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not list

default OUTPUT_FOLDER was None at https://github.com/JonathonLuiten/TrackEval/blob/master/trackeval/datasets/mots_challenge.py#L22
and parsed as list at
https://github.com/JonathonLuiten/TrackEval/blob/master/scripts/run_mot_challenge.py#L55.
It's similar to other datasets

Thanks for your great work!
Thanh.

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

Successfully merging this pull request may close these issues.

1 participant