long-div / scripts /generate_tier2_batch05.py
ymyy307's picture
Upload folder using huggingface_hub
5b12ab1 verified
Raw History Blame Contribute Delete
18.6 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_batch05.json"
CASES=[
{
"case_id":"worker_21_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":13,"absence_gap":7,
"characters":{
"<char1>":"a middle-aged Black woman with a close natural haircut, a red sailing jacket, navy trousers, and gray deck shoes",
"<char2>":"a middle-aged white man with sandy hair, a dark green windbreaker, tan trousers, and a blue knit cap",
"<char3>":"a young Latino man with short wavy hair, a cobalt club jacket, black trousers, and orange-soled deck shoes"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> descend the sloped gangway toward a floating rowing dock as the river lifts the platform gently.","Water, dock joints, and one member speaks.",[line("<char1>","The water is higher than this morning. I will wait for the dock to settle before stepping across.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> along the shore path toward a double rowing shell resting beside the near float.","Gravel, water, and one reply.",[line("<char2>","I will keep the bow near the inner edge and leave the gangway open.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both members onto the float, where they take separate positions beside the shell without lifting it yet.","Floating dock creaks and light wind."),
shot(4,["<char2>","<char1>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> test the shell's slow movement against the calm water.","Hull against water and loose rope."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> approaches from the far float, indicates the open return route, then walks along the shoreline toward another mooring point.","Deck shoes, water, and one instructor voice.",[line("<char3>","Hold the shell level here. I will check that the far berth is clear for our return path.")]),
shot(6,["<char1>","<char2>"],"A wide shot shows both members lift the shell only enough to guide it parallel to the float, moving in short synchronized steps.","Hull movement and dock creaks."),
shot(7,["<char1>"],"A close shot catches <Subject 1> pause with relaxed shoulders while the float rises under a passing wake.","A small wake and jacket fabric."),
shot(8,["<char2>","<char1>"],"A medium shot follows <Subject 1> backward and <Subject 2> forward as they guide the shell toward the gangway side.","Coordinated footsteps and water."),
shot(9,["<char1>","<char2>"],"A fixed wide view holds the pair while they stop and let another wake pass beneath both dock and boat.","Water slaps softly and no speech."),
shot(10,["<char2>"],"<Subject 1> walks to the bow, checks the clear shoreline route by sight, and returns to his position.","Deck footsteps and distant gulls."),
shot(11,["<char1>","<char2>"],"A lateral tracking shot follows the shell and both walkers through the final meters toward the open berth.","Hull, water, and steady footfalls."),
shot(12,["<char1>"],"From over <Subject 1>'s shoulder, the far float comes into view with a familiar cobalt figure approaching along it.","Dock joints and river wind."),
shot(13,["<char3>"],"A medium reappearance shot shows <Subject 1> walk back from the far berth, matching the wavy hair, cobalt jacket, black trousers, and orange-soled shoes.","Water and the same instructor voice.",[line("<char3>","The berth is open. Keep this pace and bring the bow toward the inside marker.")]),
shot(14,["<char1>","<char2>","<char3>"],"A wide final shot shows all three guide the shell into the empty berth while the river continues moving beneath them.","Three walking rhythms, water, and no dialogue.")
]
},
{
"case_id":"worker_22_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":7,"reappearance_shot":14,"absence_gap":6,
"characters":{
"<char1>":"a young Black woman with an extremely short natural haircut, a white linen shirt, an indigo-stained apron, and loose black trousers",
"<char2>":"a middle-aged East Asian man with short gray hair, a sand overshirt, navy trousers, and clear-framed glasses",
"<char3>":"an elderly Southeast Asian woman with long silver hair in a low knot, a plum cotton jacket, dark trousers, and a jade bangle"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> cross an open dye-yard beside long blue fabric moving on overhead lines.","Fabric, courtyard wind, and one dyer speaks.",[line("<char1>","The sun has reached the first cloth. I want to compare it before the wind dries the lower edge.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the shallow rinse channel toward the shaded end of the same cloth.","Water, fabric, and one reply.",[line("<char2>","I will look from the shade so the color is not changed by glare.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both beneath the cloth line while shifting blue light passes over their clothing.","Cloth moves and water laps."),
shot(4,["<char2>"],"A close shot frames reflected blue across <Subject 1>'s glasses as he watches one damp edge darken in shadow.","Fabric and quiet courtyard water."),
shot(5,["<char1>","<char2>"],"A fixed wide shot shows the pair lift one long cloth edge together and carry it several steps toward the breezier line.","Fabric tension and synchronized footsteps."),
shot(6,["<char1>"],"An over-the-shoulder view behind <Subject 1> looks through translucent cloth toward the water channel and a second row beyond.","Wind and fabric layers."),
shot(7,["<char3>","<char1>","<char2>"],"<Subject 1> enters from the courtyard arch, observes the sunlit section, then walks behind the far cloth row to compare its shaded portion.","A jade bangle, cloth, and one senior voice.",[line("<char3>","Keep this edge loose. I will compare the shaded length beyond the second line.")]),
shot(8,["<char1>","<char2>"],"A wide shot holds the two workers as they lower the cloth gently and let the wind reopen its full surface.","Fabric billows and water drips."),
shot(9,["<char1>"],"A medium follow shows <Subject 1> walk beside the rinse channel while watching color shift across the moving cloth.","Water and light footsteps."),
shot(10,["<char2>"],"<Subject 1> stands in open sun, then steps into cloth shadow to compare the same blue without touching it.","Wind and courtyard ambience."),
shot(11,["<char1>","<char2>"],"A close-to-wide transition begins at the wet hem and reveals both workers crossing toward the water side.","Droplets and fabric."),
shot(12,["<char2>","<char1>"],"A lateral shot follows the pair carrying the cloth edge back toward its original line as the breeze weakens.","Soft fabric and measured steps."),
shot(13,["<char1>"],"From over <Subject 1>'s shoulder, a figure appears beyond the translucent far cloth and approaches the rinse channel.","Water and footsteps behind fabric."),
shot(14,["<char3>"],"A medium reappearance shot reveals <Subject 1> pass through the cloth opening, matching the silver hair, plum jacket, jade bangle, and dark trousers.","Fabric parts and the same senior voice.",[line("<char3>","The shaded length is cooler but evenly dyed. Leave it in this softer wind.")]),
shot(15,["<char1>","<char2>","<char3>"],"A wide final shot shows all three walk the length of the hanging cloth as its color shifts naturally between sun and shade.","Courtyard wind, water, and no dialogue.")
]
},
{
"case_id":"worker_23_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":6,"reappearance_shot":13,"absence_gap":6,
"characters":{
"<char1>":"a young white man with curly red hair, a pale denim shirt, khaki trousers, and green garden boots",
"<char2>":"an elderly Black woman with short gray twists, a violet rain jacket, dark trousers, and brown boots",
"<char3>":"a middle-aged Latina woman with a dark wavy bob, a forest-green field shirt, tan trousers, and a woven sun hat"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot follows <Subject 1> from the community-garden rain barrel onto a curving path between wet plots.","Leaf drips and one volunteer speaks.",[line("<char1>","The open beds are already soaked. I want to see whether the covered soil stayed dry.")]),
shot(2,["<char2>"],"A medium shot shows <Subject 1> enter through the bean arch and touch the soil at the path edge with two fingers.","Leaves, damp soil, and one reply.",[line("<char2>","This side is wet enough. I will follow the path toward the shelter.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both volunteers around a bend while rainwater falls from broad leaves behind them.","Boots, dripping foliage, and birds."),
shot(4,["<char2>"],"A close shot shows <Subject 1> lift one leaning bean vine back onto its support without handling any labels or records.","Leaves and a soft cane-like support tap."),
shot(5,["<char1>","<char2>"],"An over-the-shoulder view behind <Subject 1> reveals the covered beds and a second winding path beyond the bean frame.","A light breeze and water in gravel."),
shot(6,["<char3>","<char1>","<char2>"],"<Subject 1> comes around the bean frame, speaks to both volunteers, then follows the second path into the adjacent sheltered plot.","Wet leaves and one coordinator voice.",[line("<char3>","I will check the soil beneath the shelter and meet you where the paths join.")]),
shot(7,["<char1>","<char2>"],"A fixed wide shot shows the two volunteers continue through open beds where every leaf still carries rain.","Drips and quiet footsteps."),
shot(8,["<char1>"],"A medium follow keeps <Subject 1> full-length as he steps around a shallow puddle and crouches beside dark soil.","Boots, water, and soft garden ambience."),
shot(9,["<char2>"],"<Subject 1> walks beneath the bean arch and pauses as sunlight begins to brighten the wet path.","Leaves stir and birds return."),
shot(10,["<char1>","<char2>"],"A wide shot shows both volunteers cross toward the path junction, leaving the planted beds untouched.","Gravel and receding drips."),
shot(11,["<char2>"],"A close shot catches <Subject 1> press one damp soil clump and let it fall back naturally.","Soil and sleeve fabric."),
shot(12,["<char1>","<char2>"],"From over their shoulders, the curved path reveals a familiar sun hat moving behind the bean leaves.","Footsteps approach through foliage."),
shot(13,["<char3>"],"A medium reappearance shot shows <Subject 1> round the bend, matching the dark bob, green field shirt, tan trousers, and woven hat.","Leaves brush the hat and the same voice returns.",[line("<char3>","The sheltered soil is still dry. That is the only bed that needs water today.")])
]
},
{
"case_id":"worker_24_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":14,"absence_gap":8,
"characters":{
"<char1>":"a middle-aged white woman with short blond hair, a burgundy coat, black trousers, and a cello case on small wheels",
"<char2>":"an elderly East Asian man with neatly combed white hair, a camel jacket, charcoal trousers, and a folded navy umbrella",
"<char3>":"a young Indigenous nonbinary station volunteer with long black hair in a low braid, a teal vest, gray trousers, and a round white badge"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> enter a broad subway interchange and roll the cello case between tall columns toward the elevator signs.","Station hum, case wheels, and one traveler speaks.",[line("<char1>","The stairs are close, but I need the elevator route with this instrument.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the platform corridor into the main hall, where he pauses beneath two diverging signs.","Footsteps and one reply.",[line("<char2>","I am changing lines too. I will keep to the quieter side of the hall.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both travelers across the hall while a distant musician plays softly near the opposite wall.","Case wheels, footsteps, and faint guitar."),
shot(4,["<char2>","<char1>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> reach the elevator symbol beside a long side passage.","Escalators and station ventilation."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> approaches from the elevator column, gives one direction, then accompanies <Subject 2> and the cello case into the side passage.","Hall echo and one volunteer voice.",[line("<char3>","The accessible passage begins here. I will walk with you to its first turn.")]),
shot(6,["<char2>"],"A fixed wide shot shows <Subject 1> continue alone across the open hall as escalators move in the background.","Escalator hum and distant music."),
shot(7,["<char2>"],"A medium follow keeps <Subject 1> centered as he passes behind one row of columns toward the connecting-line entrance.","Shoes and platform announcements far away."),
shot(8,["<char2>"],"A close shot catches changing sign light across <Subject 1>'s white hair and folded umbrella.","Electric hum and footsteps."),
shot(9,["<char2>"],"<Subject 1> stops at the hall midpoint and turns toward a quieter corridor marked by a blue wall band.","Faint guitar and station air."),
shot(10,["<char2>"],"A long shot shows <Subject 1> cross the second column row as sparse passengers move in other directions.","Broad hall ambience."),
shot(11,["<char2>"],"<Subject 1> rides a short moving walkway and steps off beside the connecting-line entrance.","Walkway motor and one shoe step."),
shot(12,["<char2>"],"A medium shot follows <Subject 1> turn back toward the main hall after checking the line color overhead.","Distant train brakes."),
shot(13,["<char2>"],"From over his shoulder, two figures appear between the far columns beside the rolling cello case.","Case wheels gradually approach."),
shot(14,["<char3>","<char1>"],"A medium reappearance shot shows <Subject 1> return beside <Subject 2>, clearly matching the long braid, teal vest, gray trousers, and round badge.","The same volunteer speaks over quiet hall noise.",[line("<char3>","The elevator is operating, and this route returns directly to the main hall.")]),
shot(15,["<char1>","<char2>","<char3>"],"A wide final shot shows all three cross toward their separate exits while the cello case rolls smoothly across the open floor.","Wheels, footsteps, and station hum." )
]
},
{
"case_id":"worker_25_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":6,"reappearance_shot":15,"absence_gap":8,
"characters":{
"<char1>":"an elderly Latina woman with a silver bob, a mauve wool coat, dark trousers, and a wooden cane",
"<char2>":"a young Black man with short twists, a navy rain jacket, gray trousers, and a folded green umbrella",
"<char3>":"a middle-aged East Asian man with short black hair, a pale blue clinic shirt, charcoal trousers, and a navy cardigan"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> enter a rural clinic corridor from the covered porch and pause near a drafty window seat.","Rain outside, clinic ventilation, and one patient speaks.",[line("<char1>","The air is cold by this window. I would rather wait farther inside.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> through the porch door as he closes his umbrella and notices the open interior seats.","Door seal, umbrella, and one reply.",[line("<char2>","I can move to the window side and leave the warmer chair open.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both along the corridor as <Subject 2> walks toward the warmer inner seat and <Subject 1> takes the window chair.","Cane, footsteps, and soft room tone."),
shot(4,["<char2>"],"A close shot shows <Subject 1> close the upper window latch halfway, reducing the curtain movement without shutting out all air.","Latch, curtain, and rain."),
shot(5,["<char1>","<char2>"],"An over-the-shoulder view behind <Subject 1> shows <Subject 2> settle near the inner wall while the corridor remains open.","Chair fabric and clinic ambience."),
shot(6,["<char3>","<char1>","<char2>"],"<Subject 1> comes from the consulting-room end, checks both are comfortable, then accompanies <Subject 2> toward the quiet drinking alcove.","Measured steps and one caregiver voice.",[line("<char3>","This seat is warmer. I will walk with you to the drinking alcove and return along the clinic corridor.")]),
shot(7,["<char1>"],"A fixed wide shot holds <Subject 1> seated alone in the inner chair while rain brightens the porch beyond.","Rain and subdued ventilation."),
shot(8,["<char1>"],"A medium shot shows <Subject 1> stand, stretch one leg, and sit again without leaving the warm area.","Cane and chair fabric."),
shot(9,["<char1>"],"A close shot catches <Subject 1> watch the curtain settle after the window adjustment.","Curtain fabric and quiet rain."),
shot(10,["<char1>"],"A wide corridor view shows <Subject 1> walk slowly to the porch threshold and look outside without stepping into the rain.","Cane taps and porch water."),
shot(11,["<char1>"],"<Subject 1> returns to the inner chair as sunlight begins to brighten the wet doorway.","Footsteps and rain easing."),
shot(12,["<char1>"],"An over-the-shoulder view behind <Subject 1> looks toward the empty clinic corridor and drinking-alcove turn.","A distant cup fills with water."),
shot(13,["<char1>"],"<Subject 1> rises when two sets of footsteps approach from the far end, then waits beside her chair.","Footsteps and cane wood."),
shot(14,["<char1>"],"A long shot reveals two figures entering the corridor from the alcove turn, still partly framed by the doorway.","Clinic echo and rain nearly stopped."),
shot(15,["<char3>","<char2>"],"A medium reappearance shot shows <Subject 1> return beside <Subject 2>, matching the pale blue shirt, navy cardigan, charcoal trousers, and short black hair.","The same caregiver voice and quiet corridor ambience.",[line("<char3>","The alcove was quiet, and the warmer seats are ready for both of you now.")])
]
}
]
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()