Skip to content

Commit

Permalink
update pretrained models
Browse files Browse the repository at this point in the history
  • Loading branch information
geronimocharlie authored Feb 2, 2024
1 parent 48f0f1a commit 76e092d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions download_pretrained_models_small.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
# Uncomment unwanted experiments / models
# Be aware that the single emulator experiment folder containing ClimaX checkpoints is quite large (13Gb) and may take some time
declare -a experiments=("single_emulator" "finetuning_emulator" "super_emulator" )
declare -a models=("ClimaX_frozen" "ClimaX" "CNN_LSTM_ClimateBench" "Unet")

echo "Downloading pretrained models' checkpoints..."
curl https://object-arbutus.cloud.computecanada.ca/causalpaca/pretrained_models_small.tar.gz --output pretrained_models_small.tar.gz

echo "Done. Finished downloading the compressed files, now extracting!"

tar -xzf "pretrained_models_small.gz"; rm -f "pretrained_models_small.gz";
for exp in "${experiments[@]}"; do
for m in "${models[@]}"; do
path="pretrained_models/"$exp"/"$m""
echo "Downloading "$exp" "$m""
file=""$path".zip"
link="https://object-arbutus.cloud.computecanada.ca/causalpaca/"$file""
curl $link --output $file --create-dirs # bild correct string
# unpack
unzip $file -d $path
# remove zip
rm -f $file
echo "Finished "$exp" "$m""

done
done

echo "Done. Finished downloading pretrained models. :)"


0 comments on commit 76e092d

Please sign in to comment.