-
Notifications
You must be signed in to change notification settings - Fork 29
/
install.sh
33 lines (28 loc) · 946 Bytes
/
install.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
# exit on error
set -e
# setting conda hook
eval "$(conda shell.bash hook)"
# create env
conda create -y -n LED-ICCV23 python=3.8
conda activate LED-ICCV23
# install packages
pip install -r requirements.txt
python setup.py develop
### install rawpy and LibRaw for benchmark
mkdir -p downloads/
# download LibRaw and rawpy
# python scripts/download_gdrive.py --id 1B4gJYe3h4UxWTMZzNL2xVodSDUlNbeAR --save-path downloads/LibRaw-0.19.1.zip
wget https://www.libraw.org/data/LibRaw-0.21.1.zip -O downloads/LibRaw-0.21.1.zip
python scripts/download_gdrive.py --id 1EuJsbZ_a_YJHHcGAVA9TXXPnGU90QoP4 --save-path downloads/rawpy.zip
unzip downloads/rawpy.zip -d downloads/
# unzip downloads/LibRaw-0.19.1.zip -d downloads/
unzip downloads/LibRaw-0.21.1.zip -d downloads/
# setting LibRAW
# cd downloads/LibRaw-0.19.1
cd downloads/LibRaw-0.21.1
./configure
make
sudo make install
# setting rawpy
cd ../rawpy
RAWPY_USE_SYSTEM_LIBRAW=1 pip install -e .