Skip to content

Commit

Permalink
Add missing imports and fix sys add path for denoisplit
Browse files Browse the repository at this point in the history
  • Loading branch information
msschwartz21 committed Aug 22, 2024
1 parent dd20b66 commit 38c40fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions 04_DenoiSplit/solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "b6e41f1d",
"metadata": {},
"outputs": [],
Expand All @@ -63,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "47dbd8fb",
"metadata": {
"lines_to_next_cell": 0
Expand All @@ -79,14 +79,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"id": "84e96ca6",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"\n",
"sys.path.append(\"../../\")\n",
"sys.path.append(\"../denoiSplit\")\n",
"\n",
"from pytorch_lightning.loggers import TensorBoardLogger\n",
"from pytorch_lightning.callbacks import ModelCheckpoint\n",
Expand Down
3 changes: 2 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
if [[ "$CONDA_DEFAULT_ENV" == "$ENV" ]]; then
conda install -y pytorch-gpu cuda-toolkit=11.8 torchvision -c nvidia -c conda-forge -c pytorch
#mamba install -y pytorch torchvision pytorch-cuda=11.8 -c pytorch -c nvidia
pip install jupytext black nbconvert scikit-learn ipykernel gdown "careamics[examples,tensorboard] @ git+https://github.com/CAREamics/careamics.git"
pip install jupytext black nbconvert scikit-learn ipykernel gdown "careamics[examples,tensorboard] albumentations wandb ml_collections @ git+https://github.com/CAREamics/careamics.git"
python -m ipykernel install --user --name "05_image_restoration"
fi

Expand All @@ -35,3 +35,4 @@ cd ../
mkdir ER/
cd ER/
gdown 1Bho6Oymfxi7OV0tPb9wkINkVOCpTaL7M
cd ../..

0 comments on commit 38c40fd

Please sign in to comment.