Traceback (most recent call last):


 "train_gta2cityscapes_multi.py", line 413, in <module>

main()


 "train_gta2cityscapes_multi.py", line 293, in main

loss_seg1 = loss_calc(pred1, labels, args.gpu)


 "train_gta2cityscapes_multi.py", line 145, in loss_calc

return criterion(pred, label)


 "/home/student/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 491, in __call__

result = self.forward(*input, **kwargs)


 "/home/student/AdaptSegNet-master/utils/loss.py", line 34, in forward

predict = predict[target_mask.view(n, h, w, 1).repeat(1, 1, 1, c)].view(-1, c)
RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1525909934016/work/aten/src/THC/generic/THCStorage.cu:58

Traceback (most recent call last):


 "/home/rxs1576/latest_scripts/benchmark_pytorch.py", line 102, in <module>

timeit.timeit(benchmark_step, number=args.num_warmup_batches)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/timeit.py", line 233, in timeit

return Timer(stmt, setup, timer, globals).timeit(number)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/timeit.py", line 177, in timeit

timing = self.inner(it, self.timer)


 "<timeit-src>", line 6, in inner


 "/home/rxs1576/latest_scripts/benchmark_pytorch.py", line 83, in benchmark_step

output = model(data)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torchvision/models/resnet.py", line 204, in forward

x = self.layer4(x)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/container.py", line 92, in forward

input = module(input)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torchvision/models/resnet.py", line 110, in forward

identity = self.downsample(x)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/container.py", line 92, in forward

input = module(input)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__

result = self.forward(*input, **kwargs)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 345, in forward

return self.conv2d_forward(input, self.weight)


 "/home/rxs1576/.conda/envs/opt/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 342, in conv2d_forward

self.padding, self.dilation, self.groups)
RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 1; 15.78 GiB total capacity; 2.68 GiB already allocated; 53.75 MiB free; 77.13 MiB cached; 0 bytes inactive)
