long-div / scripts /generate_tier2_batch06.py
ymyy307's picture
Upload folder using huggingface_hub
5b12ab1 verified
Raw History Blame Contribute Delete
18.2 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_batch06.json"
CASES=[
{
"case_id":"worker_26_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":7,"reappearance_shot":14,"absence_gap":6,
"characters":{
"<char1>":"a middle-aged Black father with a close beard, a navy rain shell, tan trousers, and dark rubber shore boots",
"<char2>":"a teenage Black girl with long braids, a coral windbreaker, black trousers, and green shore boots",
"<char3>":"a young white woman with short auburn hair, a sea-green field jacket, charcoal trousers, and a shell-shaped silver pin"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot follows <Subject 1> down the beach stairs toward exposed tide pools as a low wave retreats across the rocks.","Surf, wind, and one visitor speaks.",[line("<char1>","The water is falling away from the first pool. I will use the broad dry rocks.")]),
shot(2,["<char2>"],"A medium shot shows <Subject 1> reach the sand and pause before a narrow stream running between two rock shelves.","Water, shore birds, and one reply.",[line("<char2>","I can cross where the stream is shallow and keep both feet in view.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both visitors across the broad rock shelf while small pools reflect the cloudy sky beside them.","Boots, trickling water, and surf."),
shot(4,["<char2>"],"A close shot frames <Subject 1> crouch beside a pool and watch one anemone without reaching into the water.","Pool water and distant gulls."),
shot(5,["<char1>","<char2>"],"A fixed wide shot shows the pair walk around the outer edge of a larger pool as another gentle wave fills a lower channel.","Wave wash and measured steps."),
shot(6,["<char1>"],"An over-the-shoulder view behind <Subject 1> looks toward a higher rock ledge and the dunes beyond.","Wind and receding water."),
shot(7,["<char3>","<char1>","<char2>"],"<Subject 1> approaches from the higher ledge, points out a safe observation edge, then circles toward a second pool beyond the rocks.","Field boots and one educator voice.",[line("<char3>","Watch this pool from the flat edge. I will check the water line around the next shelf.")]),
shot(8,["<char1>","<char2>"],"A wide shot holds both visitors beside the flat edge as a hermit crab moves between two submerged stones.","Tiny water movement and surf."),
shot(9,["<char2>"],"A medium shot follows <Subject 1> stepping across the shallow stream and climbing one low rock step.","Boots in water and wind."),
shot(10,["<char1>"],"A close shot catches reflected clouds shift across <Subject 1>'s face as he observes the pool from above.","Water and a gull call."),
shot(11,["<char1>","<char2>"],"A lateral tracking shot follows both along the dry upper shelf toward the dunes while the lower channels refill behind them.","Surf and steady footfalls."),
shot(12,["<char2>"],"<Subject 1> reaches the sand path and turns to compare the dry return route with the wet rocks below.","Sand, wind, and no speech."),
shot(13,["<char1>","<char2>"],"From over their shoulders, a familiar sea-green figure appears at the dune edge above the second pool.","Wind in dune grass."),
shot(14,["<char3>"],"A medium reappearance shot reveals <Subject 1> on the dune path, matching the auburn hair, sea-green jacket, charcoal trousers, and shell pin.","Grass, surf, and the same educator voice.",[line("<char3>","The outer shelf is still safe, but this dune path is the driest way back.")]),
shot(15,["<char1>","<char2>","<char3>"],"A wide final shot shows all three climb the sandy path while the tide pools spread below them.","Three walking rhythms, surf, and no dialogue.")
]
},
{
"case_id":"worker_27_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":6,"reappearance_shot":15,"absence_gap":8,
"characters":{
"<char1>":"a young South Asian woman with long black hair in a low ponytail, a cream rehearsal shirt, black trousers, and soft brown stage shoes",
"<char2>":"a middle-aged white man with short gray hair, a slate rehearsal jacket, navy trousers, and black stage shoes",
"<char3>":"a middle-aged Latina woman with a dark curly bob, a burgundy director cardigan, charcoal trousers, and red-framed glasses"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> enter an empty stage from the left wing and stop on the center light mark.","Stage floor, empty house ambience, and one actor speaks.",[line("<char1>","I will cross at walking pace and let the pause happen before I turn.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the right wing to a position several meters away from center.","Soft stage shoes and one reply.",[line("<char2>","I will wait until your turn is complete before I enter the same space.")]),
shot(3,["<char1>","<char2>"],"A lateral tracking shot holds both actors as <Subject 1> crosses, pauses, and turns while <Subject 2> remains still.","Measured steps and room echo."),
shot(4,["<char2>"],"A close shot catches <Subject 1> breathe through a silent count before taking three steps toward center.","Breathing and light shoe contact."),
shot(5,["<char1>","<char2>"],"A fixed wide shot shows the actors pass with a broad gap, each continuing to the opposite wing without props.","Two walking rhythms and curtain movement."),
shot(6,["<char3>","<char1>","<char2>"],"<Subject 1> enters from the auditorium aisle, gives one blocking note, then continues through the backstage passage toward the house side.","Auditorium steps and one director voice.",[line("<char3>","Keep the center pause. I will watch the next crossing from the front row.")]),
shot(7,["<char1>"],"A medium follow shows <Subject 1> repeat the cross alone and stop beneath the center light.","Stage shoes and quiet house air."),
shot(8,["<char2>"],"An over-the-shoulder angle behind <Subject 1> looks across the empty stage toward the opposite wing.","Curtain fabric and distant ventilation."),
shot(9,["<char1>","<char2>"],"A wide shot shows both actors enter from opposite sides, stop before center, and leave in the directions they came.","Footsteps and no speech."),
shot(10,["<char1>"],"A close shot frames <Subject 1>'s face as she holds the pause and shifts her gaze toward the front rows.","Stage room tone."),
shot(11,["<char2>"],"A lateral follow tracks <Subject 1> diagonally toward the downstage corner and back to center.","Soft shoe slides."),
shot(12,["<char1>","<char2>"],"A fixed wide view shows a final silent crossing with both actors keeping the center completely open.","Two sets of steps."),
shot(13,["<char1>"],"<Subject 1> sits briefly at the stage edge and looks into the empty front row.","Clothing and auditorium ventilation."),
shot(14,["<char2>","<char1>"],"From over <Subject 1>'s shoulder, <Subject 2> turns toward the auditorium side door as it opens below.","A side door and approaching steps."),
shot(15,["<char3>"],"A medium reappearance shot shows <Subject 1> rise from the front row, matching the dark curls, burgundy cardigan, charcoal trousers, and red glasses.","The same director voice carries through the empty house.",[line("<char3>","The pause reads clearly from here. Keep the same spacing for the final cross.")])
]
},
{
"case_id":"worker_28_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":12,"absence_gap":6,
"characters":{
"<char1>":"a young East Asian woman with a black ponytail, a cobalt running jacket, black leggings, and gray walking shoes",
"<char2>":"a middle-aged Black father with a short beard, a tan parka, olive trousers, and brown boots",
"<char3>":"an elderly white man with a silver beard, a dark green wool coat, charcoal trousers, and a maroon knit cap"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> slow from a walk beside a winter park gazebo as frost still covers the shaded grass.","Cold wind, birds, and one passerby speaks.",[line("<char1>","The path is clear, but the grass is still slick with frost.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> and his child off-screen along the path; he stops at the gazebo edge and watches a small bird flock.","Bird wings and one reply.",[line("<char2>","We will stay by the path and give the birds the open grass.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both adults around the gazebo while the flock lifts briefly and settles farther from the walkway.","Wingbeats and winter footsteps."),
shot(4,["<char2>"],"A close shot catches <Subject 1>'s breath in cold air as he sits on the gazebo bench.","Breathing, coat fabric, and birds."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> approaches from the slope, speaks once, then walks along the outer path toward a grass edge away from the main route.","Boots on frost and one park regular speaks.",[line("<char3>","I will place a little seed by the far grass, away from the walking path.")]),
shot(6,["<char1>","<char2>"],"A fixed wide shot holds both visitors under the gazebo as the flock circles beyond the bare trees.","Wind and distant wingbeats."),
shot(7,["<char1>"],"A medium follow shows <Subject 1> walk down the clear path and stop before the frosted slope.","Shoes on gravel."),
shot(8,["<char2>"],"<Subject 1> rises from the bench and turns toward birds settling at the far grass edge.","Bench wood and bird calls."),
shot(9,["<char1>","<char2>"],"An over-the-shoulder view behind both shows the flock feeding far from the main path.","Small bird sounds and wind."),
shot(10,["<char2>"],"A close shot shows <Subject 1> pull his coat collar higher as frost begins to melt in sunlight.","Fabric and dripping gazebo roof."),
shot(11,["<char1>","<char2>"],"A wide shot follows the pair back toward the gazebo while birds lift across the frame ahead of them.","Wingbeats and footsteps."),
shot(12,["<char3>"],"A medium reappearance shot reveals <Subject 1> walking from behind the tree line, matching the silver beard, green coat, charcoal trousers, and maroon cap.","Birds pass first and the same elderly voice follows.",[line("<char3>","The flock has moved off the path, and the sunny side is losing its frost.")]),
shot(13,["<char1>","<char2>","<char3>"],"A wide final shot shows all three remain near the gazebo while the birds feed at a respectful distance.","Winter park ambience and no dialogue.")
]
},
{
"case_id":"worker_29_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":7,"reappearance_shot":15,"absence_gap":7,
"characters":{
"<char1>":"an elderly East Asian man with short white hair, a navy cardigan, beige trousers, and soft black house shoes",
"<char2>":"a young East Asian woman with a blunt black bob, a rust sweater, blue jeans, and white socks",
"<char3>":"a middle-aged East Asian woman with shoulder-length black hair, a moss-green blouse, charcoal trousers, and amber earrings"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> in a family living room opening the curtain beside three large floor plants as afternoon light reaches the wall.","Curtain rings and one family member speaks.",[line("<char1>","The sun has moved. The tall plant should come away from the warm radiator.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> from the hallway to the indoor balcony door, where she checks the cooler patch of floor.","House ambience and one reply.",[line("<char2>","There is enough room by the balcony if we lift it together.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both family members as they carry one large potted plant a few steps across the room.","Leaves, careful footsteps, and pot weight."),
shot(4,["<char2>"],"A close shot catches broad leaves settle after <Subject 1> releases her side of the pot.","Leaves and quiet room tone."),
shot(5,["<char1>","<char2>"],"A fixed wide shot shows the pair sit by the window and compare the new open reading space with the plant's shadow.","Chair fabric and distant traffic."),
shot(6,["<char1>"],"An over-the-shoulder view behind <Subject 1> looks toward the hallway and the sunlit wall in the adjacent room.","Clock and soft house ambience."),
shot(7,["<char3>","<char1>","<char2>"],"<Subject 1> enters from the hallway, observes the light, then walks into the adjacent room to compare its window direction.","Footsteps and one family voice.",[line("<char3>","I will check the next room's light and come back through the balcony side.")]),
shot(8,["<char1>","<char2>"],"A wide shot shows the pair lift a smaller floor plant together and place it near the first without crowding the window.","Leaves and synchronized steps."),
shot(9,["<char2>"],"A medium follow shows <Subject 1> cross to the indoor balcony and open its glass door slightly.","Door rail and balcony air."),
shot(10,["<char1>"],"A close shot catches moving leaf shadows cross <Subject 1>'s navy cardigan as he sits in the newly open reading space.","Leaves and a page turn."),
shot(11,["<char1>","<char2>"],"A lateral tracking shot follows both as they carry the final light plant stand away from the radiator.","Wood, leaves, and footsteps."),
shot(12,["<char2>"],"<Subject 1> sits by the window and watches the sunlight move from the floor toward the opposite wall.","Quiet traffic and room tone."),
shot(13,["<char1>","<char2>"],"A fixed wide view holds the calm room with both family members separated by the open reading space.","Clock and leaves."),
shot(14,["<char1>","<char2>"],"From over their shoulders, the indoor balcony door frames a familiar moss-green figure approaching from the side.","Balcony door movement."),
shot(15,["<char3>"],"A medium reappearance shot reveals <Subject 1> entering through the balcony door, matching her shoulder-length hair, green blouse, charcoal trousers, and amber earrings.","The same family voice returns.",[line("<char3>","The next room is dimmer now. These plants are better here by the balcony light.")])
]
},
{
"case_id":"worker_30_tier2","tier":2,"target_identity":"<char3>","first_appearance_shot":5,"reappearance_shot":15,"absence_gap":9,
"characters":{
"<char1>":"a young Black woman with long locs, a mustard raincoat, dark trousers, and black rubber boots",
"<char2>":"an elderly South Asian woman with silver hair under a burgundy scarf, a charcoal coat, and a clear umbrella",
"<char3>":"a middle-aged Pacific Islander man with shoulder-length curls, a navy market jacket, tan trousers, and a brass key ring at his belt"
},
"shot_specs":[
shot(1,["<char1>"],"A wide establishing shot shows <Subject 1> walking through a covered market arcade as rain falls beyond the open ends and several shutters stand half closed.","Rain, metal shutters, and one stallholder speaks.",[line("<char1>","The side aisle is closing first. I will keep the central walkway open.")]),
shot(2,["<char2>"],"A medium shot follows <Subject 1> under the roof with her clear umbrella folded as she looks for the lit exit.","Rain and one customer reply.",[line("<char2>","I can use the main walkway if the river entrance is still open.")]),
shot(3,["<char1>","<char2>"],"A lateral follow tracks both along the arcade while one shutter descends slowly behind them.","Metal rolling and footsteps."),
shot(4,["<char2>"],"A close shot catches reflected market lights move across <Subject 1>'s clear umbrella as she pauses beneath a direction sign.","Rain and distant shutters."),
shot(5,["<char3>","<char1>","<char2>"],"<Subject 1> enters from a side lane, identifies the far open street, then accompanies <Subject 2> toward it through the covered arcade.","Keys, rain, and one coordinator voice.",[line("<char3>","The far street exit is still open. I will walk with you through the last covered section.")]),
shot(6,["<char1>"],"A fixed wide shot shows <Subject 1> remain in the central lane as another shutter closes without blocking her route.","Metal shutter and rain."),
shot(7,["<char1>"],"A medium follow tracks <Subject 1> toward the middle arch where she checks that a bench remains clear of the closing path.","Boots and roof drips."),
shot(8,["<char1>"],"An over-the-shoulder view looks down the arcade as alternating market lights switch off one bay at a time.","Electrical clicks and rain."),
shot(9,["<char1>"],"A close shot shows <Subject 1> pull one light shutter cord and step back as the panel reaches the ground.","Cord and metal settling."),
shot(10,["<char1>"],"A long shot follows <Subject 1> cross the empty central walkway while rain glows at both ends.","Footsteps and distant traffic."),
shot(11,["<char1>"],"<Subject 1> pauses beneath the middle arch as half the overhead lights now remain on.","Rain and quiet ventilation."),
shot(12,["<char1>"],"A lateral tracking shot shows <Subject 1> walk toward the final open stall front and close its side gate.","Gate rollers and boots."),
shot(13,["<char1>"],"A wide view holds the long arcade with one clear central route and fewer lights than before.","Rain dominates; no speech."),
shot(14,["<char1>"],"From over <Subject 1>'s shoulder, a familiar navy-jacketed figure appears between the far shutters and approaches from the opposite direction.","Keys and footsteps approach."),
shot(15,["<char3>"],"A medium reappearance shot reveals <Subject 1> returning through the arcade, matching the shoulder-length curls, navy jacket, tan trousers, and brass keys.","The same coordinator voice and rain.",[line("<char3>","The customer reached the open street. This central lane can close after you pass.")])
]
}
]
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()