P-H3-Image / examples.py
nifleisch's picture
P-H3-Image demo
9d61ded verified
Raw History Blame
8.04 kB
"""Text-to-image examples: (label, aspect ratio, prompt)."""
EXAMPLES = [
("Negotiation in orbit", "16:9",
"Medium wide shot from a low angle across a long table, on a 35mm lens, with the window and far wall behind the "
"figures. Five people sit in tense negotiation, leaning toward each other. Two humans in worn grey wool suits "
"face three alien delegates. The first alien is tall and thin-limbed, with grey skin, long folded fingers and a "
"robe of coarse woven fiber. The second is squat and heavy, its back plated with pale ridged shell, gripping a "
"stylus in three thick fingers. The third has a dark mantle of fine filaments and wears a harness of dented brass "
"clips. A cracked ceramic jug, scuffed data slates and curled paper printouts sit on the table. Earth fills the "
"large curved window, a band of blue cloud over dark ocean. Ribbed steel girders frame the foreground. Cold "
"sunlight rakes across the table while one amber lamp hangs overhead, casting soft shadows under the chins. Fine "
"dust drifts in the light. Palette of slate, bone, rust and deep teal, natural film color, fine grain, shadows "
"deep with detail kept."),
("Astronaut in a flooded jungle", "16:9",
"A frame from a feature film: a wide establishing shot from a low angle, with a small astronaut standing "
"waist-deep in a flooded jungle clearing, captured on a large-format digital cinema camera with a 35mm lens.\n\n"
"The astronaut wears a worn white spacesuit with grey mud on the knees, scuffed gloves, and a cracked visor that "
"reflects the canopy. One hand grips a rusted machete while the other rests on a broken comms pack. The helmet "
"is tilted toward a sound in the trees, caught mid-step as if listening for danger.\n\n"
"Behind the figure, tangled roots and fallen trunks rise out of black water. A pale strangler fig wraps around a "
"torn fragment of a landing hull. Farther back, ferns and mist-shrouded trunks fade into layers of blue-grey "
"haze.\n\n"
"The light is a low, overcast sky above the canopy, a cold top light with a faint blue-white bounce off the "
"water. A single battery lantern clipped to the pack casts a small warm pool across the suit.\n\n"
"Drifting mist hangs between the trunks, and fine rain dimples the water surface. The palette is restrained: "
"slate blue, steel grey, muted sage green and pale ivory, with film-like color and fine grain."),
("Knight in a frozen forest", "3:2",
"A photograph by an experienced landscape photographer, shot at eye level from a low position with a 35mm lens "
"at f/2.8, the knight placed in the middle distance on a narrow forest path.\n\n"
"The knight is a weathered man in his forties, his beard rimmed with frost and his brow tight as he scans the "
"trees. His dented steel plate is dulled with grey scratches, a wool cloak hangs heavy and damp at his "
"shoulders, and his right hand rests loosely on a sword hilt wrapped in worn leather. His breath drifts visibly "
"in the cold air as he walks mid-stride, one boot sinking into the snow.\n\n"
"Behind him, birch and pine trunks are coated in white frost, and fallen branches lie half-buried under drifts. "
"Moonlight comes from high upper left, pale and cool, lifting the frost on the bark and the rim of his pauldron, "
"while the forest floor falls into deep blue shadow where texture remains visible. The palette stays "
"restrained: slate blue, grey-white snow, muted brown leather and tarnished steel, with neutral white balance "
"and fine film grain."),
("Anime sword duel", "16:9",
"A frame from a Japanese anime television series, hand-drawn cel animation over a painted background, "
"widescreen composition. On a rocky mountaintop in a thunderstorm, a swordsman in a torn dark coat swings a "
"massive broadsword that glows pale blue, its blade mid-arc and his teeth clenched. Opposite him, a slender "
"fighter in a white scarf blurs into motion, leaving streaks of afterimage and a ring of cracked stone. "
"Lightning forks across the sky behind them, rain slants through the frame, and bright white highlights gleam "
"on wet rock."),
("1970s sci-fi comic", "3:2",
"A gouache and ink illustration in the style of a 1970s European science-fiction comic, filling the whole "
"picture edge to edge. A lone space traveler in a bulky white suit stands on a rocky ledge, helmet visor "
"catching the faint light, gazing up at towering mushroom trees with broad caps and thick pale stalks. A dim "
"violet sky stretches above, with a few pale spores drifting through the air. Flat violet and ochre color with "
"visible brush texture and inked contour lines, shown in a wide landscape view from a low angle."),
("Linen lookbook", "2:3",
"A lookbook photograph by an experienced fashion photographer: a woman in her late twenties stands full length "
"in a pale sandy-linen dress, a loose sleeveless A-line with a square neckline, a gathered waist and a hem that "
"falls just below the calf. The natural linen creases softly at the hips and lifts slightly as she shifts her "
"weight onto one foot in a light breeze. Her chestnut hair is loosely tied back, she wears simple leather "
"sandals and small gold hoops, and her expression is calm as she looks just past the camera. The location is a "
"whitewashed plaster wall beside a weathered wooden door, with the shadow of a palm frond falling across the "
"plaster. Late-afternoon sunlight from the left gives warm directional light with visible detail in the "
"shadows. Shot at 85mm from a few steps back at standing eye height, shallow depth of field, true white "
"balance, fine grain, restrained palette of cream, sand and sage. No text, no other objects."),
("Risograph cyclist", "3:4",
"A two-color risograph print on cream paper, the artwork running edge to edge with no border or margin. A "
"cyclist in a hooded jacket and helmet leans into a turn on a bicycle down a wide city avenue, seen from a low "
"side angle. Behind them rise tall apartment blocks with rows of windows, a tram line curving into the "
"distance, and a few parked cars. Only the cyclist, the buildings and the road are shown. The image uses "
"fluorescent pink and deep blue inks, which overprint to a dark purple where they overlap. Visible halftone "
"dots, grainy ink coverage, and slight misregistration between the two passes run across the whole sheet."),
("Byzantine mosaic", "3:4",
"A Byzantine gold-ground mosaic panel, small glass and stone tesserae set in lime mortar, with the gold tiles "
"catching light unevenly. A lighthouse keeper in a dark blue tunic and short cloak stands at the base of a tall "
"white tower, one hand raised to shield his eyes as he looks out to sea. Behind him a lantern glows with a "
"red-gold flame, and the water below is built in bands of teal and deep blue tesserae, with a small ship on the "
"horizon. The gold ground fills the background, the figures are outlined in dark grey-brown tesserae, and the "
"grout lines are slightly uneven. The mosaic fills the whole image edge to edge, with no frame or border."),
("Kirchner street at night", "3:4",
"A German Expressionist oil painting on canvas in the manner of Ernst Ludwig Kirchner's Berlin street scenes. A "
"narrow city street at night tilts sharply toward the viewer, its buildings leaning into angular, flattened "
"planes. Gaunt figures in dark coats hurry past a gas lamp whose light is a thick yellow smear dragged across "
"the wet paving. Heavy impasto brushstrokes and visible palette-knife edges, with raw cadmium yellow, cobalt "
"blue and vermilion patches in the lit windows. The paint covers the canvas edge to edge, with no frame or "
"border."),
]