Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions scripts/gdown_download_checkpoints.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

mkdir -p $SCRIPT_DIR/../checkpoints

#TODO: we can download the checkpoints with gdown tool, sometimes it is hard to use the gcloud tool

pip install gdown
pip install --upgrade gdown

wget https://huggingface.co/stabilityai/stable-diffusion-2-1-base/resolve/main/v2-1_512-ema-pruned.ckpt $SCRIPT_DIR/../checkpoints/v2-1_512-ema-pruned.ckpt

gdown https://storage.googleapis.com/sfr-hive-data-research/checkpoints/hive_rw_condition.ckpt -O $SCRIPT_DIR/../checkpoints/hive_rw_condition.ckpt
gdown https://storage.googleapis.com/sfr-hive-data-research/checkpoints/hive_v2_rw_condition.ckpt -O $SCRIPT_DIR/../checkpoints/hive_v2_rw_condition.ckpt
gdown https://storage.googleapis.com/sfr-hive-data-research/checkpoints/hive_rw.ckpt -O $SCRIPT_DIR/../checkpoints/hive_rw.ckpt
gdown https://storage.googleapis.com/sfr-hive-data-research/checkpoints/hive_v2_rw.ckpt -O $SCRIPT_DIR/../checkpoints/hive_v2_rw.ckpt


#gcloud storage cp gs://sfr-hive-data-research/checkpoints/hive_rw_condition.ckpt $SCRIPT_DIR/../checkpoints/hive_rw_condition.ckpt
#gcloud storage cp gs://sfr-hive-data-research/checkpoints/hive_v2_rw_condition.ckpt $SCRIPT_DIR/../checkpoints/hive_v2_rw_condition.ckpt
#gcloud storage cp gs://sfr-hive-data-research/checkpoints/hive_rw.ckpt $SCRIPT_DIR/../checkpoints/hive_rw.ckpt
#gcloud storage cp gs://sfr-hive-data-research/checkpoints/hive_v2_rw.ckpt $SCRIPT_DIR/../checkpoints/hive_v2_rw.ckpt