Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
vision
video-understanding
camera
camera-motion
zoom
previs
previsualization
3d
blender
scene-understanding
video-tagging
qwen3.5
lora
conversational
Instructions to use voyager-so/shot-reader-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use voyager-so/shot-reader-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="voyager-so/shot-reader-v2") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("voyager-so/shot-reader-v2") model = AutoModelForMultimodalLM.from_pretrained("voyager-so/shot-reader-v2", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use voyager-so/shot-reader-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "voyager-so/shot-reader-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voyager-so/shot-reader-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/voyager-so/shot-reader-v2
- SGLang
How to use voyager-so/shot-reader-v2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "voyager-so/shot-reader-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voyager-so/shot-reader-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "voyager-so/shot-reader-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voyager-so/shot-reader-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use voyager-so/shot-reader-v2 with Docker Model Runner:
docker model run hf.co/voyager-so/shot-reader-v2
|
Download schema.md from voyager-so/shot-reader-v2: direct link, hf CLI and curl.
- Browser
- Download file 6.01 kB
-
https://huggingface.co/voyager-so/shot-reader-v2/resolve/main/schema.md
- Command line
-
hf download hf://voyager-so/shot-reader-v2/schema.md
-
curl -L -o schema.md https://huggingface.co/voyager-so/shot-reader-v2/resolve/main/schema.md
6.01 kB
Shot sheet schema (v3, Shot Reader v2)
One JSON object per shot, keys in this order: schema_version, shot, camera, style, tags, caption,
n_subjects, subjects, n_events, events, environment, n_set, set. Because the order is fixed, a
camera-only answer (--camera-only) is simply the start of the full one.
{
"schema_version": 3,
"shot": {"start": 0.0, "end": 8.0},
"camera": {"height_m": 0.87, "angle": "eye", "pitch_deg": 2.6, "fov_deg": 42.4,
"move": "push_in", "zoom": {"dir": "out", "fov_end_deg": 61.7}, "handheld": true,
"framing": "full", "subject": "P01",
"confidence": {"move": 0.85, "height": 0.75, "zoom": 0.62},
"move_alt": "static", "ambiguous": ["zoom_vs_dolly"]},
"style": "cg_3d",
"tags": ["city street", "night", "dolly zoom"],
"caption": "A woman in a red coat stands on a wet neon-lit street as the camera drifts in and the lens zooms out.",
"n_subjects": 1,
"subjects": [{"id": "P01", "class": "person", "size_m": [0.5, 0.4, 1.7], "posture": "stand",
"path": [{"t": 0.0, "pos_m": [0.0, 6.0], "facing_deg": 270},
{"t": 8.0, "pos_m": [0.0, 6.0], "facing_deg": 270}]}],
"n_events": 1,
"events": [{"t": 3.2, "type": "turn", "agent": "P01", "dir": "left", "deg": 90}],
"environment": {"type": "outdoor", "ground": "road", "setting": "street", "desc": "wet city street"},
"n_set": 1,
"set": [{"class": "building", "pos_m": [-7.4, 30.0], "size_m": [3.0, 1.5, 13.5], "yaw_deg": 0}]
}
Coordinates
- Ground plane, metres. Origin = the point on the ground directly below the camera in the shot's first frame.
+x= to the camera's right,+y= forward along the camera's initial heading (its view direction projected onto the ground) in the first frame.pos_mis the centre of the subject's ground footprint.facing_deg: the direction the subject faces, degrees counter-clockwise from+x. So 90 = facing away from the camera, 270 (or -90) = facing the camera.size_m= [width, depth, height] of the subject's bounding box.tin seconds from the shot start. Paths are piecewise linear between keys and hold their end values outside them.
Camera
height_m: lens height above the ground in the first frame.pitch_deg: positive = looking up, negative = looking down, first frame.fov_deg: horizontal field of view, first frame.angle(from pitch):low(pitch > +5),eye(−5..+5),high(−5..−50),overhead(< −50).- Height bands (scored by the gate, from
height_m):ground< 0.6 m ≤low< 1.2 m ≤eye< 1.8 m ≤high< 4.0 m ≤aerial. move: one ofstatic— no translation or rotation (handheld jitter allowed)pan— rotates left/right in placetilt— rotates up/down in placepush_in— translates forward along the view directionpull_out— translates backwardtruck— translates sideways, orientation fixedcrane— translates up or down (pedestal/crane), may re-aimorbit— circles around a subject or point while aiming at itfollow— translates with a moving subject, keeping it framed
framingofcamera.subjectin the first frame, by visible subject height / frame height r:wider < 0.35,full0.35–0.8,medium0.8–1.6,close≥ 1.6.
Lens zoom, handheld, confidence
camera.movedescribes the camera body only, never the lens. A focal-length change never changesmove.- Pure zoom in on a locked-off camera:
move: "static",zoom.dir: "in". - Dolly in, fixed lens:
move: "push_in",zoom.dir: "none". - Dolly zoom (vertigo: body moves in, lens widens, subject stays the same size):
move: "push_in",zoom.dir: "out"; the reverse ismove: "pull_out",zoom.dir: "in".
- Pure zoom in on a locked-off camera:
camera.zoom:{"dir": "in" | "out" | "none", "fov_end_deg": <number>}.in= focal length increases = field of view narrows.fov_end_degis the horizontal field of view in the last frame (fov_degstays the first frame's). Lens changes under about 10% (breathing, focus pulls) arenone.camera.handheld:truewhen the shot shows operator shake, whatever its move. Gimbal and Steadicam floats arefalse.camera.confidence:{"move", "height", "zoom"}, the probability thatmove, the height band andzoom.dirare right. These are not written by the model:shot_reader.pycomputes them from the model's own token probabilities through a calibration map fitted on held-out shots (cal.json), so 0.7 means right about 70% of the time.camera.move_alt: the runner-up move when it holds at least 15% of the probability.camera.ambiguous: readings the frames cannot separate:zoom_vs_dolly,pan_vs_truck,tilt_vs_crane,follow_vs_orbit,static_vs_moving,height.
Style, tags, caption
style:live_action(photographed),cg_3d(rendered 3D or game footage),anim_2d(drawn or 2D animation).tags: up to 12 short lowercase search tags (setting, time of day, subjects, camera work, mood).caption: one line describing the shot, for search and logging.
Subjects, events, environment, set
subjects: everyone and everything you named with--subject, plus others the model finds.class,size_m,posture(stand, sit, crouch, lie) and apathof keys; path keys may carryz_m(feet above ground) andposture.events(typed):jump(dur_s,height_m),crouch,stand_up,sit,lie,fall,turn(dir,deg), each withtandagent.environment:type(indoor / outdoor),ground(floor, road, grass, sand, ...), plussettinganddesc.set: large static elements in view (walls, buildings, barriers, trees, tables, ...), one box each:class,pos_m(centre on the ground),size_m[width, depth, height],yaw_deg(counter-clockwise from+x), optionalbase_m(height of the underside, e.g. a ceiling).