2022-06-27 15:57:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-06-28 15:20:23 +00:00
|
|
|
_pip=$(command -v pip pip3)
|
|
|
|
|
|
|
|
$_pip install -r requirements.txt
|
2022-06-27 15:57:56 +00:00
|
|
|
|
|
|
|
mkdir -p pretrained
|
|
|
|
|
|
|
|
# download vqgan
|
|
|
|
git lfs install
|
|
|
|
git clone https://huggingface.co/dalle-mini/vqgan_imagenet_f16_16384 ./pretrained/vqgan
|
|
|
|
|
|
|
|
# download dalle-mini and dalle mega
|
2022-06-28 15:20:23 +00:00
|
|
|
$_pip install wandb
|
2022-06-27 15:57:56 +00:00
|
|
|
wandb login
|
|
|
|
wandb artifact get --root=./pretrained/dalle_bart_mini dalle-mini/dalle-mini/mini-1:v0
|
2022-06-28 15:20:23 +00:00
|
|
|
wandb artifact get --root=./pretrained/dalle_bart_mega dalle-mini/dalle-mini/mega-1-fp16:v14
|