-
Notifications
You must be signed in to change notification settings - Fork 67
Add missing split params to napari and clean up docstrings #532
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
Changes from 3 commits
969926f
024bfb8
5e91270
f6440ae
cc0f4a8
91dcbd8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,8 +19,8 @@ def main( | |
| signal_array: types.array, | ||
| background_array: types.array, | ||
| n_free_cpus: int, | ||
| voxel_sizes: Tuple[int, int, int], | ||
| network_voxel_sizes: Tuple[int, int, int], | ||
| voxel_sizes: Tuple[float, float, float], | ||
| network_voxel_sizes: Tuple[float, float, float], | ||
| batch_size: int, | ||
| cube_height: int, | ||
| cube_width: int, | ||
|
|
@@ -35,6 +35,48 @@ def main( | |
| """ | ||
| Parameters | ||
| ---------- | ||
|
|
||
| points: List of Cell objects | ||
| The potential cells to classify. | ||
| signal_array : numpy.ndarray or dask array | ||
| 3D array representing the signal data in z, y, x order. | ||
| background_array : numpy.ndarray or dask array | ||
| 3D array representing the signal data in z, y, x order. | ||
| n_free_cpus : int | ||
| How many CPU cores to leave free. | ||
| voxel_sizes : 3-tuple of floats | ||
| Size of your voxels in the z, y, and x dimensions. | ||
| network_voxel_sizes : 3-tuple of floats | ||
| Size of the pre-trained network's voxels in the z, y, and x dimensions. | ||
| batch_size : int | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be good to have "sensible", conservative defaults (they don't need to be perfect) especially for more computational options (maybe |
||
| How many potential cells to classify at one time. The GPU/CPU | ||
| memory must be able to contain at once this many data cubes for | ||
| the models. Tune to maximize memory usage without running | ||
| out. Check your GPU/CPU memory to verify it's not full. | ||
| cube_height: int | ||
| The height of the data cube centered on the cell used for | ||
| classification. Defaults to `50`. | ||
| cube_width: int | ||
| The width of the data cube centered on the cell used for | ||
| classification. Defaults to `50`. | ||
| cube_depth: int | ||
| The depth of the data cube centered on the cell used for | ||
| classification. Defaults to `20`. | ||
| trained_model : Optional[Path] | ||
| Trained model file path (home directory (default) -> pretrained | ||
| weights). | ||
| model_weights : Optional[Path] | ||
| Model weights path (home directory (default) -> pretrained | ||
| weights). | ||
| network_depth: str | ||
| The network depth to use during classification. Defaults to `"50"`. | ||
| max_workers: int | ||
| The number of sub-processes to use for data loading / processing. | ||
| Defaults to 8. | ||
| pin_memory: bool | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be made a keyword argument? |
||
| Whether torch should pin any memory to be sent to the GPU. This results | ||
| in faster GPU uploaded, but, memory cannot be paged while it's in use. | ||
| So only use if you have enough RAM. | ||
| callback : Callable[int], optional | ||
| A callback function that is called during classification. Called with | ||
| the batch number once that batch has been classified. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in microns? or in pixels?