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

TypeError: 'DataContainer' object is not subscriptable #21

Closed
Wolfwjs opened this issue Aug 8, 2021 · 1 comment
Closed

TypeError: 'DataContainer' object is not subscriptable #21

Wolfwjs opened this issue Aug 8, 2021 · 1 comment

Comments

@Wolfwjs
Copy link

Wolfwjs commented Aug 8, 2021

请教大佬 ,用推荐的环境配置

MMCV: 0.5.6
MMDetection: 2.0.0+73c2043

train的时候没问题,但是test的时候报如下error,检查了数据集是没问题的,还可能是哪里的问题呢

(openmm) [wangjinsheng@HOST-10-198-32-69 tools]$ sh test_slurm.sh 
[                                                  ] 0/2782, elapsed: 0s, ETA:[                                                  ] 0/2782, elapsed: 0s, ETA:Traceback (most recent call last):
Traceback (most recent call last):
  File "test.py", line 149, in <module>
  File "test.py", line 149, in <module>
    main()
  File "test.py", line 127, in main
    args.show_score_thr)
  File "/mnt/lustre/wangjinsheng/project/lane-detection/conditional-lane-detection/mmdet/apis/test.py", line 28, in single_gpu_test
    main()
  File "test.py", line 127, in main
    args.show_score_thr)
  File "/mnt/lustre/wangjinsheng/project/lane-detection/conditional-lane-detection/mmdet/apis/test.py", line 28, in single_gpu_test
    img_tensor = data['img'][0]
TypeError: 'DataContainer' object is not subscriptable
    img_tensor = data['img'][0]
TypeError: 'DataContainer' object is not subscriptable
@Wolfwjs Wolfwjs closed this as completed Aug 31, 2021
@inSight-mk1
Copy link

怎么解决的啊?

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