Skip to content

fix issue qubvel/segmentation_models.pytorch#377 #561

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

Closed
wants to merge 2 commits into from
Closed

fix issue qubvel/segmentation_models.pytorch#377 #561

wants to merge 2 commits into from

Conversation

munehiro-k
Copy link
Contributor

@munehiro-k munehiro-k commented Feb 12, 2022

Hi! Thank you for sharing your great work.

I faced the issue #377 and tried to fix it.
I have found that the tensor shapes of aspp_features and high_res_features in DeepLabV3PlusDecoder.forward do not match, and they cannot be concatenated.

After some investigation, the index for the encoder output that DeepLabV3PlusDecoder.block1 should accept need to be set suitable for the value of encoder_depth and encoder_output_stride.

Just for your information, I attach a text to see the combination of tensor shapes.
tensor_shapes.md

I appreciate any comment. Thanks in advance!

(edit)
I noticed that in case encoder_depth and encoder_output_stride are 3 and 16 respectively, the argument upsampling of DeepLabV3Plus needs to be set to 2 to obtain the same output shape as input.

I think this setting of upsampling may be included in docstring, and made another commit in the pull request.

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Apr 15, 2022
@munehiro-k
Copy link
Contributor Author

rebased on master 740dab5

@github-actions github-actions bot removed the Stale label Apr 16, 2022
@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Jun 15, 2022
@github-actions
Copy link

github-actions bot commented Jul 1, 2022

This PR was closed because it has been stalled for 15 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant