This repository was archived by the owner on Feb 1, 2022. It is now read-only.
Polus cellpose inference plugin#14
Open
Nicholas-Schaub wants to merge 47 commits intoPolusAI:masterfrom
Open
Conversation
hsidky
suggested changes
Jul 21, 2021
hsidky
left a comment
There was a problem hiding this comment.
Looks good. Just a few minor adjustments to the readme mainly to bring it into consistency with the plugin.
| tile_img = br[y_min:y_max, x_min:x_max, z:z + 1, 0, 0].squeeze() | ||
| img = cellpose.transforms.convert_image(tile_img,[0,0],False,True,False) | ||
|
|
||
| if diameter in [None,0]: |
| bw.dtype = np.float32 | ||
| bw.channel_names = ['cell_probability','x','y','labels'] | ||
|
|
||
| bw._backend._init_writer() |
There was a problem hiding this comment.
Why is it necessary to call the backend? Would be useful to know why this programming pattern was used with biowriter
|
|
||
| | Name | Description | I/O | Type | | ||
| |---------------|-------------------------|--------|--------| | ||
| | `--diameter` | Diameter| Input | number | |
There was a problem hiding this comment.
diameterMode and and filePattern missing, while cpretrainedModel is not in the plugin json manifest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the cellpose inference plugin to run using the Cellpose package. The previous iteration of the plugin used bits and pieces of an older version of Cellpose. Cellpose has since had multiple commits and upgrades, and trying to incorporate those commits into a custom codebase will be difficult in the long run.
This PR also resolves some issues when trying to run the container as a user.