forked from andreas128/SRFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·46 lines (31 loc) · 1.27 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -e # exit script if an error occurs
echo ""
echo "########################################"
echo "Setup Virtual Environment"
echo "########################################"
echo ""
python3 -m venv myenv # Create a new virtual environment (venv) using native python3.7 venv
source myenv/bin/activate # This replaces the python/pip command with the ones from the venv
which python # shoud output: ./myenv/bin/python
pip install --upgrade pip # Update pip
pip install -r requirements.txt # Install the exact same packages that we used
# Alternatively you can install globally using pip
# pip install jupyter torch natsort pyyaml opencv-python torchvision skimage scikit-image tqdm lpips pandas environment_kernels
echo ""
echo "########################################"
echo "Download models, data"
echo "########################################"
echo ""
wget http://data.vision.ee.ethz.ch/alugmayr/SRFlow/datasets.zip
unzip datasets.zip
rm datasets.zip
wget http://data.vision.ee.ethz.ch/alugmayr/SRFlow/pretrained_models.zip
unzip pretrained_models.zip
rm pretrained_models.zip
echo ""
echo "########################################"
echo "Start Demo"
echo "########################################"
echo ""
./run_jupyter.sh