Skip to content

Error when running PSPNet with PascalVOC #115

@flriancu

Description

@flriancu

Hello,

When I run python train.py --arch pspnet --dataset pascal --n_epoch 500 --batch_size 8
I get the following error.
Tested with PyTorch 0.4.1 on Linux.

Traceback (most recent call last):
  File "train.py", line 162, in <module>
    train(args)
  File "train.py", line 92, in train
    loss.backward()
  File "/home/flr/miniconda3/lib/python3.6/site-packages/torch/tensor.py", line 93, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/flr/miniconda3/lib/python3.6/site-packages/torch/autograd/__init__.py", line 90, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

I suspect it might be from the cross_entropy2d in ptsemseg/loss.py, but I am not sure. Please let me know if you need more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions