-
Notifications
You must be signed in to change notification settings - Fork 158
/
demo.sh
27 lines (22 loc) · 1.28 KB
/
demo.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
# Detection (OD, IS)
python3 projects/UNINEXT/demo.py --config-file projects/UNINEXT/configs/image_joint_r50.yaml \
--input assets/demo.jpg --output demo/detection.jpg \
--task detection \
--opts MODEL.WEIGHTS outputs/image_joint_r50/model_final.pth
# Grounding (REC, RES)
python3 projects/UNINEXT/demo.py --config-file projects/UNINEXT/configs/image_joint_r50.yaml \
--input assets/demo.jpg --output demo/left.jpg \
--task grounding --expressions "person on the left" \
--opts MODEL.WEIGHTS outputs/image_joint_r50/model_final.pth
python3 projects/UNINEXT/demo.py --config-file projects/UNINEXT/configs/image_joint_r50.yaml \
--input assets/demo.jpg --output demo/middle.jpg \
--task grounding --expressions "middle person" \
--opts MODEL.WEIGHTS outputs/image_joint_r50/model_final.pth
python3 projects/UNINEXT/demo.py --config-file projects/UNINEXT/configs/image_joint_r50.yaml \
--input assets/demo.jpg --output demo/white.jpg \
--task grounding --expressions "person in white" \
--opts MODEL.WEIGHTS outputs/image_joint_r50/model_final.pth
python3 projects/UNINEXT/demo.py --config-file projects/UNINEXT/configs/image_joint_r50.yaml \
--input assets/demo.jpg --output demo/bat.jpg \
--task grounding --expressions "baseball bat on the right" \
--opts MODEL.WEIGHTS outputs/image_joint_r50/model_final.pth