-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
36 lines (29 loc) · 1.03 KB
/
run.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
echo "Matting..."
python ./Matting/inference.py \
--variant resnet50 \
--checkpoint "./ckpt/rvm_resnet50.pth" \
--device cpu \
--input-source "./img" \
--output-type png_sequence \
--output-composition "output" \
--output-alpha "output" \
--output-foreground "output" \
--output-video-mbps 4 \
--seq-chunk 1
echo "Inpainting..."
# python ./Inpainting/inference_propainter.py \
# --inputs ./img --input_type image\
# --output ./output \
# --height -1 --width -1
python ./Inpainting/inference_deepfillv2.py \
--image ./img \
--out ./output \
--checkpoint ./ckpt/states_pt_places2.pth
echo "Estimating Pose..."
python ./PoseEstimation/inference.py \
--model-cfg ./PoseEstimation/configs/td-hm_3xrsn50_8xb32-210e_coco-256x192.py \
--vis-cfg ./PoseEstimation/configs/coco.py \
--ckpt ./ckpt/td-hm_3xrsn50_8xb32-210e_coco-256x192-c3e3c4fe_20221013.pth \
--input-dir ./output --apply-matted "True" --output-dir ./output \
--device cpu
python create.py --inputdir ./output