|
#!/bin/bash |
|
LOC=checkpoints |
|
mkdir -p "$LOC" |
|
|
|
|
|
IMAGENET_1024=false |
|
IMAGENET_16384=true |
|
GUMBEL=false |
|
|
|
WIKIART_16384=false |
|
COCO=false |
|
FACESHQ=false |
|
SFLCKR=false |
|
|
|
|
|
if [ "$IMAGENET_1024" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/vqgan_imagenet_f16_1024.yaml ]; then |
|
curl -L -o "$LOC"/vqgan_imagenet_f16_1024.yaml -C - 'https://heibox.uni-heidelberg.de/d/8088892a516d4e3baf92/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1' |
|
fi |
|
if [ ! -f "$LOC"/vqgan_imagenet_f16_1024.ckpt ]; then |
|
curl -L -o "$LOC"/vqgan_imagenet_f16_1024.ckpt -C - 'https://heibox.uni-heidelberg.de/d/8088892a516d4e3baf92/files/?p=%2Fckpts%2Flast.ckpt&dl=1' |
|
fi |
|
fi |
|
|
|
if [ "$IMAGENET_16384" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/vqgan_imagenet_f16_16384.yaml ]; then |
|
curl -L -o "$LOC"/vqgan_imagenet_f16_16384.yaml -C - 'https://heibox.uni-heidelberg.de/d/a7530b09fed84f80a887/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1' |
|
fi |
|
if [ ! -f "$LOC"/vqgan_imagenet_f16_16384.ckpt ]; then |
|
curl -L -o "$LOC"/vqgan_imagenet_f16_16384.ckpt -C - 'https://heibox.uni-heidelberg.de/d/a7530b09fed84f80a887/files/?p=%2Fckpts%2Flast.ckpt&dl=1' |
|
fi |
|
fi |
|
|
|
if [ "$GUMBEL" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/vqgan_gumbel_f8_8192.yaml ]; then |
|
curl -L -o "$LOC"/vqgan_gumbel_f8_8192.yaml -C - 'https://heibox.uni-heidelberg.de/d/2e5662443a6b4307b470/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1' |
|
fi |
|
if [ ! -f "$LOC"/vqgan_gumbel_f8_8192.ckpt ]; then |
|
curl -L -o "$LOC"/vqgan_gumbel_f8_8192.ckpt -C - 'https://heibox.uni-heidelberg.de/d/2e5662443a6b4307b470/files/?p=%2Fckpts%2Flast.ckpt&dl=1' |
|
fi |
|
fi |
|
|
|
if [ "$COCO" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/coco.yaml ]; then |
|
curl -L -o "$LOC"/coco.yaml -C - 'https://dl.nmkd.de/ai/clip/coco/coco.yaml' |
|
fi |
|
if [ ! -f "$LOC"/coco.ckpt ]; then |
|
curl -L -o "$LOC"/coco.ckpt -C - 'https://dl.nmkd.de/ai/clip/coco/coco.ckpt' |
|
fi |
|
fi |
|
|
|
if [ "$FACESHQ" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/faceshq.yaml ]; then |
|
curl -L -o "$LOC"/faceshq.yaml -C - 'https://drive.google.com/uc?export=download&id=1fHwGx_hnBtC8nsq7hesJvs-Klv-P0gzT' |
|
fi |
|
if [ ! -f "$LOC"/faceshq.ckpt ]; then |
|
curl -L -o "$LOC"/faceshq.ckpt -C - 'https://app.koofr.net/content/links/a04deec9-0c59-4673-8b37-3d696fe63a5d/files/get/last.ckpt?path=%2F2020-11-13T21-41-45_faceshq_transformer%2Fcheckpoints%2Flast.ckpt' |
|
fi |
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$WIKIART_16384" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/wikiart_16384.yaml ]; then |
|
curl -L -o "$LOC"/wikiart_16384.yaml -C - 'http://eaidata.bmk.sh/data/Wikiart_16384/wikiart_f16_16384_8145600.yaml' |
|
fi |
|
if [ ! -f "$LOC"/wikiart_16384.ckpt ]; then |
|
curl -L -o "$LOC"/wikiart_16384.ckpt -C - 'http://eaidata.bmk.sh/data/Wikiart_16384/wikiart_f16_16384_8145600.ckpt' |
|
fi |
|
fi |
|
|
|
if [ "$SFLCKR" = true ] ; then |
|
|
|
if [ ! -f "$LOC"/sflckr.yaml ]; then |
|
curl -L -o "$LOC"/sflckr.yaml -C - 'https://heibox.uni-heidelberg.de/d/73487ab6e5314cb5adba/files/?p=%2Fconfigs%2F2020-11-09T13-31-51-project.yaml&dl=1' |
|
fi |
|
if [ ! -f "$LOC"/sflckr.ckpt ]; then |
|
curl -L -o "$LOC"/sflckr.ckpt -C - 'https://heibox.uni-heidelberg.de/d/73487ab6e5314cb5adba/files/?p=%2Fcheckpoints%2Flast.ckpt&dl=1' |
|
fi |
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|