Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.3 KB

DEMO.md

File metadata and controls

51 lines (42 loc) · 1.3 KB

Gradio App

We provide a gradio demo for SCA with both "prompt mode" and "anything mode".

demo.small.1 demo.small.2

Gallary of anything mode:

anything-mode-00 anything-mode-03
anything-mode-01 anything-mode-02
CKPT_PATH=
python scripts/apps/sca_app.py \
+model=base_sca_multitask_v2 \
model.model_name_or_path=$CKPT_PATH \
model.lm_head_model_name_or_path=$(python scripts/tools/get_sub_model_name_from_ckpt.py $CKPT_PATH "lm")

We also provide an app to visualize the dataset:

python scripts/apps/dataset_viewer_app.py \
train_data='[vg-densecap-local]' \
eval_data='[vg-densecap-local]' \
+model=base_sca_multitask_v2 \
training.do_train=True \
training.do_eval=True \

# View original datasets
python scripts/apps/dataset_viewer_app.py \
train_data='[vg-densecap-local]' \
eval_data='[vg-densecap-local]' \
+model=base_sca_multitask_v2 \
training.do_train=False \
training.do_eval=False