Skip to content

Conversation

@jxchen01
Copy link
Contributor

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
Contributor Author

Choose a reason for hiding this comment

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

good catch! thanks!

@jxchen01 jxchen01 requested a review from benjijamorris March 11, 2021 21:45
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.

3 participants