Spaces:
Runtime error
Runtime error
Download scripts/sqa_eval_gather.sh from LanguageBind/Video-LLaVA: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/LanguageBind/Video-LLaVA/resolve/main/scripts/sqa_eval_gather.sh
- Command line
-
hf download hf://spaces/LanguageBind/Video-LLaVA/scripts/sqa_eval_gather.sh
-
curl -L -o sqa_eval_gather.sh https://huggingface.co/spaces/LanguageBind/Video-LLaVA/resolve/main/scripts/sqa_eval_gather.sh
518 Bytes
| CHUNKS=8 | |
| output_file="test_llava-13b.jsonl" | |
| # Clear out the output file if it exists. | |
| > "$output_file" | |
| # Loop through the indices and concatenate each file. | |
| for idx in $(seq 0 $((CHUNKS-1))); do | |
| cat "./test_llava-13b-chunk${idx}.jsonl" >> "$output_file" | |
| done | |
| python llava/eval/eval_science_qa.py \ | |
| --base-dir ~/haotian/datasets/ScienceQA/data/scienceqa \ | |
| --result-file ./test_llava-13b.jsonl \ | |
| --output-file ./test_llava-13b_output.json \ | |
| --output-result ./test_llava-13b_result.json | |