pytorch-UNet
pytorch-UNet copied to clipboard
RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size: : [1, 512, 512, 3]
Hello please kindly look at this error. Whenever I try to train my dataset by using train.py I keep getting this error. As I am new to pytorch a little guidance would be helpful. RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size: : [1, 512, 512, 3]
Thank you in advance.
Hi!
Can you post the full stack trace? I cannot really say anything with this information only.
Hi!
Traceback (most recent call last):
File "train.py", line 60, in