Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 61 additions & 59 deletions .tools/python_tools/dict_parser.py
Original file line number Diff line number Diff line change
@@ -1,65 +1,67 @@
dict_manifest_to_version = {
'Notebook_Augmentor_ZeroCostDL4Mic': 'Augmentor' ,
'Notebook_CARE_2D_ZeroCostDL4Mic': 'CARE (2D)' ,
'Notebook_CARE_3D_ZeroCostDL4Mic': 'CARE (3D)' ,
'Notebook_Cellpose_2D_ZeroCostDL4Mic': 'Cellpose' ,
'Notebook_CycleGAN_2D_ZeroCostDL4Mic': 'CycleGAN' ,
'Notebook_DFCAN_ZeroCostDL4Mic': 'DFCAN 2D' ,
'Notebook_DRMIME_ZeroCostDL4Mic': 'DRMIME' ,
'Notebook_DecoNoising_2D_ZeroCostDL4Mic': 'DecoNoising' ,
'Notebook_Deep-STORM_2D_ZeroCostDL4Mic': 'Deep-STORM' ,
'Notebook_Deep-STORM_2D_ZeroCostDL4Mic_DeepImageJ': 'Deep-STORM BioimageIO' ,
'Notebook_DenoiSeg_2D_ZeroCostDL4Mic': 'DenoiSeg' ,
'Notebook_Detectron2_ZeroCostDL4Mic': 'Detectron 2D' ,
'Notebook_EmbedSeg_2D_ZeroCostDL4Mic': 'EmbedSeg 2D' ,
'Notebook_Interactive_Segmentation_Kaibu_2D_ZeroCostDL4Mic': 'Kaibu' ,
'Notebook_MaskRCNN_ZeroCostDL4Mic': 'MaskRCNN' ,
'Notebook_Noise2Void_2D_ZeroCostDL4Mic': 'Noise2Void (2D)' ,
'Notebook_Noise2Void_3D_ZeroCostDL4Mic': 'Noise2Void (3D)' ,
'Notebook_Quality_Control_ZeroCostDL4Mic': 'Quality_control' ,
'Notebook_RCAN_3D_ZeroCostDL4Mic': '3D RCAN' ,
'Notebook_RetinaNet_ZeroCostDL4Mic': 'RetinaNet' ,
'Notebook_SplineDist_2D_ZeroCostDL4Mic': 'SplineDist (2D)' ,
'Notebook_StarDist_2D_ZeroCostDL4Mic': 'StarDist 2D' ,
'Notebook_StarDist_3D_ZeroCostDL4Mic': 'StarDist 3D' ,
'Notebook_U-Net_2D_ZeroCostDL4Mic': 'U-Net (2D)',
'Notebook_U-Net_2D_multilabel_ZeroCostDL4Mic': 'U-Net (2D) multilabel',
'Notebook_U-Net_3D_ZeroCostDL4Mic': 'U-Net (3D)' ,
'Notebook_YOLOv2_ZeroCostDL4Mic': 'YOLOv2' ,
'Notebook_fnet_2D_ZeroCostDL4Mic': 'fnet (2D)' ,
'Notebook_fnet_3D_ZeroCostDL4Mic': 'fnet (3D)' ,
'Notebook_pix2pix_2D_ZeroCostDL4Mic': 'pix2pix' ,
'WGAN_ZeroCostDL4Mic.ipynb': 'WGAN 2D',
}
'light-swimsuit': 'Augmentor',
'fun-high-heels': 'CARE (2D)',
'opalescent-ribbon': 'CARE (3D)',
'polished-t-shirt': 'Cellpose',
'flattering-bikini': 'CycleGAN',
'mesmerizing-shoe': 'DFCAN 2D',
'playful-scarf': 'Diffusion model for SMLM',
'irresistible-swimsuit': 'DRMIME',
'flexible-helmet': 'DecoNoising',
'inspiring-sandal': 'Deep-STORM',
'silky-shorts': 'Deep-STORM BioimageIO',
'smooth-safety-vest': 'DenoiSeg',
'convenient-t-shirt': 'Detectron 2D',
'smooth-graduation-hat': 'EmbedSeg 2D',
'timeless-running-shirt': 'Kaibu',
'regal-ribbon': 'MaskRCNN',
'brisk-scarf': 'Noise2Void (2D)',
'cozy-hiking-boot': 'Noise2Void (3D)',
'lively-t-shirt': 'Quality_control',
'striking-necktie': '3D RCAN',
'convenient-purse': 'RetinaNet',
'uplifting-backpack': 'SplineDist (2D)',
'exciting-backpack': 'StarDist 2D',
'cheerful-cap': 'StarDist 3D',
'resplendent-ribbon': 'U-Net (2D)',
'whimsical-helmet': 'U-Net (2D) multilabel',
'joyful-top-hat': 'U-Net (3D)',
'bold-shorts': 'YOLOv2',
'limited-edition-crown': 'fnet (2D)',
'authoritative-ballet-shoes': 'fnet (3D)',
'fluid-glasses': 'pix2pix',
'slinky-bikini': 'WGAN 2D'
}

