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 ab14b65 commit 1a00a45
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions omnidata_tools/torch/tools/download_surface_normal_models.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
##!/usr/bin/env bash

# Switch hosting
# wget https://drive.switch.ch/index.php/s/RFfTZwyKROKKx0l/download
# 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
# Gdrive hosting
# 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
mkdir -p pretrained_models
# pip install gdown
# mkdir -p pretrained_models

# https://drive.google.com/uc?id=1wNxVO4vVbDEMEpnAi_jwQObf2MFodcBR
gdown '1iJjV9rkdeLvsTU9x3Vx8vwZUg-sSQ9nm&confirm=t' -O ./pretrained_models/ # omnidata normals (v1)
gdown '1wNxVO4vVbDEMEpnAi_jwQObf2MFodcBR&confirm=t' -O ./pretrained_models/ # omnidata normals (v2)
# gdown '1iJjV9rkdeLvsTU9x3Vx8vwZUg-sSQ9nm&confirm=t' -O ./pretrained_models/ # omnidata normals (v1)
# gdown '1wNxVO4vVbDEMEpnAi_jwQObf2MFodcBR&confirm=t' -O ./pretrained_models/ # omnidata normals (v2)

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

0 comments on commit 1a00a45

Please sign in to comment.