-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
28 lines (24 loc) · 1.03 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
#!/bin/bash
# add the following paths to the pythonpath
echo export DIVOPTPATH=$(pwd) >> ~/.bashrc
source ~/.bashrc
pip install -e .
# create main environment divopt
conda env create -f envs/divopt.yml
conda activate divopt
pip install -e optimizers/smiles_rnn/
pip install -e .
conda deactivate
# create gflownet environment
conda env create -f envs/gflownet.yml
conda activate gflownet
pip install torch==1.13.1 # gflownet install needs torch already installed or it will fail
pip install -e ./optimizers/gflownet_recursion --find-links https://data.pyg.org/whl/torch-1.13.1+cu117.html
pip install -e .
conda deactivate
# download data
wget -O data/guacamol_v1_all.smiles https://ndownloader.figshare.com/files/13612745
wget -O data/guacamol_v1_test.smiles https://ndownloader.figshare.com/files/13612757
wget -O data/guacamol_v1_valid.smiles https://ndownloader.figshare.com/files/13612766
wget -O data/guacamol_v1_train.smiles https://ndownloader.figshare.com/files/13612760
bunzip2 -d -k data/guacamol_v1_all_maxmin_order.smiles.bz2