Download scripts/visualize.py from yxchng/elia: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/yxchng/elia/resolve/main/scripts/visualize.py
- Command line
-
hf download hf://spaces/yxchng/elia/scripts/visualize.py
-
curl -L -o visualize.py https://huggingface.co/spaces/yxchng/elia/resolve/main/scripts/visualize.py
273 Bytes
| import os | |
| cmd = 'python visualize.py --model="lavt" --swin_type="base" --dataset="refcoco" --split="val" --resume="model_best_refcoco.pth" --workers="4" --ddp_trained_weights --window12 --img_size="224" --vis_dir="elia_refcoco"' | |
| print(cmd, flush=True) | |
| os.system(cmd) | |