PIDNet icon indicating copy to clipboard operation
PIDNet copied to clipboard

Dimension out of range (expected to be in range of [-3, 2], but got 3)

Open Hupo777 opened this issue 1 year ago • 1 comments

We use our own data to train .

File "D:\A\segmentation\PIDNet-main\tools..\utils\utils.py", line 42, in forward ph, pw = outputs[0].size(2), outputs[0].size(3) IndexError: Dimension out of range (expected to be in range of [-3, 2], but got 3)

base_size and crop_size :512*512 IMAGE_SIZE:

  • 512
  • 512 BASE_SIZE: 512

Not using pre-trained models, the model in train.py: model = models.pidnet.get_pred_model(config,6)

Is this error caused by the size of the image?

Hupo777 avatar Jan 29 '24 13:01 Hupo777

Hello, have you encountered a situation during training where the loss doesn't converge, and both semantic loss and sb loss remain consistently at zero? If not, could you provide details on how you set the parameters during training? 微信图片_20240331103215

qmm1234 avatar Mar 31 '24 09:03 qmm1234