|
2 | 2 |
|
3 | 3 | START_DIR=$(pwd)
|
4 | 4 |
|
5 |
| -# Create mamba environment |
6 |
| -mamba create -y --name 04_image_translation python=3.10 |
| 5 | +# Create conda environment |
| 6 | +conda create -y --name 06_image_translation python=3.10 |
7 | 7 |
|
8 | 8 | # Install ipykernel in the environment.
|
9 |
| -mamba install -y ipykernel nbformat nbconvert black jupytext ipywidgets --name 04_image_translation |
| 9 | +conda install -y ipykernel nbformat nbconvert black jupytext ipywidgets --name 06_image_translation |
10 | 10 | # Specifying the environment explicitly.
|
11 |
| -# mamba activate sometimes doesn't work from within shell scripts. |
| 11 | +# conda activate sometimes doesn't work from within shell scripts. |
12 | 12 |
|
13 | 13 | # install viscy and its dependencies`s in the environment using pip.
|
14 | 14 | mkdir -p ~/code/
|
15 | 15 | cd ~/code/
|
16 | 16 | git clone https://github.com/mehta-lab/viscy.git
|
17 | 17 | cd viscy
|
18 |
| -git checkout 7c5e4c1d68e70163cf514d22c475da8ea7dc3a88 # Exercise is tested with this commit of viscy |
19 |
| -# Find path to the environment - mamba activate doesn't work from within shell scripts. |
20 |
| -ENV_PATH=$(conda info --envs | grep 04_image_translation | awk '{print $NF}') |
| 18 | +git checkout main #FIXME: change after merging this PR # Exercise is tested with this commit of viscy |
| 19 | + |
| 20 | +# Find path to the environment - conda activate doesn't work from within shell scripts. |
| 21 | +ENV_PATH=$(conda info --envs | grep 06_image_translation | awk '{print $NF}') |
21 | 22 | $ENV_PATH/bin/pip install ".[metrics]"
|
22 | 23 |
|
23 |
| -# Create data directory |
24 |
| -mkdir -p ~/data/04_image_translation |
25 |
| -cd ~/data/04_image_translation |
26 |
| -wget https://dl-at-mbl-2023-data.s3.us-east-2.amazonaws.com/DLMBL2023_image_translation_data_pyramid.tar.gz |
27 |
| -wget https://dl-at-mbl-2023-data.s3.us-east-2.amazonaws.com/DLMBL2023_image_translation_test.tar.gz |
28 |
| -tar -xzf DLMBL2023_image_translation_data_pyramid.tar.gz |
29 |
| -tar -xzf DLMBL2023_image_translation_test.tar.gz |
| 24 | +# Create the directory structure |
| 25 | +mkdir -p ~/data/06_image_translation/training |
| 26 | +mkdir -p ~/data/06_image_translation/test |
| 27 | + |
| 28 | +# Change to the target directory |
| 29 | +cd ~/data/06_image_translation/training |
| 30 | + |
| 31 | +# Download the OME-Zarr dataset recursively |
| 32 | +wget -m -np -nH --cut-dirs=4 -R "index.html*" "https://public.czbiohub.org/comp.micro/viscy/VSCyto2D/training/a549_hoechst_cellmask_train_val.zarr/" |
| 33 | +cd ~/data/06_image_translation/test |
| 34 | +wget -m -np -nH --cut-dirs=4 -R "index.html*" "https://public.czbiohub.org/comp.micro/viscy/VSCyto2D/test/a549_hoechst_cellmask_test.zarr/" |
30 | 35 |
|
31 | 36 | # Change back to the starting directory
|
32 | 37 | cd $START_DIR
|
0 commit comments