Download tmp.py from syCen/CameraBench: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/datasets/syCen/CameraBench/resolve/main/tmp.py
- Command line
-
hf download hf://datasets/syCen/CameraBench/tmp.py
-
curl -L -o tmp.py https://huggingface.co/datasets/syCen/CameraBench/resolve/main/tmp.py
276 Bytes
| from datasets import Dataset, Features, Value, Video | |
| features = Features({ | |
| "video": Video(), # ✅ 指定 video 字段是视频类型 | |
| "labels": [Value("string")], | |
| "caption": Value("string") | |
| }) | |
| dataset = Dataset.from_json("videos_test.jsonl", features=features) | |