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

每次到测试阶段都报错 #99

Open
ZephyrNg opened this issue Jan 7, 2020 · 0 comments
Open

每次到测试阶段都报错 #99

ZephyrNg opened this issue Jan 7, 2020 · 0 comments

Comments

@ZephyrNg
Copy link

ZephyrNg commented Jan 7, 2020

Traceback (most recent call last):
  File "refinedet_train_test.py", line 438, in <module>
    train()
  File "refinedet_train_test.py", line 264, in train
    top_k, thresh=0.01)
  File "refinedet_train_test.py", line 377, in test_net
    out = net(x=x, test=True)  # forward pass
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/nn/modules/module.py   ", line 224, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/nn/parallel/data_par   allel.py", line 59, in forward
    replicas = self.replicate(self.module, self.device_ids[:len(inputs)])
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/nn/parallel/data_par   allel.py", line 64, in replicate
    return replicate(module, device_ids)
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/nn/parallel/replicat   e.py", line 12, in replicate
    param_copies = Broadcast(devices)(*params)
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/nn/parallel/_functio   ns.py", line 19, in forward
    outputs = comm.broadcast_coalesced(inputs, self.target_gpus)
  File "/home/wuzhefu/anaconda3/envs/ssd/lib/python3.6/site-packages/torch/cuda/comm.py", line    48, in broadcast_coalesced
    if tensor.get_device() != devices[0]:
IndexError: tuple index out of range

请问这是什么问题?

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

1 participant