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

run error in LSROloss(nn.Module): #20

Open
SpiritBear000 opened this issue Nov 23, 2018 · 1 comment
Open

run error in LSROloss(nn.Module): #20

SpiritBear000 opened this issue Nov 23, 2018 · 1 comment

Comments

@SpiritBear000
Copy link

when i run train_baseline.py

2018-11-23 20-35-58

########## error log ############

Traceback (most recent call last):
File "/Person-reid-GAN-pytorch/train_baseline.py", line 371, in
num_epochs=130)
File "/Person-reid-GAN-pytorch/train_baseline.py", line 251, in train_model
loss = criterion(outputs,labels,flags)
File "/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/Person-reid-GAN-pytorch/train_baseline.py", line 178, in forward
return loss.mean()
RuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/aten/src/THC/generated/../THCReduceAll.cuh:339
/pytorch/aten/src/THC/THCTensorScatterGather.cu:97: void THCudaTensor_gatherKernel(TensorInfo<Real, IndexType>, TensorInfo<Real, IndexType>, TensorInfo<long, IndexType>, int, IndexType) [with IndexType = unsigned int, Real = float, Dims = 2]: block: [0,0,0], thread: [10,0,0] Assertion indexValue >= 0 && indexValue < src.sizes[dim] failed.
/pytorch/aten/src/THC/THCTensorScatterGather.cu:97: void THCudaTensor_gatherKernel(TensorInfo<Real, IndexType>, TensorInfo<Real, IndexType>, TensorInfo<long, IndexType>, int, IndexType) [with IndexType = unsigned int, Real = float, Dims = 2]: block: [0,0,0], thread: [13,0,0] Assertion indexValue >= 0 && indexValue < src.sizes[dim] failed.

@PratikKulkar
Copy link

Hey, did you got the solution I am also facing the same issue while training GAN!

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