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

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

Open
Hupo777 opened this issue Jan 29, 2024 · 2 comments
Open

Comments

@Hupo777
Copy link

Hupo777 commented Jan 29, 2024

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?

@qmm1234
Copy link

qmm1234 commented Mar 31, 2024

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

@haidev1801
Copy link

have u solved this problem? I got the same issue

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

3 participants