Open joonjeon opened 8 months ago
In the meantime, while the problem above seems to be caused by YOLOv9 having dual detection heads (as far as I understood),
model ensembling doesn't seem to work on single-head models (e.g. yolov9-e-converted.pt
), either:
Traceback (most recent call last):
File "/home/joonjeon/my_workspace/yolov9/val.py", line 389, in <module>
main(opt)
File "/home/joonjeon/my_workspace/yolov9/val.py", line 362, in main
run(**vars(opt))
File "/home/vsw1/miniconda3/envs/pytorch/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/joonjeon/my_workspace/yolov9/val.py", line 244, in run
save_one_json(predn, jdict, path, class_map) # append to COCO-JSON dictionary
File "/home/joonjeon/my_workspace/yolov9/val.py", line 46, in save_one_json
'category_id': class_map[int(p[5])],
IndexError: list index out of range
Please let me know the cause ASAP.
For the second question, maybe you can try to modify the copy_paste
parameter in hyp.scratch-high.yaml
to 0.0.
I solved the same problem by this method.
Hi! I am trying to ensemble two YOLOv9-E models but error occurs as follows:
Any ideas why this is happening?