forked from YuliangXiu/ICON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_hps.sh
36 lines (30 loc) · 1.12 KB
/
fetch_hps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# fetch DensePose UV data from facebookresearch/DensePose
mkdir -p data/pymaf_data/UV_data && cd data/pymaf_data/UV_data
wget https://dl.fbaipublicfiles.com/densepose/densepose_uv_data.tar.gz
tar xvf densepose_uv_data.tar.gz
rm densepose_uv_data.tar.gz
cd ..
# download mesh_downsampling file
wget https://github.com/nkolot/GraphCMR/raw/master/data/mesh_downsampling.npz
# Model constants etc from https://github.com/nkolot/SPIN/blob/master/fetch_data.sh
wget http://visiondata.cis.upenn.edu/spin/data.tar.gz
tar xvf data.tar.gz
mv data/* .
rm -rf data && rm -f data.tar.gz
# PyMAF pre-trained model
gdown https://drive.google.com/drive/u/1/folders/1CkF79XRaZzdRlj6eJUt4W0nbTORv2t7O -O pretrained_model --folder
cd ..
echo "PyMAF done!"
function download_pare(){
# (optional) download PARE
wget https://www.dropbox.com/s/aeulffqzb3zmh8x/pare-github-data.zip
unzip pare-github-data.zip && mv data pare_data
rm -f pare-github-data.zip
echo "PARE done!"
}
read -p "(optional) Download PARE (y/n)?" choice
case "$choice" in
y|Y ) download_pare;;
n|N ) echo "Done!";;
* ) echo "Invalid input! Please use y|Y or n|N";;
esac