-
Notifications
You must be signed in to change notification settings - Fork 211
/
start.sh
executable file
·23 lines (21 loc) · 993 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
if test ${DISABLE_GLID3XL}; then
echo "Latent diffusion checkpoints will not be downloaded because DISABLE_GLID3XL flag is on"
else
if test -e /home/dalle/.cache/bert.pt -a -e /home/dalle/.cache/kl-f8.pt -a -e /home/dalle/.cache/finetune.pt; then
echo "Latent diffusion checkpoints for glid3xl exist, continuing"
else
echo "Latent diffusion checkpoints for glid3xl not exist, downloading"
sudo apt update
sudo apt install -y wget
wget https://dall-3.com/models/glid-3-xl/bert.pt -O /home/dalle/.cache/bert.pt
wget https://dall-3.com/models/glid-3-xl/kl-f8.pt -O /home/dalle/.cache/kl-f8.pt
wget https://dall-3.com/models/glid-3-xl/finetune.pt -O /home/dalle/.cache/finetune.pt
fi
ln -s /home/dalle/.cache/bert.pt /dalle/glid-3-xl/bert.pt
ln -s /home/dalle/.cache/kl-f8.pt /dalle/glid-3-xl/kl-f8.pt
ln -s /home/dalle/.cache/finetune.pt /dalle/glid-3-xl/finetune.pt
fi
. env/bin/activate
python flow_parser.py
jina flow --uses flow.tmp.yml