long-div / scripts /generate_tier1_batch03.py
ymyy307's picture
Upload folder using huggingface_hub
5b12ab1 verified
Raw History Blame Contribute Delete
22.9 kB
#!/usr/bin/env python3
"""Generate diverse Tier-1 cases 011-015 from approved blueprints."""
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
OUT = ROOT / "generated" / "tier1_batch03.json"
def p1(desc, line="", sound="Natural ambience; no music."):
x=f"integrated_multimodal_description:\n[Shot 1] {desc}"
if line: x+=f"\n\n{line}"
return x+f"\n\noverall_soundscape:\n{sound}"
def pn(defs, ret, desc, line="", sound="Natural ambience; no music."):
ds="\n".join(f"<Subject {i}> is {v}." for i,v in enumerate(defs,1))
rs="\n".join(f"<Subject {i}>: fully_preserved - Maintain identity." for i in ret)
x=(f"subject_definitions:\n{ds}\n{{{{REFERENCE_DEFINITIONS}}}}\n\nsummary:\n{{{{REFERENCE_SUMMARY}}}}\n\n"
f"retention_analysis:\n{rs}\n{{{{REFERENCE_RETENTION}}}}\n\ndetailed_description:\n[Shot 1] {desc}")
if line: x+=f"\n\n{line}"
return x+f"\n\noverall_soundscape:\n{sound}"
def sh(n,v,s,f,ds,p): return {"shot_no":n,"visible_characters":v,"speakers":s,"first_time_speakers":f,"dialogue":ds,"prompt":p}
def d(c,t): return {"character":c,"language":"English","text":t}
cases=[]
# 011 — stair landing plant move: n4 first1 gap1 reapp3.
c={"case_id":"diverse_t1_011","tier":1,"target_identity":"<char1>","first_appearance_shot":1,"reappearance_shot":3,"absence_gap":1,
"characters":{"<char1>":"a young Southeast Asian man with wavy black hair, a burnt-orange sweatshirt, and dark blue jeans",
"<char2>":"an older Black woman with a silver natural bob, a plum cardigan, and olive trousers"}}
c["shots"]=[
sh(1,["<char1>","<char2>"],["<char1>"],["<char1>"],[d("<char1>","I will clear the warmer window upstairs, then we can turn the plant around the rail.")],
p1("A vertical stairwell wide frames <Subject 1>, a young Southeast Asian man with wavy black hair, a burnt-orange sweatshirt, and dark blue jeans, and <Subject 2>, an older Black woman with a silver natural bob, a plum cardigan, and olive trousers, beside a tall potted palm on a shared apartment landing. Cold air moves its leaves near a window. <Subject 1> tests the weight with both hands, then walks up half a flight toward the brighter upper doorway while <Subject 2> steadies the pot.",'<Subject 1> (S1) says: <d>[English] I will clear the warmer window upstairs, then we can turn the plant around the rail.</d>',"Leaves rustling, stairwell air, soft shoes on stone, and one practical voice.")),
sh(2,["<char2>"],["<char2>"],["<char2>"],[d("<char2>","The leaves clear the banister if the pot stays close to my side.")],
pn(["an older Black woman with a silver natural bob, a plum cardigan, and olive trousers"],[1],"A low-angle close shot follows <Subject 1> as she tilts the pot only enough to slide its base away from the draft. She steps backward once, checks the longest leaf against the banister, and rests the pot upright. Tall window light stretches across the empty half-flight above her.",'<Subject 1> (S1) says: <d>[English] The leaves clear the banister if the pot stays close to my side.</d>',"A ceramic base sliding lightly, leaves, distant building sounds, and one calm voice.")),
sh(3,["<char1>","<char2>"],[],[],[],
pn(["the young Southeast Asian man with the same wavy black hair, burnt-orange sweatshirt, and dark blue jeans","the older Black woman with a silver natural bob, plum cardigan, and olive trousers"],[1,2],"An overhead landing view reveals <Subject 1> coming back down half a flight, clearly matching his earlier appearance. He takes the upper side of the pot while <Subject 2> shifts to the lower side. Together they lift once and sidestep around the banister, keeping the palm upright and the stair path open.","","Measured steps, leaves brushing air, quiet effort, and stairwell room tone; no speech or music.")),
sh(4,["<char2>","<char1>"],["<char2>"],[],[d("<char2>","It has more light here, and no one has to squeeze past it.")],
pn(["the older Black woman with a silver natural bob, plum cardigan, and olive trousers","the young Southeast Asian man with wavy black hair, burnt-orange sweatshirt, and dark blue jeans"],[1,2],"A medium two-shot shows <Subject 1> and <Subject 2> set the palm beside the warm upper window. They release it together, step back, and look down the now-clear stairwell. The leaves settle in the brighter air while both neighbors share a small satisfied smile.",'<Subject 1> (S1) says: <d>[English] It has more light here, and no one has to squeeze past it.</d>',"The pot settling, leaves, a distant door closing, and one warm voice."))]
cases.append(c)
# 012 — clinic corridor: n5 first2 gap1 reapp4.
c={"case_id":"diverse_t1_012","tier":1,"target_identity":"<char2>","first_appearance_shot":2,"reappearance_shot":4,"absence_gap":1,
"characters":{"<char1>":"a middle-aged white man with curly brown hair, a tan field jacket, and dark green trousers",
"<char2>":"an older East Asian woman clinic volunteer with a short silver bob, a lilac vest, and a narrow blue lanyard",
"<char3>":"a young Black woman receptionist with long braids, a cream blouse, and a burgundy cardigan"}}
c["shots"]=[
sh(1,["<char1>","<char3>"],["<char3>"],["<char3>"],[d("<char3>","The courtyard side is quieter; someone will show you the open seats.")],
p1("A long corridor wide in a bright outpatient clinic frames <Subject 1>, a middle-aged white man with curly brown hair, a tan field jacket, and dark green trousers, standing near <Subject 2>, a young Black woman receptionist with long braids, a cream blouse, and a burgundy cardigan. Windows reveal a planted courtyard beyond the glass. <Subject 2> leaves the reception alcove and walks several steps with <Subject 1> toward a junction washed in soft daylight.",'<Subject 2> (S1) says: <d>[English] The courtyard side is quieter; someone will show you the open seats.</d>',"Subdued clinic room tone, shoes on resilient flooring, courtyard birds, and one clear voice.")),
sh(2,["<char2>","<char1>"],["<char2>"],["<char2>"],[d("<char2>","Wait beside this window while I see whether the courtyard seats are free.")],
pn(["an older East Asian woman clinic volunteer with a short silver bob, a lilac vest, and a narrow blue lanyard","the middle-aged white man with curly brown hair, tan field jacket, and dark green trousers"],[2],"A shoulder-height walking two-shot follows <Subject 1> as she joins <Subject 2> at the junction, her lilac vest distinct against the pale corridor. They walk beside the courtyard windows until <Subject 1> indicates a quiet standing place, then she continues through a glass side door while <Subject 2> remains by the window.",'<Subject 1> (S1) says: <d>[English] Wait beside this window while I see whether the courtyard seats are free.</d>',"Gentle footsteps, a glass door opening, ventilation, and one reassuring voice.")),
sh(3,["<char1>"],["<char1>"],["<char1>"],[d("<char1>","The garden view already feels calmer than the main waiting area.")],
pn(["the middle-aged white man with curly brown hair, tan field jacket, and dark green trousers"],[1],"A close reaction shot holds on <Subject 1> as he looks through the window at grasses moving in the courtyard. He sits briefly on a wall seat, then rises when two people leave the far seating bay. His gaze follows the now-open route beside the glass door.",'<Subject 1> (S1) says: <d>[English] The garden view already feels calmer than the main waiting area.</d>',"Courtyard leaves, low ventilation, a seat cushion, and one quiet voice.")),
sh(4,["<char2>","<char1>"],[],[],[],
pn(["the older East Asian clinic volunteer with the same short silver bob, lilac vest, and narrow blue lanyard","the middle-aged white man with curly brown hair, tan field jacket, and dark green trousers"],[1,2],"A doorway-framed medium shot reveals <Subject 1> returning through the glass side door, clearly matching her earlier appearance. She holds the door as <Subject 2> steps toward her, then turns and leads him along the courtyard-facing passage. Their pace remains easy and the route stays visually clear.","","A glass door hinge, measured footsteps, courtyard birds, and restrained clinic ambience; no speech or music.")),
sh(5,["<char1>","<char2>","<char3>"],["<char1>"],[],[d("<char1>","This spot works well; thank you for bringing me around the busy corridor.")],
pn(["the middle-aged white man with curly brown hair, tan field jacket, and dark green trousers","the older East Asian woman with a short silver bob, lilac vest, and narrow blue lanyard","the young Black woman receptionist with long braids, cream blouse, and burgundy cardigan"],[1,2,3],"In a seated medium three-shot, <Subject 1> settles near the courtyard while <Subject 2> stands beside the aisle and <Subject 3> approaches from the corridor to confirm the new location with a nod. No forms or desk materials enter the frame; moving grasses and soft daylight provide the visual change.",'<Subject 1> (S1) says: <d>[English] This spot works well; thank you for bringing me around the busy corridor.</d>',"Low voices elsewhere, courtyard foliage, soft steps, and one appreciative voice."))]
cases.append(c)
# 013 — dance rehearsal: n5 first1 gap2 reapp4.
c={"case_id":"diverse_t1_013","tier":1,"target_identity":"<char1>","first_appearance_shot":1,"reappearance_shot":4,"absence_gap":2,
"characters":{"<char1>":"a middle-aged Black woman dance instructor with a close-cropped natural cut, a red wrap top, and loose charcoal trousers",
"<char2>":"a young East Asian man with side-swept black hair, a pale blue T-shirt, and navy practice pants",
"<char3>":"an older Latina woman with a silver braid, a mustard tunic, and black leggings"}}
c["shots"]=[
sh(1,["<char1>","<char2>","<char3>"],["<char1>"],["<char1>"],[d("<char1>","Walk the diagonal, turn once, and let the stop arrive without forcing it.")],
p1("A full-body wide in a neighborhood dance studio shows <Subject 1>, a middle-aged Black woman with a close-cropped natural cut, a red wrap top, and loose charcoal trousers, demonstrating a slow diagonal walk for <Subject 2>, a young East Asian man with side-swept black hair, a pale blue T-shirt, and navy practice pants, and <Subject 3>, an older Latina woman with a silver braid, a mustard tunic, and black leggings. After one restrained turn, <Subject 1> crosses behind a side curtain toward the light alcove while the dancers reset.",'<Subject 1> (S1) says: <d>[English] Walk the diagonal, turn once, and let the stop arrive without forcing it.</d>',"Soft practice shoes, curtain fabric, open-window air, and one clear cue.")),
sh(2,["<char2>","<char3>"],["<char2>"],["<char2>"],[d("<char2>","I am arriving too early, so I will shorten the first step.")],
pn(["a young East Asian man with side-swept black hair, a pale blue T-shirt, and navy practice pants","an older Latina woman with a silver braid, a mustard tunic, and black leggings"],[1,2],"A gentle diagonal lateral follow stays with <Subject 1> and <Subject 2> as they walk across the sprung floor. <Subject 1> turns and stops first; <Subject 2> completes the same route half a beat later. Both relax their arms and exchange a quick look rather than repeating immediately.",'<Subject 1> (S1) says: <d>[English] I am arriving too early, so I will shorten the first step.</d>',"Measured footfalls, fabric movement, room air, and one thoughtful voice.")),
sh(3,["<char3>","<char2>"],["<char3>"],["<char3>"],[d("<char3>","If I keep my eyes level, the turn feels smaller and steadier.")],
pn(["the older Latina woman with a silver braid, mustard tunic, and black leggings","the young East Asian man with side-swept black hair, pale blue T-shirt, and navy practice pants"],[1,2],"A close reaction shot catches <Subject 1> steady her gaze before taking the diagonal. She makes one compact turn and settles into the stopping position while <Subject 2> watches from the sunlit edge of the floor. The wall curtain moves slightly in the open-window breeze.",'<Subject 1> (S1) says: <d>[English] If I keep my eyes level, the turn feels smaller and steadier.</d>',"One turn on the sprung floor, quiet breathing, curtain movement, and one calm voice.")),
sh(4,["<char1>","<char2>","<char3>"],[],[],[],
pn(["the middle-aged Black dance instructor with the same close-cropped natural cut, red wrap top, and loose charcoal trousers","the young East Asian man with side-swept black hair, pale blue T-shirt, and navy practice pants","the older Latina woman with a silver braid, mustard tunic, and black leggings"],[1,2,3],"<Subject 1> returns from behind the side curtain, her red wrap top clearly matching the first shot, and lowers the distracting work light in the alcove. In an over-the-shoulder view from behind her, <Subject 2> and <Subject 3> take their starting places. <Subject 1> joins the far end of the diagonal instead of standing apart.","","A light switch, soft steps, window air, and quiet readiness; no speech or music.")),
sh(5,["<char2>","<char3>","<char1>"],["<char1>"],[],[d("<char1>","That spacing is clear; keep the same quiet stop for the performance.")],
pn(["the young East Asian man with side-swept black hair, pale blue T-shirt, and navy practice pants","the older Latina woman with a silver braid, mustard tunic, and black leggings","the middle-aged Black woman with a close-cropped natural cut, red wrap top, and loose charcoal trousers"],[1,2,3],"A locked-off wide shows <Subject 1>, <Subject 2>, and <Subject 3> walk the diagonal in sequence, each making one restrained turn before settling into a staggered final line. The lower work light leaves their full silhouettes clear. They hold the position briefly, then release together.",'<Subject 3> (S1) says: <d>[English] That spacing is clear; keep the same quiet stop for the performance.</d>',"Three sets of measured steps, cloth movement, a shared exhale, and one approving voice."))]
cases.append(c)
# 014 — flower market: n4 first2 gap1 reapp4 final.
c={"case_id":"diverse_t1_014","tier":1,"target_identity":"<char2>","first_appearance_shot":2,"reappearance_shot":4,"absence_gap":1,
"characters":{"<char1>":"an older South Asian man with a white beard, a slate raincoat, and a burgundy flat cap",
"<char2>":"a young white woman flower vendor with short auburn curls, a dark green apron, and a cream shirt",
"<char3>":"a middle-aged East Asian man neighboring vendor with silver-rim glasses, a blue waxed jacket, and black trousers"}}
c["shots"]=[
sh(1,["<char1>","<char3>"],["<char3>"],["<char3>"],[d("<char3>","The cooler air has opened the pale blossoms more slowly than the red ones.")],
p1("A colorful aisle wide under wet canvas awnings frames <Subject 1>, an older South Asian man with a white beard, a slate raincoat, and a burgundy flat cap, walking beside <Subject 2>, a middle-aged East Asian man with silver-rim glasses, a blue waxed jacket, and black trousers. They pause near two broad buckets of flowers as droplets fall from the awning edge. <Subject 2> lifts one pale stem to eye level, then returns it gently while passersby move through the open lane.",'<Subject 2> (S1) says: <d>[English] The cooler air has opened the pale blossoms more slowly than the red ones.</d>',"Awning drips, subdued market footsteps, leaves brushing, and one conversational voice.")),
sh(2,["<char2>","<char1>"],["<char2>"],["<char2>"],[d("<char2>","Look at them from the aisle; the cloud light keeps the color honest.")],
pn(["a young white woman flower vendor with short auburn curls, a dark green apron, and a cream shirt","the older South Asian man with a white beard, slate raincoat, and burgundy flat cap"],[2],"A medium two-shot reveals <Subject 1> entering from behind a hanging awning and joining <Subject 2> at the stall frontage. She holds one stem without cutting or arranging it, turns it once toward the cool daylight, and places it back in the same bucket. Then she walks into the covered side lane while <Subject 2> remains facing the flowers.",'<Subject 1> (S1) says: <d>[English] Look at them from the aisle; the cloud light keeps the color honest.</d>',"Water from canvas, distant market voices, one stem touching leaves, and one clear voice.")),
sh(3,["<char1>"],["<char1>"],["<char1>"],[d("<char1>","The red petals hold their shape, but the pale ones catch more of this soft light.")],
pn(["the older South Asian man with a white beard, slate raincoat, and burgundy flat cap"],[1],"An over-the-shoulder close view follows <Subject 1> as he steps back from the buckets to compare both blooms under the awning. He tilts his head rather than touching them, then moves aside for two pedestrians crossing the wet aisle. A thin line of sun begins brightening the far end of the market.",'<Subject 1> (S1) says: <d>[English] The red petals hold their shape, but the pale ones catch more of this soft light.</d>',"Wet footsteps, awning water, quiet market movement, and one reflective voice.")),
sh(4,["<char2>","<char3>","<char1>"],[],[],[],
pn(["the young white flower vendor with the same short auburn curls, dark green apron, and cream shirt","the middle-aged East Asian neighboring vendor with silver-rim glasses, blue waxed jacket, and black trousers","the older South Asian man with a white beard, slate raincoat, and burgundy flat cap"],[1,2,3],"A gentle reveal beneath the awning shows <Subject 1> returning beside <Subject 2> from the covered side lane, her auburn curls and green apron clearly matching her earlier appearance. <Subject 3> turns toward them as all three walk a few paces into the brighter aisle. Droplets continue falling behind them while the flowers remain in place.","","Three sets of unhurried footsteps, awning drips, low market ambience, and leaves moving; no speech or music."))]
cases.append(c)
# 015 — library stair hall: n5 first1 gap1 reapp3.
c={"case_id":"diverse_t1_015","tier":1,"target_identity":"<char1>","first_appearance_shot":1,"reappearance_shot":3,"absence_gap":1,
"characters":{"<char1>":"a middle-aged Indigenous woman librarian with long black hair in a low braid, a rust cardigan, and a narrow silver necklace",
"<char2>":"a young Black man with short coils, a pale yellow sweater, and charcoal trousers",
"<char3>":"an older white woman with a soft gray bob, a teal coat, and red reading glasses"}}
c["shots"]=[
sh(1,["<char1>","<char2>","<char3>"],["<char1>"],["<char1>"],[d("<char1>","I will see whether the window gallery has reopened; wait by the lower landing.")],
p1("A layered stairwell wide in a public library frames <Subject 1>, a middle-aged Indigenous woman with long black hair in a low braid, a rust cardigan, and a narrow silver necklace, with <Subject 2>, a young Black man with short coils, a pale yellow sweater, and charcoal trousers, and <Subject 3>, an older white woman with a soft gray bob, a teal coat, and red reading glasses. <Subject 1> points toward the upper window gallery, climbs the central stairs, and passes through a sound-dampening door while the readers remain near the sunken alcove.",'<Subject 1> (S1) says: <d>[English] I will see whether the window gallery has reopened; wait by the lower landing.</d>',"Quiet library air, measured stair steps, a padded door, and one low voice.")),
sh(2,["<char2>","<char3>"],["<char2>"],["<char2>"],[d("<char2>","The upper windows look calmer than the alcove near the entrance.")],
pn(["a young Black man with short coils, a pale yellow sweater, and charcoal trousers","an older white woman with a soft gray bob, a teal coat, and red reading glasses"],[1,2],"An upward over-the-shoulder view from behind <Subject 1> shows the bright bridge landing above. <Subject 2> rises from the alcove edge and joins him at the first stair. Both pause as footsteps cross the upper level, then look toward the now-open sound-dampening door.",'<Subject 1> (S1) says: <d>[English] The upper windows look calmer than the alcove near the entrance.</d>',"Distant pages, soft shoes above, restrained room tone, and one quiet voice.")),
sh(3,["<char1>","<char2>","<char3>"],[],[],[],
pn(["the middle-aged Indigenous librarian with the same long black low braid, rust cardigan, and narrow silver necklace","the young Black man with short coils, pale yellow sweater, and charcoal trousers","the older white woman with a soft gray bob, teal coat, and red reading glasses"],[1,2,3],"A bridge-framed medium shot reveals <Subject 1> on the upper landing, clearly matching her earlier appearance. She gives one quiet wave and holds the sound-dampening door as <Subject 2> and <Subject 3> begin climbing. Window light outlines the stair rail and leaves the lower alcove in softer shadow.","","Gentle stair steps, a padded door held open, distant pages, and quiet building air; no speech or music.")),
sh(4,["<char3>","<char1>","<char2>"],["<char3>"],["<char3>"],[d("<char3>","The light is softer here, and the entrance noise barely reaches the landing.")],
pn(["the older white woman with a soft gray bob, teal coat, and red reading glasses","the middle-aged Indigenous woman with long black hair in a low braid, rust cardigan, and narrow silver necklace","the young Black man with short coils, pale yellow sweater, and charcoal trousers"],[1,2,3],"A gentle upward follow stays with <Subject 1> as she reaches the gallery beside <Subject 2> and <Subject 3>. She turns toward a row of window seats, then pauses to listen to the subdued room. The group moves through open architectural space without carrying or arranging books.",'<Subject 1> (S1) says: <d>[English] The light is softer here, and the entrance noise barely reaches the landing.</d>',"Muted footfalls, window air, distant page turns, and one appreciative voice.")),
sh(5,["<char2>","<char3>","<char1>"],["<char1>"],[],[d("<char1>","You can stay here as long as you like; the lower alcove remains open too.")],
pn(["the young Black man with short coils, pale yellow sweater, and charcoal trousers","the older white woman with a soft gray bob, teal coat, and red reading glasses","the middle-aged Indigenous librarian with long black hair in a low braid, rust cardigan, and narrow silver necklace"],[1,2,3],"In a seated medium three-shot near the tall windows, <Subject 1> and <Subject 2> settle with ample space between them while <Subject 3> remains standing by the open route back to the stairs. All three look briefly across the quiet gallery as late light moves over the floor.",'<Subject 3> (S1) says: <d>[English] You can stay here as long as you like; the lower alcove remains open too.</d>',"Soft seat fabric, high-window air, distant library ambience, and one calm voice."))]
cases.append(c)
OUT.write_text(json.dumps(cases,ensure_ascii=False,indent=2)+"\n",encoding="utf-8")