hololens/stable-diffusion-webui-depthmap-script
1
1#!/bin/sh
2fb_status=$(wget --spider -S https://filebox.ece.vt.edu/ 2>&1 | grep "HTTP/1.1 200 OK")
3
4mkdir checkpoints
5
6echo "downloading from filebox ..."
7wget https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/color-model.pth
8wget https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/depth-model.pth
9wget https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/edge-model.pth
10wget https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/model.pt
11
12mv color-model.pth checkpoints/.
13mv depth-model.pth checkpoints/.
14mv edge-model.pth checkpoints/.
15mv model.pt MiDaS/.
16
17echo "cloning from BoostingMonocularDepth ..."
18git clone https://github.com/compphoto/BoostingMonocularDepth.git
19mkdir -p BoostingMonocularDepth/pix2pix/checkpoints/mergemodel/
20
21echo "downloading mergenet weights ..."
22wget https://filebox.ece.vt.edu/~jbhuang/project/3DPhoto/model/latest_net_G.pth
23mv latest_net_G.pth BoostingMonocularDepth/pix2pix/checkpoints/mergemodel/
24wget https://github.com/intel-isl/MiDaS/releases/download/v2/model-f46da743.pt
25mv model-f46da743.pt BoostingMonocularDepth/midas/model.pt
26 