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

Improve hourglass to handle different image resolution #14

Open
NathanMolinier opened this issue May 1, 2023 · 1 comment
Open

Improve hourglass to handle different image resolution #14

NathanMolinier opened this issue May 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@NathanMolinier
Copy link
Collaborator

NathanMolinier commented May 1, 2023

Description

Images with greater resolution than 450 for each axis were not used for the training even if a 256x256 resizing was applied before being given to the hourglass network. Regarding the testing, a zero padding was used thus modifying the look and the effectiveness of the hourglass.

https://github.com/spinalcordtoolbox/disc-labeling-hourglass/blob/main/src/dlh/utils/data2array.py#L259-L272

This issue needs to be handled so the network may be used with different datasets.

@NathanMolinier
Copy link
Collaborator Author

NathanMolinier commented May 5, 2023

In the PR #15 a choice was made to resize every input image using a 256x256 resolution, thus modifying the look of the images to improve generalisation.

Another solution could be to use cropping (center crop, crop based on the spinal cord centerline, ...) but some contexts information could be missing.

This difference will need to be investigated to keep the best solution.

@NathanMolinier NathanMolinier reopened this May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant