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

Update transforms/utils.py: map_and_generate_sampling_centers #7636

Closed
wants to merge 0 commits into from

Conversation

Yu0610
Copy link
Contributor

@Yu0610 Yu0610 commented Apr 12, 2024

fixed #6704

Combined map_classes_to_indices and generate_label_classes_crop_centers function in transforms/utils.py.

warn: bool = True,
) -> list[NdarrayOrTensor]:
"""
Combine "map_classes_to_indices" and "generate_label_classes_crop_centers" functions, return crop center coordinates.
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @Yu0610, thanks for the PR!

Could you please also state the dimensions input tensors must have and what the dimensions mean in the docstring?
Additionally, could you please also add a unittest for this function.

Thanks!

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.

A utility function to generate sampling points
2 participants