Skip to content

Commit 6ea36fc

Browse files
authored
Update mito.rst
1 parent 0e62bb7 commit 6ea36fc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/source/tutorials/mito.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,22 @@ For description of the data please check `the author page <https://www.epfl.ch/l
4747

4848
2 - Run training
4949
^^^^^^^^^^^^^^^^^^
50+
If single GPU:
51+
52+
.. code-block:: none
53+
54+
source activate py3_torch
55+
python scripts/main.py -u --config-file configs/Lucchi-Mitochondria.yaml
56+
57+
58+
If multiple GPUs for high performance:
5059

5160
.. code-block:: none
5261
5362
source activate py3_torch
5463
CUDA_VISIBLE_DEVICES=0,1,2,3 python -u -m torch.distributed.run \
5564
--nproc_per_node=4 --master_port=2345 scripts/main.py --distributed \
56-
--config-file configs/Lucchi-Mitochondria.yaml
65+
--config-file configs/Lucchi-Mitochondria_multiGPU.yaml
5766
5867
Similar to the `neuron segmentation <neuron.html>`_ tutorial, we use distributed data-parallel training considering its high
5968
efficiency, and also to enable synchronized batch normalization (SyncBN).
@@ -71,7 +80,7 @@ efficiency, and also to enable synchronized batch normalization (SyncBN).
7180
.. code-block:: none
7281
7382
source activate py3_torch
74-
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -u scripts/main.py \
83+
CUDA_VISIBLE_DEVICES=0,1,2,3 python -u scripts/main.py \
7584
--config-file configs/Lucchi-Mitochondria.yaml --inference \
7685
--checkpoint outputs/Lucchi_UNet/volume_100000.pth.tar
7786

0 commit comments

Comments
 (0)