Skip to content

Commit e87d1a8

Browse files
authored
Merge pull request #46 from C-Achard/(WIP)_General_improvements
General improvements
2 parents 8f6dfa7 + 8c9094f commit e87d1a8

File tree

93 files changed

+2774
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2774
-654
lines changed

.github/workflows/build_docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
# Standard drop-in approach that should work for most people.
16+
- uses: ammaraskar/sphinx-action@master
17+
with:
18+
pre-build-command: "pip install -r dev.requirements.txt"
19+
docs-folder: "docs/"
20+
21+
- name: GitHub Pages action
22+
uses: peaceiris/[email protected]
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./docs/_build/html

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ venv/
9191
########
9292
#project specific
9393
#dataset
94-
/src/napari_cellseg_annotator/models/dataset/
95-
/src/napari_cellseg_annotator/models/saved_weights/
94+
/src/napari_cellseg_3d/models/dataset/
95+
/src/napari_cellseg_3d/models/saved_weights/

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# napari-cellseg-annotator
1+
# napari-cellseg-3d
22

3-
[![License](https://img.shields.io/pypi/l/napari-cellseg-annotator.svg?color=green)](https://github.com/C_Achard/napari-cellseg-annotator/raw/main/LICENSE)
4-
[![PyPI](https://img.shields.io/pypi/v/napari-cellseg-annotator.svg?color=green)](https://pypi.org/project/napari-cellseg-annotator)
5-
[![Python Version](https://img.shields.io/pypi/pyversions/napari-cellseg-annotator.svg?color=green)](https://python.org)
6-
[![tests](https://github.com/C_Achard/napari-cellseg-annotator/workflows/tests/badge.svg)](https://github.com/C_Achard/napari-cellseg-annotator/actions)
7-
[![codecov](https://codecov.io/gh/C_Achard/napari-cellseg-annotator/branch/main/graph/badge.svg)](https://codecov.io/gh/C_Achard/napari-cellseg-annotator)
8-
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-cellseg-annotator)](https://napari-hub.org/plugins/napari-cellseg-annotator)
3+
[![License](https://img.shields.io/pypi/l/napari-cellseg-3d.svg?color=green)](https://github.com/C_Achard/napari-cellseg-3d/raw/main/LICENSE)
4+
[![PyPI](https://img.shields.io/pypi/v/napari-cellseg-3d.svg?color=green)](https://pypi.org/project/napari-cellseg-3d)
5+
[![Python Version](https://img.shields.io/pypi/pyversions/napari-cellseg-3d.svg?color=green)](https://python.org)
6+
[![tests](https://github.com/C_Achard/napari-cellseg-3d/workflows/tests/badge.svg)](https://github.com/C_Achard/napari-cellseg-3d/actions)
7+
[![codecov](https://codecov.io/gh/C_Achard/napari-cellseg-3d/branch/main/graph/badge.svg)](https://codecov.io/gh/C_Achard/napari-cellseg-3d)
8+
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-cellseg-3d)](https://napari-hub.org/plugins/napari-cellseg-3d)
99

10-
annotator for cell segmentation
10+
plugin for cell segmentation
1111

1212
----------------------------------
1313

@@ -32,9 +32,9 @@ If you get errors from MONAI regarding missing readers, please see [MONAI's opti
3232

3333
## Installation
3434

35-
You can install `napari-cellseg-annotator` via [pip]:
35+
You can install `napari-cellseg-3d` via [pip]:
3636

37-
pip install napari-cellseg-annotator
37+
pip install napari-cellseg-3d
3838

3939
For local installation, please run:
4040

@@ -52,7 +52,7 @@ To use the plugin, please run:
5252
```
5353
napari
5454
```
55-
Then go into Plugins > napari-cellseg-annotator, and choose which tool to use.
55+
Then go into Plugins > napari-cellseg-3d, and choose which tool to use.
5656

5757
- **Review**: This module allows you to review your labels, from predictions or manual labeling, and correct them if needed. It then saves the status of each file in a csv, for easier monitoring.
5858
- **Infer**: This module allows you to use pre-trained segmentation algorithms on volumes to automatically label cells.
@@ -75,7 +75,7 @@ the coverage at least stays the same before you submit a pull request.
7575
## License
7676

7777
Distributed under the terms of the [MIT] license,
78-
"napari-cellseg-annotator" is free and open source software
78+
"napari-cellseg-3d" is free and open source software
7979

8080
## Issues
8181

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# napari-cellseg-annotator documentation build configuration file, created by
3+
# napari-cellseg-3d documentation build configuration file, created by
44
# sphinx-quickstart on Thu Oct 1 00:43:18 2015.
55
#
66
# This file is execfile()d with the current directory set to its
@@ -51,7 +51,7 @@
5151
main_doc = "index"
5252

5353
# General information about the project.
54-
project = "napari-cellseg-annotator"
54+
project = "napari-cellseg-3d"
5555
copyright = "2022, Cyril Achard, Maxime Vidal"
5656
author = "Cyril Achard, Maxime Vidal"
5757

@@ -266,7 +266,7 @@
266266
(
267267
main_doc,
268268
"napari-cookiecutterplugin_name",
269-
"napari-cellseg-annotator Documentation",
269+
"napari-cellseg-3d Documentation",
270270
[author],
271271
1,
272272
)
@@ -285,7 +285,7 @@
285285
(
286286
main_doc,
287287
"napari-cookiecutterplugin_name",
288-
"napari-cellseg-annotator Documentation",
288+
"napari-cellseg-3d Documentation",
289289
author,
290290
"napari-cookiecutterplugin_name",
291291
"One line description of project.",

docs/index.rst

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
1-
Welcome to napari-cellseg-annotator's documentation!
1+
Welcome to napari-cellseg-3d's documentation!
22
===============================================================
33

44
.. toctree::
55
:maxdepth: 1
6-
:caption: User guide:
6+
:caption: Main modules guides:
77

88
res/welcome
9-
res/review_module_guide
10-
res/inference_module_guide
11-
res/training_module_guide
12-
res/cropping_module_guide
13-
res/custom_model_template
9+
res/guides/review_module_guide
10+
res/guides/inference_module_guide
11+
res/guides/training_module_guide
12+
13+
14+
.. toctree::
15+
:maxdepth: 1
16+
:caption: Utilities & advanced guides:
17+
18+
res/guides/metrics_module_guide
19+
res/guides/convert_module_guide
20+
res/guides/cropping_module_guide
21+
res/guides/custom_model_template
1422

1523

1624
.. toctree::
1725
:maxdepth: 1
1826
:caption: Source files:
1927

20-
res/interface
21-
res/plugin_base
22-
res/plugin_review
23-
res/plugin_dock
24-
res/plugin_crop
25-
res/launch_review
26-
res/model_framework
27-
res/model_workers
28-
res/model_instance_seg
29-
res/plugin_model_inference
30-
res/plugin_model_training
31-
res/utils
28+
res/code/interface
29+
res/code/plugin_base
30+
res/code/plugin_review
31+
res/code/plugin_dock
32+
res/code/plugin_crop
33+
res/code/launch_review
34+
res/code/model_framework
35+
res/code/model_workers
36+
res/code/model_instance_seg
37+
res/code/plugin_model_inference
38+
res/code/plugin_model_training
39+
res/code/utils
3240

3341

3442

docs/res/code/interface.rst

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
interface.py
2+
=============
3+
4+
Functions
5+
-------------
6+
7+
open_url
8+
**************************************
9+
.. autofunction:: napari_cellseg_3d.interface::open_url
10+
11+
12+
make_scrollable
13+
**************************************
14+
.. autofunction:: napari_cellseg_3d.interface::make_scrollable
15+
16+
17+
make_group
18+
**************************************
19+
.. autofunction:: napari_cellseg_3d.interface::make_group
20+
21+
22+
make_container_widget
23+
**************************************
24+
.. autofunction:: napari_cellseg_3d.interface::make_container_widget
25+
26+
27+
make_button
28+
**************************************
29+
.. autofunction:: napari_cellseg_3d.interface::make_button
30+
31+
make_combobox
32+
**************************************
33+
.. autofunction:: napari_cellseg_3d.interface::make_combobox
34+
35+
make_checkbox
36+
**************************************
37+
.. autofunction:: napari_cellseg_3d.interface::make_checkbox
38+
39+
40+
combine_blocks
41+
**************************************
42+
.. autofunction:: napari_cellseg_3d.interface::combine_blocks
43+
44+
45+
add_blank
46+
**************************************
47+
.. autofunction:: napari_cellseg_3d.interface::add_blank
48+
49+
50+
open_file_dialog
51+
**************************************
52+
.. autofunction:: napari_cellseg_3d.interface::open_file_dialog
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Functions
77
launch_review
88
*******************************
99

10-
.. autofunction:: napari_cellseg_annotator.launch_review::launch_review
10+
.. autofunction:: napari_cellseg_3d.launch_review::launch_review
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.. _model_framework.py_models_dict:
2+
3+
14
model_framework.py
25
====================================================
36

@@ -8,14 +11,13 @@ Class : ModelFramework
811

912
Methods
1013
**********************
11-
.. autoclass:: napari_cellseg_annotator.model_framework::ModelFramework
12-
:members: __init__,load_dataset_paths,save_log,get_model, get_loss,display_status_report,load_dataset_paths,create_train_dataset_dict, load_image_dataset, load_label_dataset,load_results_path,load_model_path,get_device, update_default, close
14+
.. autoclass:: napari_cellseg_3d.model_framework::ModelFramework
15+
:members: __init__,load_dataset_paths,save_log,get_model, get_loss,display_status_report,load_dataset_paths,create_train_dataset_dict, load_image_dataset, load_label_dataset,load_results_path,load_model_path,get_device, update_default, remove_from_viewer
1316
:noindex:
1417

1518

16-
1719
Attributes
1820
*********************
1921

20-
.. autoclass:: napari_cellseg_annotator.model_framework::ModelFramework
22+
.. autoclass:: napari_cellseg_3d.model_framework::ModelFramework
2123
:members: _viewer, worker, docked_widgets, images_filepaths, labels_filepaths, results_path, model_path
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
model_instance_seg.py
2+
===========================================
3+
4+
5+
Functions
6+
-------------
7+
8+
binary_connected
9+
**************************************
10+
.. autofunction:: napari_cellseg_3d.model_instance_seg::binary_connected
11+
12+
binary_watershed
13+
**************************************
14+
.. autofunction:: napari_cellseg_3d.model_instance_seg::binary_watershed
15+
16+
clear_small_objects
17+
**************************************
18+
.. autofunction:: napari_cellseg_annotator.model_instance_seg::clear_small_objects
19+
20+
to_instance
21+
**************************************
22+
.. autofunction:: napari_cellseg_3d.model_instance_seg::to_instance
23+
24+
to_semantic
25+
**************************************
26+
.. autofunction:: napari_cellseg_3d.model_instance_seg::to_semantic
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Class : LogSignal
1010

1111
Attributes
1212
************************
13-
.. autoclass:: napari_cellseg_annotator.model_workers::LogSignal
13+
.. autoclass:: napari_cellseg_3d.model_workers::LogSignal
1414
:members: log_signal
1515
:noindex:
1616

@@ -24,7 +24,7 @@ Class : InferenceWorker
2424

2525
Methods
2626
************************
27-
.. autoclass:: napari_cellseg_annotator.model_workers::InferenceWorker
27+
.. autoclass:: napari_cellseg_3d.model_workers::InferenceWorker
2828
:members: __init__, log, create_inference_dict, inference
2929
:noindex:
3030

@@ -39,7 +39,7 @@ Class : TrainingWorker
3939

4040
Methods
4141
************************
42-
.. autoclass:: napari_cellseg_annotator.model_workers::TrainingWorker
42+
.. autoclass:: napari_cellseg_3d.model_workers::TrainingWorker
4343
:members: __init__, log, train
4444
:noindex:
4545

0 commit comments

Comments
 (0)