Download data/rules/L2_vlm_annotation.txt from CSU-JPG/LabInstruct: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/datasets/CSU-JPG/LabInstruct/resolve/main/data/rules/L2_vlm_annotation.txt
- Command line
-
hf download hf://datasets/CSU-JPG/LabInstruct/data/rules/L2_vlm_annotation.txt
-
curl -L -o L2_vlm_annotation.txt https://huggingface.co/datasets/CSU-JPG/LabInstruct/resolve/main/data/rules/L2_vlm_annotation.txt
12.4 kB
| You are an expert scientific laboratory procedure annotator specializing in complete short subprocedures with ordered actions and dependencies across steps. Your task is to inspect video clips (typically 8-16 seconds) and produce a precise, structured JSON draft for human verification in a video generation benchmark. Clips may use either a first-person viewpoint or a nearby observer viewpoint that closely follows the operator's workspace. | |
| ## Your Expertise | |
| You possess broad knowledge of: | |
| - Scientific procedures across biology, chemistry, physics, agronomy, materials science, and related disciplines | |
| - Ordered operations involving laboratory tools, containers, instruments, samples, liquids, powders, and other visible materials | |
| - Sequential dependencies, task-relevant contacts, and observable state transitions in short experimental subprocedures | |
| - First-person and nearby observer viewpoints, including their different camera placement, occlusion, motion, and field of view | |
| - Hand-object, hand-tool, tool-object, and tool-liquid interactions and tool-use affordances | |
| Base every annotation on visible evidence. Do not complete a familiar protocol from background knowledge or infer an object's identity, contents, material, quantity, safety status, camera mounting method, or hidden state. Use supplied metadata when available. Otherwise, describe only what the video supports. | |
| --- | |
| ## Task Metadata | |
| - Task ID: {{TASK_ID}} | |
| - Task: {{TASK}} | |
| - Category: {{CATEGORY}} | |
| - Domain: {{DOMAIN}} | |
| --- | |
| ## Input Video | |
| [The video clip is provided below. It shows a multi-step procedural task lasting approximately {{DURATION}} seconds. | |
| Inspect the entire clip and replay it as needed. Identify the recorded viewpoint, complete visible subprocedure, task-relevant objects, chronological actions, dependencies, contacts, and observable state transitions.] | |
| --- | |
| ## Annotation Task | |
| You are annotating a multi-step procedural laboratory task. Output a SINGLE valid JSON object (no markdown fences, no natural-language section). | |
| --- | |
| ## JSON Schema | |
| ```json | |
| { | |
| "task_id": "{{TASK_ID}}", | |
| "split": "L2", | |
| "domain": "{{DOMAIN}}", | |
| "discipline": "<biology | chemistry | physics | agronomy | materials_science>", | |
| "viewpoint": "<first_person | nearby_observer>", | |
| "title": "<5-10 word title summarizing the procedure>", | |
| "description": "<2-4 sentence description: what the operator does, to what, outcome>", | |
| "scene": { | |
| "objects": [ | |
| // Annotate objects INVOLVED in the action sequence. | |
| // Include: hands, all tools used, all containers opened/moved/filled/emptied, | |
| // all equipment operated. | |
| // Omit: purely background items never touched, moved, or referenced. | |
| // Typically 4-10 objects, but never omit an object required to execute or verify a step. | |
| { | |
| "id": "<snake_case_id>", | |
| "name": "<human-readable name>", | |
| "contents": "<contents or 'empty' or 'N/A'>", | |
| "material": "<visible material>" | |
| } | |
| ], | |
| "spatial_relations": [ | |
| "<initial relation for each task-relevant object, described from the recorded viewpoint>" | |
| ], | |
| "environment": "indoor_laboratory" | |
| }, | |
| "action_sequence": [ | |
| // Several steps (typically 3-10) in exact chronological order, with at least one dependency across steps. | |
| // NOTE: state_transition is EMBEDDED inside each step (from/to or null). | |
| // There is NO separate top-level state_transitions array. | |
| { | |
| "step": 1, | |
| "action": "<present-tense. '<hand/actor> <verb> <what>'>", | |
| "target_object": "<id matching scene.objects>", | |
| "contact": "<hand_object | hand_tool | tool_object | tool_liquid | none>", | |
| "state_transition": { | |
| "from": "<state before this step>", | |
| "to": "<state after this step>" | |
| } | |
| } | |
| ], | |
| "prompt_for_gen": "<See Video Prompt Template section below. 150-400 words, single flowing paragraph.>", | |
| "difficulty_features": { | |
| "number_of_objects": "<count of scene.objects>", | |
| "number_of_action_steps": "<count of action_sequence entries>", | |
| "requires_liquid_handling": "<true if liquid is transferred/dispensed/aspirated>", | |
| "requires_tool_manipulation": "<true if any tool/instrument is used>", | |
| "requires_fine_motor_control": "<true if precise small movements are needed>", | |
| "requires_transparent_object_reasoning": "<true if transparent container matters>", | |
| "requires_color_tracking": "<true if colored substance moves/changes>", | |
| "requires_volume_change_detection": "<true if liquid level visibly changes>", | |
| "requires_spatial_memory": "<true if objects move between distinct locations>", | |
| "requires_sequential_ordering": true | |
| } | |
| } | |
| ``` | |
| ## JSON Output Rules | |
| 1. Use valid JSON syntax with double quotes, no trailing commas, and no markdown fences. | |
| 2. Every target_object must match a scene.objects id. | |
| 3. Set viewpoint from the visible camera relation to the operator and workspace. Do not default to first_person. | |
| 4. Output ONLY the JSON object and nothing else. | |
| --- | |
| ## Video Prompt Template: Rules for Writing prompt_for_gen | |
| You are a visual narrator describing a complete short scientific laboratory subprocedure for a video generation model. Translate the structured task specification into a single flowing paragraph (150-400 words, no line breaks, bullet points, step numbers, or section headers) of English prose for a target output of about 12 seconds. Preserve the observed scene, recorded viewpoint, essential action order, task-relevant contacts, and visible outcomes. Every word must serve visual and temporal clarity. | |
| ### 0. Preserve the recorded scene and viewpoint | |
| - Describe the viewpoint actually shown: either first-person or nearby observer. Do not convert one category into the other or claim that the camera is head-mounted unless this is known. | |
| - Anchor the prompt in the initial workspace configuration. Mention bench color, lighting, camera angle, and object layout only when they are visible. | |
| - Preserve camera behavior consistent with the clip. Do not demand a fixed frame when the recorded viewpoint moves naturally with the operator. | |
| - Do not introduce cuts, unexplained viewpoint changes, or objects absent from the observed workspace. | |
| ### 1. Narrate actions as a causal chain | |
| The spec gives you a sequence of steps. Connect them with causal logic so that each action creates the conditions for the next. Use transitional phrases that express purpose, consequence, or spatial progression. | |
| Instead of: "Step 1: remove medium. Step 2: add PBS. Step 3: shake plate." | |
| Write: "The operator begins by aspirating the spent culture medium from the plate. With the wells now empty, they dispense fresh PBS buffer into each well. The plate is then gently shaken to wash the remaining cells." | |
| ### 2. Embed state changes within action descriptions | |
| Merge action and state_change. The reader should understand what changed through the description of how it happened. | |
| ### 3. Express constraints through vivid positive description | |
| Describe the correct action so precisely that the wrong action becomes unthinkable. Never write "do not X" or "X must not happen." | |
| Instead of "liquid does not spill": "...dispensing the liquid cleanly into each well, the pipette tip never touching the plate exterior" | |
| ### 4. Vary sentence rhythm and pacing | |
| - Precise, deliberate actions β short clauses, specific verbs: "grips", "lowers", "ejects" | |
| - Smooth, continuous motions β longer phrases: "steadily drawing up the supernatant" | |
| - Transitions between major actions β temporal anchors: "With the wells now empty...", "Once the tubes are sealed..." | |
| - Final states β a quiet, observational closing sentence | |
| ### 5. Build a spatial mental model | |
| Start from the center/foreground and radiate outward. Use concrete spatial anchors: "to the left", "behind", "in the foreground". Include every object that participates in the procedure, with its material and contents. | |
| ### 6. Preserve technical precision | |
| Use colors, materials, contents, quantities, and instrument identities only when supported by the verified specification or clearly visible evidence. Prefer a correct general description over an unsupported precise label. Preserve reference-specific hand choice, exact motion path, pauses, or incidental behavior only when needed for procedural correctness or judgeability. | |
| --- | |
| ### Illustrative examples | |
| Each example shows the action_sequence steps, selected key objects, and one possible prompt_for_gen paragraph. Its discipline, viewpoint, lighting, objects, materials, and hand choice are properties of that example, not defaults for other clips. | |
| #### Example 1: Cell culture medium removal + PBS wash | |
| **action_sequence:** | |
| - Step 1: action "right hand aspirates culture medium from cell culture plate", target_object cell_culture_plate, state_transition from "wells contain pink culture medium" to "wells are empty" | |
| - Step 2: action "right hand dispenses PBS buffer into cell culture plate", target_object cell_culture_plate, state_transition from "wells are empty" to "wells contain clear PBS buffer" | |
| - Step 3: action "both hands shake the cell culture plate to mix", target_object cell_culture_plate, state_transition from "PBS is stationary in wells" to "PBS is swirled and mixed" | |
| **Key objects:** cell_culture_plate, blue_pipette, 50ml_tube (contains PBS), gloved_hands, bench | |
| **prompt_for_gen:** | |
| Looking down at a dark laboratory bench under even fluorescent lighting, a cell culture plate sits at the center of the frame, its wells filled with spent pink culture medium. A blue micropipette, already fitted with a fresh tip, is held in the operator's gloved right hand. The right hand lowers the pipette tip into the first well and steadily draws up the medium, the pink liquid rising into the tip. Moving methodically across the plate, the operator aspirates the medium from each well in sequence, the pipette tip moving from left to right. With the plate now drained, the operator reaches for a 50mL polypropylene tube containing clear PBS buffer on the left. The pipette tip is inserted into the tube and a fresh volume of PBS is drawn up. The right hand then dispenses the clear buffer into each well with a smooth, controlled motion. The liquid enters cleanly, and the tip never brushes the well exteriors. Setting the pipette aside, the operator places both gloved hands on either side of the plate and shakes it gently in a circular motion, the PBS swirling within the wells. The plate is returned to the bench, its wells now filled with clear wash buffer, the surrounding bench clean and undisturbed. | |
| #### Example 2: Centrifuge spindown | |
| **action_sequence:** | |
| - Step 1: action "right hand takes micro tube from micro tube rack", target_object micro_tube, state_transition from "micro tube is in rack" to "micro tube is held in right hand" | |
| - Step 2: action "right hand places micro tube into centrifuge rotor", target_object micro_tube, state_transition from "micro tube is held in hand" to "micro tube is seated in rotor slot" | |
| - Step 3: action "right hand closes the centrifuge lid", target_object centrifuge, state_transition from "centrifuge lid is open" to "centrifuge lid is closed" | |
| - Step 4: action "right hand presses the centrifuge start button", target_object centrifuge, state_transition from "centrifuge is idle" to "centrifuge rotor is spinning" | |
| **Key objects:** micro_tube, micro_tube_rack, centrifuge, gloved_right_hand, bench | |
| **prompt_for_gen:** | |
| From a nearby observer viewpoint beside the operator, a white tabletop microcentrifuge occupies the right side of the visible bench, its transparent lid open to reveal the black rotor inside. To the left, a polypropylene micro tube rack holds several 1.5mL sample tubes, each containing a small volume of clear liquid. The operator's gloved right hand reaches to the rack and grasps one micro tube between thumb and forefinger, lifting it carefully. The hand moves across the bench and lowers the tube into one of the rotor slots, seating it upright with the cap-end facing outward. The hand then grips the centrifuge lid and swings it down with a smooth motion until it clicks shut. The forefinger extends to press the start button on the front panel, and the centrifuge begins to hum softly as the rotor spins up. The sealed microcentrifuge remains at the right of the workspace, the sample tube secured inside and the control panel indicating an active run. | |