Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpmx committed Oct 27, 2024
1 parent 4fadab7 commit 6981cfc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cd CelloType
Then Download the model weights:

```bash
cd data
cd models
sh download.sh
cd ..
```
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CelloType is an end-to-end Transformer-based method for automated cell/nucleus s
:caption: Examples:

notebooks/cell_segmentation
inference_large
notebooks/tissue_annotation

.. toctree::
Expand Down
21 changes: 15 additions & 6 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
Quickstart
------------------------------

Clone the repository:
Clone the repository and download the pre-trained models:
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash
git clone https://github.com/maxpmx/CelloType.git
cd CelloType
Then Download the model weights:

.. code-block:: bash
cd data
cd models
sh download.sh
cd ..
Predict on an example image:
Prepare the input images
~~~~~~~~~~~~~~~~~~~~~~~~~

Convert the input images into an RGB format where the blue channel represents the nuclear channel, the green channel corresponds to the membrane channel.

.. image:: ../../data/example/example_tissuenet.png
:width: 250px
:alt: drawing

Inference the cell segmentation
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python
Expand All @@ -31,4 +40,4 @@ Predict on an example image:
device='cuda',
config_path='./configs/maskdino_R50_bs16_50ep_4s_dowsample1_2048.yaml')
mask = model.predict(img) # [H, W]
mask = model.predict(img) # [H, W]

0 comments on commit 6981cfc

Please sign in to comment.