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

Issue in conversion to BDD100K format #139

Open
Raspberry-beans opened this issue May 17, 2023 · 0 comments
Open

Issue in conversion to BDD100K format #139

Raspberry-beans opened this issue May 17, 2023 · 0 comments

Comments

@Raspberry-beans
Copy link

Hi,
I have got the prediction file (.pkl) after using tools/test.py . Now I want to convert predictions into BDD100K format, but receiving the error listed below. Any suggestions would be appreciated.

Command given :

python tools/to_bdd100k.py /HOMES/rehman/models/qdtrack/qdtrack/configs/bdd100k/qdtrack-frcnn_r50_fpn_12e_bdd100k.py --res /HOMES/rehman/models/qdtrack/qdtrack/results/result.pkl --task box_track --bdd-dir /HOMES/rehman/models/qdtrack/qdtrack/bdd_track_result/ --nproc 4

Error received:


loading annotations into memory...
Done (t=2.04s)
creating index...
index created!

Loading results from /HOMES/rehman/models/qdtrack/qdtrack/results/result.pkl

Start converting to BDD100K box tracking format
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "/HOMES/rehman/models/qdtrack/qdtrack/tools/to_bdd100k.py", line 76, in <module>
    main()
  File "/HOMES/rehman/models/qdtrack/qdtrack/tools/to_bdd100k.py", line 67, in main
    preds2bdd100k(
  File "/HOMES/rehman/models/qdtrack/qdtrack/qdtrack/core/to_bdd100k/transforms.py", line 139, in preds2bdd100k
    metric2func[task](dataset, results, out_base, *args, **kwargs)
  File "/HOMES/rehman/models/qdtrack/qdtrack/qdtrack/core/to_bdd100k/transforms.py", line 101, in box_track_to_bdd100k
    for id_, instance in track_dict.items():
AttributeError: 'list' object has no attribute 'items'

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

1 participant