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

IndexError: list index out of range #439

Open
andynnnnn opened this issue Jul 22, 2024 · 1 comment
Open

IndexError: list index out of range #439

andynnnnn opened this issue Jul 22, 2024 · 1 comment

Comments

@andynnnnn
Copy link

Traceback (most recent call last):
File "D:\Github\YOLO-World-master\YOLO-World-master\demo\video_demo.py", line 109, in
main()
File "D:\Github\YOLO-World-master\YOLO-World-master\demo\video_demo.py", line 93, in main
visualizer.add_datasample(name='video',
File "D:\Anaconda\envs\Yolo-world613\lib\site-packages\mmengine\dist\utils.py", line 427, in wrapper
return func(*args, **kwargs)
File "D:\Anaconda\envs\Yolo-world613\lib\site-packages\mmdet\visualization\local_visualizer.py", line 371, in add_datasample
pred_img_data = self._draw_instances(image, pred_instances,
File "D:\Anaconda\envs\Yolo-world613\lib\site-packages\mmdet\visualization\local_visualizer.py", line 147, in _draw_instances
label_text = classes[
IndexError: list index out of range
根据之前的 #65 中的建议,我也做了调整cocodataset类别,还是报错~~~请问该如何解决呢谢谢

@WtElio
Copy link

WtElio commented Aug 10, 2024

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