long-div / scripts /generate_tier2_batch04.py
ymyy307's picture
Upload folder using huggingface_hub
5b12ab1 verified
Raw History Blame Contribute Delete
19.3 kB
#!/usr/bin/env python3
import json
from pathlib import Path
from generate_tier2_batch02 import shot, line, compile_case
ROOT=Path(__file__).resolve().parents[1]
OUT=ROOT/"generated"/"tier2_batch04.json"
CASES=[
{
"case_id":"worker_16_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":12,"absence_gap":6,
"characters":{
"<char1>":"a young white man with curly brown hair, a mustard T-shirt, dark green trousers, and a striped kitchen towel over one shoulder",
"<char2>":"a middle-aged Black woman with a short natural afro, a navy house cardigan, rust trousers, and round glasses",
"<char3>":"a young East Asian woman with shoulder-length black hair, a pale gray sweatshirt, blue jeans, and soft red slippers"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> open the shared kitchen oven as a small cloud of vegetable steam drifts toward the narrow balcony door.","Oven ventilation, a faint sizzle, and one housemate speaks.",[line("<char1>","The vegetables are ready, but the steam is collecting near the ceiling.")]),
shot(2,["<char2>"],"A medium shot frames <Subject 1> entering from the living room and opening the balcony door halfway as the curtain lifts.","A door slides, curtain fabric moves, and one reply.",[line("<char2>","I will open this side first and keep the doorway clear.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks <Subject 1> carrying one roasting pan from oven to stove while <Subject 2> steps toward the living-room arch.","Pan handles, ventilation, and soft footsteps."),
shot(4,["<char2>","<char1>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> set the hot pan safely on the stove as the curtain indicates weak airflow.","A pan settles and fabric stirs."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> comes from the hallway, observes the drifting steam, then crosses into the living room to open the far window and move one lightweight chair from the air path.","Room tone and one practical voice.",[line("<char3>","I will open the far window and clear the cross-breeze path from the living room.")]),
shot(6,["<char1>","<char2>"],"A close shot catches the balcony curtain begin to pull outward while <Subject 1> and <Subject 2> watch the steam thin above the stove.","Curtain rings and quieter sizzling."),
shot(7,["<char1>"],"<Subject 1> carries two plates through the kitchen arch and stops at the window-side seating area without using the counter as a central composition.","Plates and apartment ambience."),
shot(8,["<char2>"],"A fixed wide shot shows <Subject 1> close the oven and walk into the living room as the air clears behind her.","Oven door, footsteps, and moving curtains."),
shot(9,["<char1>","<char2>"],"The two housemates sit near the open balcony, then stand again when a cooler breeze reaches the room.","Chair fabric, breeze, and no speech."),
shot(10,["<char2>"],"A medium shot follows <Subject 1> to the balcony threshold, where she checks the rain has stopped and leaves the door half open.","Distant street water and a soft door rail."),
shot(11,["<char1>","<char2>"],"From over their shoulders, the living-room curtains now stream steadily toward the balcony, revealing a figure approaching from the far window side.","Cross-breeze and quiet footsteps."),
shot(12,["<char3>"],"A medium reappearance shot shows <Subject 1> enter from the living room, matching the gray sweatshirt, jeans, red slippers, and black hair seen earlier.","The far window remains open and the same voice returns.",[line("<char3>","The cross-breeze is working. We can leave both openings narrow and eat by the window.")]),
shot(13,["<char1>","<char2>","<char3>"],"A wide final shot shows all three settle near the bright window while the clear kitchen remains visible through the arch behind them.","Curtains, subdued cutlery, and no dialogue.")
]
},
{
"case_id":"worker_17_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":7,"reappearance_shot":15,"absence_gap":7,
"characters":{
"<char1>":"a young South Asian woman with long black hair in a ponytail, a rust raincoat, dark jeans, and white sneakers",
"<char2>":"an older white man with a gray beard, a forest-green jacket, tan trousers, and a brown flat cap",
"<char3>":"a middle-aged Black man with close-cropped hair, a teal animal-care shirt, charcoal trousers, and a broad blue leash"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot follows <Subject 1> along a quiet shelter corridor toward a glass door overlooking an empty meeting yard.","Soft kennel ambience and one visitor speaks.",[line("<char1>","I would like to meet the older dog somewhere quiet and let it approach first.")]),
shot(2,["<char2>"],"A medium shot shows <Subject 1> enter from the reception arch and pause beside the observation window.","Low ventilation and one reply.",[line("<char2>","I will stay back near the wall so the yard does not feel crowded.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both visitors toward the yard door while they leave a broad space between themselves.","Shoes on sealed floor and distant dog tags."),
shot(4,["<char2>","<char1>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> open the yard door and wait inside the threshold.","A latch and outdoor birds."),
shot(5,["<char1>"],"A close shot holds <Subject 1>'s relaxed hands as she sits on the low yard bench and looks away from the inner gate.","Light wind and subdued shelter ambience."),
shot(6,["<char1>","<char2>"],"A fixed wide shot shows both visitors seated far apart while the inner gate remains closed and the yard stays still.","Leaves scrape softly across paving."),
shot(7,["<char3>","<char1>","<char2>"],"<Subject 1> enters through the inner gate with a calm elderly brown dog on a loose blue leash, speaks once, then walks with the dog through the outer side gate.","Dog steps, a gate hinge, and one caretaker voice.",[line("<char3>","Stay where you are and let her look around. I will take one quiet loop outside the fence.")]),
shot(8,["<char1>","<char2>"],"The visitors remain seated as wind moves the yard grass; neither calls toward the outer path.","Birds, light traffic far away, and no speech."),
shot(9,["<char1>"],"A medium shot shows <Subject 1> stand, turn sideways, and crouch near the bench rather than facing the gate directly.","Clothing movement and outdoor room tone."),
shot(10,["<char2>"],"<Subject 1> walks to the opposite wall and sits, keeping the center of the meeting yard open.","Slow footsteps and leaves."),
shot(11,["<char1>","<char2>"],"A wide view holds the two visitors on opposite sides while a small shadow moves beyond the slatted outer fence.","A leash ring faintly sounds outside."),
shot(12,["<char1>"],"A close shot catches <Subject 1> look down and remain still as a dog's nose briefly appears beneath the side gate.","Soft sniffing and wind."),
shot(13,["<char2>","<char1>"],"From over <Subject 1>'s shoulder, <Subject 2> remains crouched as the gate begins to swing inward.","Gate wood and one quiet paw step."),
shot(14,["<char1>","<char2>"],"A low medium shot shows the elderly dog enter first on a relaxed leash and sniff the paving while both visitors hold their positions.","Paws, breathing, and birds."),
shot(15,["<char3>"],"A medium reappearance shot reveals <Subject 1> follow through the gate with the same teal shirt, charcoal trousers, close-cropped hair, and blue leash.","The gate closes and the same caretaker speaks.",[line("<char3>","She chose to come back through this gate. Keep still and let her decide whom to greet.")])
]
},
{
"case_id":"worker_18_tier2","tier":2,"target_identity":"<char4>","first_appearance_shot":6,"reappearance_shot":13,"absence_gap":6,
"characters":{
"<char1>":"a young Middle Eastern father with short dark curls, a navy sweater, khaki trousers, and brown loafers",
"<char2>":"a seven-year-old girl with curly black hair, a yellow cardigan, denim overalls, and red socks",
"<char3>":"a ten-year-old boy with straight black hair, a green hoodie, gray trousers, and blue sneakers",
"<char4>":"a young white woman with a copper bob, a plum library cardigan, a cream blouse, and a silver moon pin"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> sitting on a soft library step beside the open children's reading area after story time.","Quiet library ambience and one parent speaks.",[line("<char1>","We can act out the weather part here without blocking the book aisle.")]),
shot(2,["<char2>"],"A medium shot shows <Subject 1> stand on the carpet and slowly sweep both arms like wind through branches.","Cardigan fabric and one child voice.",[line("<char2>","I will be the gentle wind first, not the storm.")]),
shot(3,["<char3>"],"A close shot catches <Subject 1> rise from a floor cushion and make two quiet fingertip rain taps on his sleeves.","Soft taps and one child reply.",[line("<char3>","I can make the rain sound while staying in one place.")]),
shot(4,["<char1>","<char2>","<char3>"],"A lateral follow keeps all three in view as they move from the soft steps to the open carpet by the windows.","Sock steps, sneakers, and distant pages."),
shot(5,["<char2>","<char3>"],"A fixed wide shot shows the children alternate gentle arm movements while tree shadows sway across the window behind them.","Leaves outside and restrained movement."),
shot(6,["<char4>","<char1>","<char2>","<char3>"],"<Subject 1> enters through the curved book passage, suggests one quiet movement, then accompanies <Subject 2> and <Subject 3> toward the nearby drinking area.","Soft steps and one activity leader voice.",[line("<char4>","Try one slow cloud turn. I will walk with you to the water fountain, then we can finish by the window.")]),
shot(7,["<char1>"],"A medium shot shows <Subject 1> remain by the window and watch real branches move beyond the glass.","Leaves, ventilation, and no speech."),
shot(8,["<char1>"],"An over-the-shoulder view behind <Subject 1> looks across the empty carpet toward the curved shelves.","A distant fountain and page turns."),
shot(9,["<char1>"],"<Subject 1> stands and performs one slow turn with arms close to his sides, then returns to the window edge.","Shoes on carpet and soft room tone."),
shot(10,["<char1>"],"A close shot frames moving leaf shadows across <Subject 1>'s navy sweater as sunlight changes.","Outdoor leaves and quiet ventilation."),
shot(11,["<char1>"],"A wide shot shows <Subject 1> cross toward the soft steps and sit where he can see both the window and curved passage.","Carpeted steps and distant library sound."),
shot(12,["<char1>"],"From over his shoulder, small figures appear between shelf openings and approach along the curved route.","Several soft footsteps draw nearer."),
shot(13,["<char4>","<char2>","<char3>"],"A medium reappearance shot shows <Subject 1> return between the children, with the same copper bob, plum cardigan, cream blouse, and moon pin.","The same warm voice and quiet library ambience.",[line("<char4>","The windows are showing real moving clouds now. Let us finish with one gentle group turn.")]),
shot(14,["<char1>","<char2>","<char3>","<char4>"],"A wide final shot holds all four on the open carpet as they complete one slow turn and stop facing the changing window light.","Clothing movement, leaves outside, and no dialogue.")
]
},
{
"case_id":"worker_19_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":15,"absence_gap":9,
"characters":{
"<char1>":"a young East Asian woman with long black hair, a cream trench coat, navy trousers, and a folded burgundy umbrella",
"<char2>":"a young Latino man with wavy brown hair, a dark teal jacket, black jeans, and round glasses",
"<char3>":"an elderly white man with swept silver hair, a charcoal wool coat, a rust scarf, and a carved walking stick"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot places <Subject 1> in a historic stone courtyard as the first rain darkens the central paving.","Rain begins and one visitor speaks.",[line("<char1>","The nearest arcade is open. I will move there before the stone becomes slick.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the opposite arch toward the covered walkway while water begins tracing the old channel.","Rain, footsteps, and one reply.",[line("<char2>","I will use the outer edge and leave the drain clear.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both visitors into the arcade as the rain curtain thickens behind them.","Rain on stone and echoing steps."),
shot(4,["<char2>","<char1>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> looking across the courtyard toward water gathering in the central pool.","Water channels and old-roof drips."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> comes through a side arch, points out the safer curved arcade, then walks away along the opposite covered side to inspect its stone surface.","Cane on stone and one elderly voice.",[line("<char3>","Follow the inner arcade. I will check the far curve and meet you beyond the rain court.")]),
shot(6,["<char1>","<char2>"],"A wide shot shows the visitors advance beneath repeating arches while the open courtyard remains fully visible to their right.","Heavy rain and measured footsteps."),
shot(7,["<char1>"],"A close shot catches droplets running from <Subject 1>'s folded umbrella as she pauses beside a carved column.","Roof drips and courtyard echo."),
shot(8,["<char2>"],"A medium shot follows <Subject 1> around the first curved section as water enters the central stone pool.","Shoes on dry stone and flowing water."),
shot(9,["<char1>","<char2>"],"The two stop beneath a broad arch and watch a complete sheet of rain cross the courtyard between them and the opposite side.","Rain dominates; no speech."),
shot(10,["<char2>","<char1>"],"An over-the-shoulder view shows the next dry arcade segment through two aligned arches.","Drips and distant thunder."),
shot(11,["<char1>","<char2>"],"A fixed wide shot holds both visitors crossing the covered corner while rainwater rises visibly in the pool channel.","Water movement and footsteps."),
shot(12,["<char1>"],"<Subject 1> sits briefly on a stone ledge inside the arcade, then rises as the rain begins to soften.","Coat fabric and easing rain."),
shot(13,["<char2>"],"<Subject 1> approaches the last arch and looks across the lighter rain toward the far covered walkway.","Rain softens and birds return faintly."),
shot(14,["<char1>","<char2>"],"A long shot frames both visitors beneath the near arch while a familiar figure enters the distant opposite arch through the remaining rain.","Water drains and a cane approaches."),
shot(15,["<char3>"],"A medium reappearance shot reveals <Subject 1> crossing the far arch, matching the silver hair, charcoal coat, rust scarf, and carved walking stick seen earlier.","Cane taps and the same elderly voice.",[line("<char3>","The far curve is dry now, and the rain court can be crossed under the final arcade.")])
]
},
{
"case_id":"worker_20_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":6,"reappearance_shot":13,"absence_gap":6,
"characters":{
"<char1>":"a young white man with sandy curls, a gray athletic hoodie, navy shorts over leggings, and white court shoes",
"<char2>":"an older East Asian man with short silver hair, a forest-green track jacket, charcoal trousers, and blue sneakers",
"<char3>":"a middle-aged Black woman with long locs tied back, a burnt-orange warm-up jacket, black track trousers, and red basketball shoes"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> alone on a community half-court, taking one slow set shot from near the basket.","One ball bounce and one player speaks.",[line("<char1>","I will stay close to the hoop until my footing feels steady.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the sideline bench as he retrieves the slowly rolling ball.","Shoes, a ball roll, and one reply.",[line("<char2>","I can return the ball from the side without crowding the lane.")]),
shot(3,["<char1>","<char2>"],"A lateral tracking shot keeps both players full-length as they exchange one chest pass and reset several paces apart.","Ball contact and light evening traffic."),
shot(4,["<char2>"],"A close shot shows <Subject 1> steady the ball, bend his knees slightly, and make a short bank shot without jumping.","Ball on backboard and rim."),
shot(5,["<char1>","<char2>"],"A fixed wide shot holds both players as <Subject 1> collects the rebound and walks it back to the free-throw area.","Measured bounces and birds."),
shot(6,["<char3>","<char1>","<char2>"],"<Subject 1> enters from the sideline, demonstrates one balanced set-shot stance, then accompanies <Subject 2> toward the drinking fountain.","Court shoes and one coach voice.",[line("<char3>","Keep both feet quiet before the release. I will walk with you to the fountain, then we will try again.")]),
shot(7,["<char2>"],"A medium shot shows <Subject 1> practice the stance without the ball, holding the pause and relaxing his shoulders.","Shoes scuff softly and distant ball play."),
shot(8,["<char2>"],"<Subject 1> takes one slow dribble, gathers the ball, and makes a short shot that rolls around the rim.","One bounce, rim contact, and no speech."),
shot(9,["<char2>"],"An over-the-shoulder angle follows the ball from <Subject 1>'s hands to the backboard and down into the key.","Backboard contact and ball roll."),
shot(10,["<char2>"],"A wide shot shows <Subject 1> walk after the ball, collect it near the sideline, and return at an unhurried pace.","Even steps and one loose bounce."),
shot(11,["<char2>"],"A close shot catches <Subject 1> smile after a clean bank shot, then let the ball settle against his hip.","Net movement and evening ambience."),
shot(12,["<char2>"],"From over his shoulder, the drinking fountain path comes into view as two figures approach the sideline bench.","Footsteps and faint running water."),
shot(13,["<char3>","<char1>"],"A medium reappearance shot shows <Subject 1> return beside <Subject 2>, clearly matching the tied locs, orange jacket, black trousers, and red shoes.","The same coach speaks as court ambience continues.",[line("<char3>","Your balance is settled now. Take one more close shot and keep the same quiet feet.")]),
shot(14,["<char1>","<char2>","<char3>"],"A wide final shot holds all three as <Subject 2> makes one controlled bank shot, <Subject 1> watches from the lane edge, and <Subject 3> remains near the sideline.","Ball, net, and evening birds; no dialogue.")
]
}
]
def main():
cases=[compile_case(case) for case in CASES]
OUT.write_text(json.dumps(cases,ensure_ascii=False,indent=2)+"\n",encoding="utf-8")
print(json.dumps({"cases":len(cases),"shots":sum(len(c["shots"]) for c in cases),"output":str(OUT)},indent=2))
if __name__=="__main__": main()