Skip to content

Commit 1f3ad5f

Browse files
Update CLI training info and add community submission info to doc
1 parent 480d714 commit 1f3ad5f

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

doc/start_page.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,29 @@ We have published segmentation results for tomograms of synapses stored in the [
196196
- [CZCDP-10330](https://cryoetdataportal.czscience.com/depositions/10330): Contains synaptic vesicle segmentations for over 50 tomograms of synaptosomes. The segmentations were made with a model domain adapted to the synaptosome tomograms.
197197

198198
The scripts for the submissions can be found in [scripts/cryo/cryo-et-portal](https://github.com/computational-cell-analytics/synapse-net/tree/main/scripts/cryo/cryo-et-portal).
199+
200+
201+
## Community Data Submission
202+
203+
We are looking to extend and improve the SynapseNet models by training on more annotated data from electron tomography or (volume) electron microscopy.
204+
For this, we plan to collect data from community submissions.
205+
206+
If you are using SynapseNet for a task where it does not perform well, or if you would like to use it for a new segmentation task not offered by it, and have annotations for your data, then you can submit this data to us, so that we can use it to train our next version of improved models.
207+
To do this, please create an [issue on github](https://github.com/computational-cell-analytics/synapse-net/issues) and:
208+
- Use a title "Data submission: ..." ("..." should be a title for your data, e.g. "smooth ER in electron tomography")
209+
- Briefly describe your data and add an image that shows the microscopy data and the segmentation masks you have.
210+
- Make sure to describe:
211+
- The imaging modality and the structure(s) that you have segmented.
212+
- How many images and annotations you have / can submit and how you have created the annotations.
213+
- You should submit at least 5 images or crops and 20 annotated objects. If you are unsure if you have enough data please go ahead and create the issue / post and we can discuss the details.
214+
- Which data-format your images and annotations are stored in. We recommend using either `tif`, `mrc`, or `ome.zarr` files.
215+
- Please indicate that you are willing to share the data for training purpose (see also next paragraph).
216+
217+
Once you have created the post / issue, we will check if your data is suitable for submission or discuss with you how it could be extended to be suitable. Then:
218+
- We will share an agreement for data sharing. You can find **a draft** [here](https://docs.google.com/document/d/1vf5Efp5EJcS1ivuWM4f3pO5kBqEZfJcXucXL5ot0eqg/edit?usp=sharing).
219+
- You will be able to choose how you want to submit / publish your data.
220+
- Share it under a CC0 license. In this case, we will use the data for re-training and also make it publicly available as soon as the next model versions become available.
221+
- Share it for training with the option to publish it later. For example, if your data is unpublished and you want to only published once the respective publication is available. In this case, we will use the data for re-training, but not make it freely available yet. We will check with you peridiodically to see if your data can now be published.
222+
- Share it for training only. In this case, we will re-train the model on it, but not make it publicly available.
223+
- We encourage you to choose the first option (making the data available under CC0).
224+
- We will then send you a link to upload your data, after you have agreed to these terms.

synapse_net/training/domain_adaptation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ def main():
240240
"synapse_net.run_domain_adaptation -n adapted_model -i /path/to/data --file_pattern *.mrc --source_model vesicles_3d\n" # noqa
241241
"The trained model will be saved in the folder 'checkpoints/adapted_model' (or whichever name you pass to the '-n' argument)." # noqa
242242
"You can then use this model for segmentation with the SynapseNet GUI or CLI. "
243-
"Check out the information below for details on the arguments of this function."
243+
"Check out the information below for details on the arguments of this function.",
244+
formatter_class=argparse.RawTextHelpFormatter
244245
)
245246
parser.add_argument("--name", "-n", required=True, help="The name of the model to be trained. ")
246247
parser.add_argument("--input_folder", "-i", required=True, help="The folder with the training data.")

synapse_net/training/supervised_training.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ def main():
375375
"synapse_net.run_supervised_training -n my_model -i /path/to/images -l /path/to/labels --patch_shape 32 192 192\n" # noqa
376376
"The trained model will be saved in the folder 'checkpoints/my_model' (or whichever name you pass to the '-n' argument)." # noqa
377377
"You can then use this model for segmentation with the SynapseNet GUI or CLI. "
378-
"Check out the information below for details on the arguments of this function."
378+
"Check out the information below for details on the arguments of this function.",
379+
formatter_class=argparse.RawTextHelpFormatter
379380
)
380381
parser.add_argument("-n", "--name", required=True, help="The name of the model to be trained.")
381382
parser.add_argument("-p", "--patch_shape", nargs=3, type=int, help="The patch shape for training.")

0 commit comments

Comments
 (0)