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

Feature/inference #11

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

Feature/inference #11

wants to merge 5 commits into from

Conversation

jxchen01
Copy link
Collaborator

update inferene function to use new development from aicsmlsegment

this is required for the NucMorph program

added_padding = np.array(
[2 * ((x - y) // 2) for x, y in zip(size_in, size_out)]
)
original_image_size = input_image_size - added_padding

Choose a reason for hiding this comment

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

I think you could do original_image_size = input_image_size - 2 * np.array(padding) to avoid calculating added_padding or just original_image_size = input_img.shape[2:] before you do the padding.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch! 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.

2 participants