praeclarumjj3 commited on
Commit
35e5468
1 Parent(s): 9eae6e7

:zap: Install dependencies

Browse files
Files changed (3) hide show
  1. app.py +5 -0
  2. requirements.txt +1 -0
  3. setup.sh +2 -6
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  from typing import Tuple
2
  import dnnlib
3
  from PIL import Image
 
1
+ import subprocess
2
+ subprocess.run('sh setup.sh', shell=True)
3
+
4
+ print("Installed the dependencies!")
5
+
6
  from typing import Tuple
7
  import dnnlib
8
  from PIL import Image
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  icecream
2
  psutil
3
  click
 
1
+ opencv-python-headless
2
  icecream
3
  psutil
4
  click
setup.sh CHANGED
@@ -1,7 +1,3 @@
1
  #!/bin/sh
2
- eval "$(conda shell.bash hook)"
3
- conda create --name fcf -y python=3.7
4
- conda activate fcf
5
- conda env list
6
- conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
7
- pip3 install -r requirements.txt
 
1
  #!/bin/sh
2
+ pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
3
+ pip install -r requirements.txt