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

multiple images per gpu #8

Open
manongXT opened this issue Dec 15, 2021 · 1 comment
Open

multiple images per gpu #8

manongXT opened this issue Dec 15, 2021 · 1 comment

Comments

@manongXT
Copy link

manongXT commented Dec 15, 2021

I want to use " multiple images per gpu".in "# TODO: support multiple images per gpu (only minor changes are needed)
dataset = build_dataset(cfg.data.test)
data_loader = build_dataloader(
dataset,
imgs_per_gpu=2,
workers_per_gpu=1,
dist=distributed,
shuffle=False)"
I change the imgs_per_gpu=1 to imgs_per_gpu=2,but I got the error 'RuntimeError: stack expects each tensor to be equal size, but got [3, 128, 128] at entry 0 and [3, 128, 96] at entry 1' ,but I search the code ,i did not find the size of (128,96),so ,how can I use 'multiple images per gpu' to test.

@QinWinner
Copy link

image
I think you can check if you set ONNX_EXPORT=False in mmdet.deploy_params.py

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