dict_dl4miceverywhere_to_manifest = {
'CARE_2D_DL4Mic': 'Notebook_CARE_2D_ZeroCostDL4Mic',
'CARE_3D_DL4Mic': 'Notebook_CARE_3D_ZeroCostDL4Mic',
'Cellpose_2D_DL4Mic': 'Notebook_Cellpose_2D_ZeroCostDL4Mic',
'CycleGAN_DL4Mic': 'Notebook_CycleGAN_2D_ZeroCostDL4Mic',
'DFCAN_DL4Mic': 'Notebook_DFCAN_ZeroCostDL4Mic',
'DRMIME_2D_DL4Mic': 'Notebook_DRMIME_ZeroCostDL4Mic',
'DecoNoising_2D_DL4Mic': 'Notebook_DecoNoising_2D_ZeroCostDL4Mic',
'Deep-STORM_2D_DL4Mic': 'Notebook_Deep-STORM_2D_ZeroCostDL4Mic',
'DenoiSeg_DL4Mic': 'Notebook_DenoiSeg_2D_ZeroCostDL4Mic',
'Detectron2_2D_DL4Mic': 'Notebook_Detectron2_ZeroCostDL4Mic',
'Embedseg_DL4Mic': 'Notebook_EmbedSeg_2D_ZeroCostDL4Mic',
'MaskRCNN_DL4Mic': 'Notebook_MaskRCNN_ZeroCostDL4Mic',
'Noise2Void_2D_DL4Mic': 'Notebook_Noise2Void_2D_ZeroCostDL4Mic',
'Noise2Void_3D_DL4Mic': 'Notebook_Noise2Void_3D_ZeroCostDL4Mic',
'3D-RCAN_DL4Mic': 'Notebook_RCAN_3D_ZeroCostDL4Mic',
'RetinaNet_DL4Mic': 'Notebook_RetinaNet_ZeroCostDL4Mic',
'SplineDist_2D_DL4Mic': 'Notebook_SplineDist_2D_ZeroCostDL4Mic',
'StarDist_2D_DL4Mic': 'Notebook_StarDist_2D_ZeroCostDL4Mic',
'StarDist_3D_DL4Mic': 'Notebook_StarDist_3D_ZeroCostDL4Mic',
'U-Net_2D_DL4Mic': 'Notebook_U-Net_2D_ZeroCostDL4Mic',
'U-Net_2D_Multilabel_DL4Mic': 'Notebook_U-Net_2D_multilabel_ZeroCostDL4Mic',
'U-Net_3D_DL4Mic': 'Notebook_U-Net_3D_ZeroCostDL4Mic',
'YOLOv2_DL4Mic': 'Notebook_YOLOv2_ZeroCostDL4Mic',
'fnet_2D_DL4Mic': 'Notebook_fnet_2D_ZeroCostDL4Mic',
'fnet_3D_DL4Mic': 'Notebook_fnet_3D_ZeroCostDL4Mic',
'pix2pix_DL4Mic': 'Notebook_pix2pix_2D_ZeroCostDL4Mic',
'WGAN_DL4Mic': 'WGAN_ZeroCostDL4Mic.ipynb',
'CARE_2D_DL4Mic': 'fun-high-heels',
'CARE_3D_DL4Mic': 'opalescent-ribbon',
'Cellpose_2D_DL4Mic': 'polished-t-shirt',
'CycleGAN_DL4Mic': 'flattering-bikini',
'DFCAN_DL4Mic': 'mesmerizing-shoe',
'Diffusion_SMLM_DL4Mic': 'playful-scarf',
'DRMIME_2D_DL4Mic': 'irresistible-swimsuit',
'DecoNoising_2D_DL4Mic': 'flexible-helmet',
'Deep-STORM_2D_DL4Mic': 'inspiring-sandal',
'DenoiSeg_DL4Mic': 'smooth-safety-vest',
'Detectron2_2D_DL4Mic': 'convenient-t-shirt',
'Embedseg_DL4Mic': 'smooth-graduation-hat',
'MaskRCNN_DL4Mic': 'regal-ribbon',
'Noise2Void_2D_DL4Mic': 'brisk-scarf',
'Noise2Void_3D_DL4Mic': 'cozy-hiking-boot',
'3D-RCAN_DL4Mic': 'striking-necktie',
'RetinaNet_DL4Mic': 'convenient-purse',
'SplineDist_2D_DL4Mic': 'uplifting-backpack',
'StarDist_2D_DL4Mic': 'exciting-backpack',
'StarDist_3D_DL4Mic': 'cheerful-cap',
'U-Net_2D_DL4Mic': 'resplendent-ribbon',
'U-Net_2D_Multilabel_DL4Mic': 'whimsical-helmet',
'U-Net_3D_DL4Mic': 'joyful-top-hat',
'YOLOv2_DL4Mic': 'bold-shorts',
'fnet_2D_DL4Mic': 'limited-edition-crown',
'fnet_3D_DL4Mic': 'authoritative-ballet-shoes',
'pix2pix_DL4Mic': 'fluid-glasses',
'WGAN_DL4Mic': 'slinky-bikini'
}

