MaybeRichard's picture
snapshot: full fm generation pipeline
32da3e8 verified
Raw
History Blame Contribute Delete
730 Bytes
#!/bin/bash
source /root/miniconda3/etc/profile.d/conda.sh && conda activate rae_v2
export https_proxy=http://10.140.15.68:3128 http_proxy=http://10.140.15.68:3128
D=/data/temp/qinshengqian/c3/Code/RAEv2/pretrained_models/encoders/dino/dino_vit_small_patch8_224.pth
echo "[prep] $(date +%T) download dino disc weight"
wget -q -O "$D" https://dl.fbaipublicfiles.com/dino/dino_deitsmall8_pretrain/dino_deitsmall8_pretrain.pth && echo "dino disc OK $(du -h $D | cut -f1)" || echo "dino disc FAIL"
echo "[prep] $(date +%T) pre-cache sd-vae-ft-mse"
python -c "from diffusers import AutoencoderKL; AutoencoderKL.from_pretrained(\"stabilityai/sd-vae-ft-mse\"); print(\"sdvae cached\")" 2>&1 | tail -2
echo "[prep] $(date +%T) PREP_DONE"