Browse Source

Merge branch 'master' of https://git0.fmf.uni-lj.si/studen/venv

Andrej Studen 2 years ago
parent
commit
7608245f49
2 changed files with 29 additions and 4 deletions
  1. 25 0
      README.md
  2. 4 4
      nnUNet/requirements.txt

+ 25 - 0
README.md

@@ -0,0 +1,25 @@
+### Installation of virtual environments
+
+After cloning, virtual environment with python3 needs to be created - in this file, only requiremnets for virutal environments can be found.
+
+Create virtual environment with python3 and requirements file:
+
+**Labkey venv**
+
+```bash
+virtualenv ~/venv/labkey -p python3
+source ~/venv/labkey/bin/activate
+pip install -r requirements.txt
+```
+
+**nnUNet venv**
+```bash
+virtualenv ~/venv/nnUNet -p python3
+source ~/venv/nnUNet/activate
+pip install ~/software/src/venv/nnUNet/requirements.txt
+pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
+pip install nnunet
+```
+
+**Socket venv**
+More detailed instructions for virtual environment socket can be found [here](https://git0.fmf.uni-lj.si/studen/websocket)

+ 4 - 4
nnUNet/requirements.txt

@@ -14,7 +14,7 @@ matplotlib==3.4.3
 MedPy==0.4.0
 networkx==2.6.3
 nibabel==3.2.1
-nnunet==1.7.0
+#nnunet==1.7.0
 numpy==1.21.2
 packaging==21.0
 pandas==1.3.4
@@ -34,9 +34,9 @@ six==1.16.0
 sklearn==0.0
 threadpoolctl==3.0.0
 tifffile==2021.10.12
-torch==1.9.1+cu111
-torchaudio==0.9.1
-torchvision==0.10.1+cu111
+#torch==1.9.0+cu111
+#torchaudio==0.9.1
+#torchvision==0.10.0+cu111
 tqdm==4.62.3
 traceback2==1.4.0
 typing-extensions==3.10.0.2