dict_dl4miceverywhere_to_version = {dl4mic_name: dict_manifest_to_version[dict_dl4miceverywhere_to_manifest[dl4mic_name]] for dl4mic_name in dict_dl4miceverywhere_to_manifest.keys()}
88 changes: 88 additions & 0 deletions .tools/python_tools/update_manifest_legacy_id.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Update ID in DL4MicEverywhere configuration.yaml"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from os import walk\n",
"from pathlib import Path\n",
"from ruyaml import YAML\n",
"from bioimageio.core import load_description\n",
"\n",
"ZC_config_path = '../../notebooks/ZeroCostDL4Mic_notebooks'\n",
"\n",
"for (dirpath, dirnames, filenames) in walk(ZC_config_path):\n",
" for file in filenames:\n",
" if file.endswith('.yaml'):\n",
" with open(Path(dirpath) / file, 'r', encoding='utf8') as f:\n",
" yaml = YAML()\n",
" yaml.preserve_quotes = True\n",
" config = yaml.load(f)\n",
" try:\n",
" bmz_rdf = load_description( 'zero/' + config['id'])\n",
" bmz_id = bmz_rdf.config['bioimageio']['nickname']\n",
" config['id'] = bmz_id\n",
" except:\n",
" print('Could not find the bioimage.io id for the notebook: ' + config['id'])\n",
"\n",
" if 'links' in config:\n",
" links=[]\n",
" for link in config['links']:\n",
" if link == 'Notebook Preview':\n",
" continue\n",
" link_rdf = load_description( 'zero/' + link )\n",
" link_bmz_id = link_rdf.config['bioimageio']['nickname']\n",
" links.append(link_bmz_id)\n",
" config['links'] = links\n",
"\n",
"\n",
" with open(Path(dirpath) / file, 'w', encoding='utf8') as f:\n",
" yaml = YAML()\n",
" yaml.preserve_quotes = True\n",
" yaml.default_flow_style = False\n",
" yaml.indent(mapping=2, sequence=4, offset=2)\n",
" yaml.width = 10e10\n",
" yaml.dump(config, f)\n",
"\n",
" "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "zc_manifest_update",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
authors:
- Estibaliz Gómez-de-Mariscal
- Constantin Pape
- Mariana Ferreira
- Mariana G Ferreira
- Iván Hidalgo-Cenalmor
- BioImage Model Zoo team
badges:
Expand Down Expand Up @@ -30,9 +30,8 @@ description: Notebook to load models from the BioImage Model Zoo in PyTorch
download_url: https://colab.research.google.com/github/HenriquesLab/DL4MicEverywhere/blob/main/notebooks/Bespoke_notebooks/bioimageio-pytorch/load_bioimageio_pytorch.ipynb
format_version: 0.5.3
git_repo: https://github.com/bioimage-io/core-bioimage-io-python/tree/main
links:
- Notebook Preview
name: General BioImageIO notebook - PyTorch
id: 'smooth-hat'
tags:
- colab
- notebook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ description: Notebook to load models from the BioImage Model Zoo in TensorFlow
download_url: https://colab.research.google.com/github/HenriquesLab/DL4MicEverywhere/blob/main/notebooks/Bespoke_notebooks/bioimageio-tensorflow/load_bioimageio_tensorflow.ipynb
format_version: 0.2.3
git_repo: https://github.com/bioimage-io/core-bioimage-io-python/tree/main
links:
- Notebook Preview
id: 'sparkling-sari'
name: General BioImageIO notebook - TensorFlow
tags:
- colab
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
authors:
- Guillaume Jacquemet and the ZeroCostDL4Mic Team
- Guillaume Jacquemet and the ZeroCostDL4Mic Team
badges:
- icon: https://colab.research.google.com/assets/colab-badge.svg
label: Open in Colab
url: https://colab.research.google.com/github/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/3D_RCAN_ZeroCostDL4Mic.ipynb
- icon: https://colab.research.google.com/assets/colab-badge.svg
label: Open in Colab
url: https://colab.research.google.com/github/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/3D_RCAN_ZeroCostDL4Mic.ipynb
cite:
- doi: https://doi.org/10.1038/s41467-021-22518-0
text: von Chamier, L., Laine, R.F., Jukkala, J. et al. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nat Commun 12, 2276 (2021). https://doi.org/10.1038/s41467-021-22518-0
- doi: https://doi.org/10.1038/s41592-021-01155-x
text: Chen, J., Sasaki, H., Lai, H. et al. Three-dimensional residual channel attention networks denoise and sharpen fluorescence microscopy image volumes. Nat Methods 18, 678–687 (2021). https://doi.org/10.1038/s41592-021-01155-x
- doi: https://doi.org/10.1038/s41467-021-22518-0
text: von Chamier, L., Laine, R.F., Jukkala, J. et al. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nat Commun 12, 2276 (2021). https://doi.org/10.1038/s41467-021-22518-0
- doi: https://doi.org/10.1038/s41592-021-01155-x
text: Chen, J., Sasaki, H., Lai, H. et al. Three-dimensional residual channel attention networks denoise and sharpen fluorescence microscopy image volumes. Nat Methods 18, 678–687 (2021). https://doi.org/10.1038/s41592-021-01155-x
config:
dl4miceverywhere:
cuda_version: 11.8.0
Expand All @@ -23,24 +23,23 @@ config:
sections_to_remove: 1.2. 2. 6.2.
ubuntu_version: '22.04'
covers:
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/3D_CARE_notebook.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/3D_CARE_notebook.png
description: Supervised restoration of 3D images. RCAN is a neural network capable of image restoration from corrupted bio-images. The network allows image denoising and resolution improvement in 3D images, in a supervised training manner. The function of the network is essentially determined by the set of images provided in the training dataset. For instance, if noisy images are provided as input and high signal-to-noise ratio images are provided as targets, the network will perform denoising. Note - visit the ZeroCostDL4Mic wiki to check the original publications this network is based on and make sure you cite these.
documentation: https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/README.md
download_url: https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/Colab_notebooks/3D_RCAN_ZeroCostDL4Mic.ipynb
git_repo: https://github.com/HenriquesLab/ZeroCostDL4Mic
id: Notebook_RCAN_3D_ZeroCostDL4Mic
id: striking-necktie
license: MIT
links:
- Notebook Preview
- Dataset_CARE_3D_ZeroCostDL4Mic
- fluffy-popcorn
name: RCAN (3D) - ZeroCostDL4Mic
tags:
- colab
- notebook
- 3D-RCAN
- denoising
- ZeroCostDL4Mic
- 3D
- dl4miceverywhere
- colab
- notebook
- 3D-RCAN
- denoising
- ZeroCostDL4Mic
- 3D
- dl4miceverywhere
type: application
version: 1.14.1
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
authors:
- Lucas von Chamier and the ZeroCostDL4Mic Team
- Lucas von Chamier and the ZeroCostDL4Mic Team
badges:
- icon: https://colab.research.google.com/assets/colab-badge.svg
label: Open in Colab
url: https://colab.research.google.com/github/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/CARE_2D_ZeroCostDL4Mic.ipynb
- icon: https://colab.research.google.com/assets/colab-badge.svg
label: Open in Colab
url: https://colab.research.google.com/github/HenriquesLab/ZeroCostDL4Mic/blob/master/Colab_notebooks/CARE_2D_ZeroCostDL4Mic.ipynb
cite:
- doi: https://doi.org/10.1038/s41467-021-22518-0
text: von Chamier, L., Laine, R.F., Jukkala, J. et al. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nat Commun 12, 2276 (2021). https://doi.org/10.1038/s41467-021-22518-0
- doi: https://doi.org/10.1038/s41592-018-0216-7
text: 'Weigert, M., Schmidt, U., Boothe, T. et al. Content-aware image restoration: pushing the limits of fluorescence microscopy. Nat Methods 15, 1090–1097 (2018). https://doi.org/10.1038/s41592-018-0216-7'
- doi: https://doi.org/10.1038/s41467-021-22518-0
text: von Chamier, L., Laine, R.F., Jukkala, J. et al. Democratising deep learning for microscopy with ZeroCostDL4Mic. Nat Commun 12, 2276 (2021). https://doi.org/10.1038/s41467-021-22518-0
- doi: https://doi.org/10.1038/s41592-018-0216-7
text: 'Weigert, M., Schmidt, U., Boothe, T. et al. Content-aware image restoration: pushing the limits of fluorescence microscopy. Nat Methods 15, 1090–1097 (2018). https://doi.org/10.1038/s41592-018-0216-7'
config:
dl4miceverywhere:
cuda_version: 11.8.0
Expand All @@ -23,29 +23,28 @@ config:
sections_to_remove: 1.1. 1.2. 2. 6.3.
ubuntu_version: '22.04'
covers:
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook_2.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook_3.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook_2.png
- https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/Images/CARE2D_notebook_3.png
description: Supervised restoration of 2D images. CARE is a neural network capable of image restoration from corrupted bio-images, first published in 2018 by Weigert et al. in Nature Methods. The network allows image denoising and resolution improvement in 2D and 3D images, in a supervised training manner. The function of the network is essentially determined by the set of images provided in the training dataset. For instance, if noisy images are provided as input and high signal-to-noise ratio images are provided as targets, the network will perform denoising. Note - visit the ZeroCostDL4Mic wiki to check the original publications this network is based on and make sure you cite these.
documentation: https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/BioimageModelZoo/README.md
download_url: https://raw.githubusercontent.com/HenriquesLab/ZeroCostDL4Mic/master/Colab_notebooks/CARE_2D_ZeroCostDL4Mic.ipynb
git_repo: https://github.com/HenriquesLab/ZeroCostDL4Mic
id: Notebook_CARE_2D_ZeroCostDL4Mic
id: fun-high-heels
license: MIT
links:
- Notebook Preview
- Dataset_CARE_2D_ZeroCostDL4Mic
- Dataset_Noisy_Nuclei_ZeroCostDL4Mic
- Dataset_CARE_2D_coli_DeepBacs
- Dataset_fnet_DeepBacs
- chewy-garlic
- nutty-knuckle
- velvety-paella
- resourceful-potato
name: CARE (2D) - ZeroCostDL4Mic
tags:
- colab
- notebook
- CARE
- denoising
- ZeroCostDL4Mic
- 2D
- dl4miceverywhere
- colab
- notebook
- CARE
- denoising
- ZeroCostDL4Mic
- 2D
- dl4miceverywhere
type: application
version: 1.15.2
Loading
Loading