Skip to content

Commit

Permalink
zenodo hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsax authored Jan 1, 2024
1 parent 1a00a45 commit 1af8550
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions omnidata_tools/torch/tools/download_depth_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@
# unzip -j download -d pretrained_models
# rm download

echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get install apt-transport-https ca-certificates gnupg
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update -y && sudo apt-get install -y google-cloud-sdk
# echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# sudo apt-get install apt-transport-https ca-certificates gnupg
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# sudo apt-get update -y && sudo apt-get install -y google-cloud-sdk

sudo apt install -y imagemagick
# sudo apt install -y imagemagick

pip install gdown
# pip install gdown
mkdir -p pretrained_models

# https://drive.google.com/uc?id=1UxUDbEygQ-CMBjRKACw_Xdj4RkDjirB5&confirm=t
gdown '1UxUDbEygQ-CMBjRKACw_Xdj4RkDjirB5&confirm=t' -O ./pretrained_models/ # omnidata depth (v1)
gdown '1Jrh-bRnJEjyMCS7f-WsaFlccfPjJPPHI&confirm=t' -O ./pretrained_models/ # omnidata depth (v2)
# gdown '1UxUDbEygQ-CMBjRKACw_Xdj4RkDjirB5&confirm=t' -O ./pretrained_models/ # omnidata depth (v1)
# gdown '1Jrh-bRnJEjyMCS7f-WsaFlccfPjJPPHI&confirm=t' -O ./pretrained_models/ # omnidata depth (v2)

mkdir -p pretrained_models && cd pretrained_models
wget 'https://zenodo.org/records/10447888/files/omnidata_dpt_depth_v1.ckpt?download=1'
wget 'https://zenodo.org/records/10447888/files/omnidata_dpt_depth_v2.ckpt?download=1'
cd ..


0 comments on commit 1af8550

Please sign in to comment.