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

Add Kvasir-SEG dataset #267

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add Kvasir-SEG dataset #267

wants to merge 3 commits into from

Conversation

anwai98
Copy link
Contributor

@anwai98 anwai98 commented May 19, 2024

This is a dataset for polyp segmentation in colonoscopy images. This is good to go from my side. Thanks!

patch_shape = patch_shape
raw_trafo, label_trafo = None, None

dataset = ImageCollectionDataset(
Copy link
Owner

@constantinpape constantinpape May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's usually better to use https://github.com/constantinpape/torch-em/blob/main/torch_em/segmentation.py#L188. This will take care of the defaults for raw_transform and transform if these are not passed.


if resize_inputs:
raw_trafo = ResizeInputs(target_shape=patch_shape, is_rgb=True)
label_trafo = ResizeInputs(target_shape=patch_shape, is_label=True)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to support additional trafos and concatentate them if resize_inputs is given.

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

Successfully merging this pull request may close these issues.

None yet

2 participants