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

bug show_results #12

Open
iceriver97 opened this issue Mar 22, 2023 · 6 comments
Open

bug show_results #12

iceriver97 opened this issue Mar 22, 2023 · 6 comments

Comments

@iceriver97
Copy link

Traceback (most recent call last):
  File "./tools/test.py", line 263, in <module>
    main()
  File "./tools/test.py", line 228, in main
    outputs = single_gpu_test(model, data_loader, args.show, args.show_dir)
  File "/home/Dataset/weiqian/mmdetection3d/mmdet3d/apis/test.py", line 53, in single_gpu_test
    out_dir=out_dir,
  File "/home/Dataset/weiqian/mmdetection3d/mmdet3d/models/detectors/mvx_two_stage.py", line 466, in show_results
    if isinstance(data['points'][0], DC):
KeyError: 'points'
@YoushaaMurhij
Copy link

YoushaaMurhij commented Mar 24, 2023

I met the same error when I tried to launch non dist. test script.
python $(dirname "$0")/test.py $CONFIG $CHECKPOINT --eval bbox --show

@RoboticsYimingLi
Copy link
Contributor

Is this problem solved? @YoushaaMurhij @iceriver97

@a2801603396
Copy link

I met the same error. Counld you tell me how to solved it?

@a2801603396
Copy link

If I don't add - show during testing, I won't report this error. But I also report this error during training. This error will be reported when training 1 epochs validation.

@RoboticsYimingLi
Copy link
Contributor

Please use dist mode. Thanks!

@h0n1
Copy link

h0n1 commented Aug 11, 2023

Please use dist mode. Thanks!

It seems that show mode is not supported when use non dist mode

if not distributed:
# assert False
model = MMDataParallel(model, device_ids=[0])
outputs = single_gpu_test(model, data_loader, args.show, args.show_dir)
else:
model = MMDistributedDataParallel(
model.cuda(),
device_ids=[torch.cuda.current_device()],
broadcast_buffers=False)
outputs = custom_multi_gpu_test(model, data_loader, args.tmpdir,
args.gpu_collect)

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

5 participants