-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
26 lines (21 loc) · 692 Bytes
/
Copy pathsetup.sh
File metadata and controls
26 lines (21 loc) · 692 Bytes
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
#!/bin/bash
source ~/anaconda3/etc/profile.d/conda.sh
## setting conda env
conda env create -f word_env.yaml
pip install diffusers
pip install --upgrade torch torchvision
## download dataset
# will only work in KAIST internal network
wget http://143.248.235.11:5000/fontsdataset/dataset.zip
unzip dataset.zip -d ./code/data/
wget http://143.248.235.11:5000/env_file
mv env_file ./.env
## learn embedding loss
conda init bash
conda activate word
python ./code/letter_classifier.py 0 100
## copy best weight checkpoint
cp ./logs/0/max_val_acc_checkpoint.pt .code/max_val_acc_checkpoint.pt
## Fine tuning GPT-3.5
# uncomment below to do finetuning
# bash ./code/finetuning/finetunemodel.sh