Merge pull request #17 from jedahan/patch-1

Exit script immediately if any command fails
This commit is contained in:
kuprel 2022-06-28 11:31:42 -04:00 committed by GitHub
commit 6baeeec7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -e
pip install -r requirements.txt pip install -r requirements.txt
mkdir -p pretrained mkdir -p pretrained
@ -12,4 +14,4 @@ git clone https://huggingface.co/dalle-mini/vqgan_imagenet_f16_16384 ./pretraine
pip install wandb pip install wandb
wandb login wandb login
wandb artifact get --root=./pretrained/dalle_bart_mini dalle-mini/dalle-mini/mini-1:v0 wandb artifact get --root=./pretrained/dalle_bart_mini dalle-mini/dalle-mini/mini-1:v0
wandb artifact get --root=./pretrained/dalle_bart_mega dalle-mini/dalle-mini/mega-1-fp16:v14 wandb artifact get --root=./pretrained/dalle_bart_mega dalle-mini/dalle-mini/mega-1-fp16:v14