Python
Higgsfield's image menu, batch 1: an influencer builder, inpaint with a brush, photodump, moodboard and more controls
neuregex7805cf2c8dd7
diff --git a/.gitignore b/.gitignoreindex bc349a1..a2832a8 100644--- a/.gitignore+++ b/.gitignore@@ -5,6 +5,7 @@ out/lab/results/lab/assets/*.mp4lab/assets/*.png+!lab/assets/mask-*.png__pycache__/*.pyc.venv/diff --git a/apps/ai-influencer/app.json b/apps/ai-influencer/app.jsonindex ecb8e59..ef5ce17 100644--- a/apps/ai-influencer/app.json+++ b/apps/ai-influencer/app.json@@ -3,7 +3,7 @@"id": "ai-influencer","name": "AI Influencer","section": "image",- "summary": "Makes a feed-ready photo of a made-up influencer in their niche, with natural skin (FLUX 3 Klein).",+ "summary": "Build a made-up influencer trait by trait: type, body, hair, face, style and scene (FLUX 3 Klein).","higgsfield_feature": "AI Influencer","pack": "image-flux3","status": "ready",@@ -15,44 +15,954 @@},"inputs": [{- "id": "who",- "type": "text",- "label": "Who",- "default": "a woman in her late twenties from Mexico City with curly dark hair",- "required": true,- "help": "Describe a person who does not exist: age, origin, hair, style."+ "id": "kind",+ "type": "select",+ "label": "Character type",+ "default": "an ordinary, believable person",+ "options": [+ {+ "value": "an ordinary, believable person",+ "label": "Human"+ },+ {+ "value": "a person with bold, striking, slightly exaggerated features",+ "label": "Bold"+ },+ {+ "value": "a person with extremely exaggerated, cartoonish features and proportions, still photographed for real",+ "label": "Extreme"+ },+ {+ "value": "an anthropomorphic insect character: an insect head with large compound eyes and antennae on a human body",+ "label": "Insect"+ },+ {+ "value": "an anthropomorphic frog character: a green frog head on a human body",+ "label": "Frog"+ },+ {+ "value": "an anthropomorphic cat character: a furry cat head on a human body",+ "label": "Cat"+ },+ {+ "value": "an anthropomorphic dog character: a dog head with floppy ears on a human body",+ "label": "Dog"+ },+ {+ "value": "an anthropomorphic capybara character: a capybara head on a human body",+ "label": "Rodent"+ },+ {+ "value": "an anthropomorphic bird character: a puffin head with a bright beak on a human body",+ "label": "Bird"+ }+ ],+ "help": "Shown with an example of each type.",+ "gallery": true+ },+ {+ "id": "gender",+ "type": "select",+ "label": "Gender",+ "default": "A woman",+ "options": [+ {+ "value": "A woman",+ "label": "Woman"+ },+ {+ "value": "A man",+ "label": "Man"+ },+ {+ "value": "A trans man",+ "label": "Trans man"+ },+ {+ "value": "A trans woman",+ "label": "Trans woman"+ },+ {+ "value": "A non-binary person",+ "label": "Non-binary"+ }+ ]+ },+ {+ "id": "age",+ "type": "select",+ "label": "Age",+ "default": " aged around 28",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": " aged around 28",+ "label": "Adult"+ },+ {+ "value": " aged around 45",+ "label": "Mature"+ },+ {+ "value": " aged around 70",+ "label": "Older"+ }+ ]+ },+ {+ "id": "origin",+ "type": "select",+ "label": "Origin",+ "default": " of Latin American descent",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": " of African descent",+ "label": "African"+ },+ {+ "value": " of East Asian descent",+ "label": "East Asian"+ },+ {+ "value": " of European descent",+ "label": "European"+ },+ {+ "value": " of South Asian descent",+ "label": "South Asian"+ },+ {+ "value": " of Middle Eastern descent",+ "label": "Middle Eastern"+ },+ {+ "value": " of Latin American descent",+ "label": "Latin American"+ },+ {+ "value": " of mixed heritage",+ "label": "Mixed"+ }+ ]+ },+ {+ "id": "skin",+ "type": "select",+ "label": "Skin tone",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Porcelain skin.",+ "label": "Porcelain"+ },+ {+ "value": "Fair skin.",+ "label": "Fair"+ },+ {+ "value": "Olive skin.",+ "label": "Olive"+ },+ {+ "value": "Tan skin.",+ "label": "Tan"+ },+ {+ "value": "Brown skin.",+ "label": "Brown"+ },+ {+ "value": "Deep brown skin.",+ "label": "Deep brown"+ },+ {+ "value": "Very dark skin.",+ "label": "Ebony"+ }+ ]+ },+ {+ "id": "build",+ "type": "select",+ "label": "Build",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Slim build.",+ "label": "Slim"+ },+ {+ "value": "Athletic build.",+ "label": "Athletic"+ },+ {+ "value": "Muscular build.",+ "label": "Muscular"+ },+ {+ "value": "Curvy build.",+ "label": "Curvy"+ },+ {+ "value": "Heavyset build.",+ "label": "Heavyset"+ },+ {+ "value": "A huge bodybuilder build.",+ "label": "Bodybuilder"+ }+ ]+ },+ {+ "id": "stature",+ "type": "select",+ "label": "Height",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Average height.",+ "label": "Average"+ },+ {+ "value": "Tall.",+ "label": "Tall"+ },+ {+ "value": "Very tall.",+ "label": "Very tall"+ }+ ]+ },+ {+ "id": "proportions",+ "type": "select",+ "label": "Proportions",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Long arms and legs.",+ "label": "Long limbs"+ },+ {+ "value": "Short legs.",+ "label": "Short legs"+ },+ {+ "value": "Broad shoulders.",+ "label": "Broad shoulders"+ },+ {+ "value": "A narrow waist.",+ "label": "Narrow waist"+ },+ {+ "value": "A round, egg-shaped body.",+ "label": "Egg-shaped"+ }+ ]+ },+ {+ "id": "hair",+ "type": "select",+ "label": "Hairstyle",+ "default": "Long curly hair.",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Long curly hair.",+ "label": "Long curly"+ },+ {+ "value": "Long straight hair.",+ "label": "Long straight"+ },+ {+ "value": "Short hair.",+ "label": "Short"+ },+ {+ "value": "A bob haircut.",+ "label": "Bob"+ },+ {+ "value": "A bald head.",+ "label": "Bald"+ },+ {+ "value": "A buzz cut.",+ "label": "Buzz cut"+ },+ {+ "value": "A bowl cut.",+ "label": "Bowl cut"+ },+ {+ "value": "A mullet.",+ "label": "Mullet"+ },+ {+ "value": "Long braids.",+ "label": "Braids"+ },+ {+ "value": "Two pigtails.",+ "label": "Pigtails"+ },+ {+ "value": "A big afro.",+ "label": "Afro"+ },+ {+ "value": "A mohawk.",+ "label": "Mohawk"+ },+ {+ "value": "Big voluminous waves.",+ "label": "Voluminous waves"+ },+ {+ "value": "A tall beehive hairdo.",+ "label": "Beehive"+ },+ {+ "value": "A tight perm.",+ "label": "Perm"+ },+ {+ "value": "A layered cut.",+ "label": "Layered"+ },+ {+ "value": "Long ringlets.",+ "label": "Ringlets"+ },+ {+ "value": "A mushroom cut.",+ "label": "Mushroom cut"+ },+ {+ "value": "Hair styled into two horns.",+ "label": "Hair horns"+ },+ {+ "value": "Hair piled up in a soft-serve swirl.",+ "label": "Soft-serve swirl"+ },+ {+ "value": "A round ball of curls.",+ "label": "Ball of curls"+ },+ {+ "value": "Two round buns on top of the head.",+ "label": "Two buns"+ },+ {+ "value": "Hair swept out to the sides like wings.",+ "label": "Hair wings"+ },+ {+ "value": "Spiky hair.",+ "label": "Spikes"+ },+ {+ "value": "One big spiral curl on the side.",+ "label": "Side spiral"+ }+ ]+ },+ {+ "id": "haircolor",+ "type": "select",+ "label": "Hair color",+ "default": "Dark brown hair.",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Jet-black hair.",+ "label": "Jet black"+ },+ {+ "value": "Dark brown hair.",+ "label": "Dark brown"+ },+ {+ "value": "Brown hair.",+ "label": "Brown"+ },+ {+ "value": "Auburn hair.",+ "label": "Auburn"+ },+ {+ "value": "Bright red hair.",+ "label": "Red"+ },+ {+ "value": "Blonde hair.",+ "label": "Blonde"+ },+ {+ "value": "Platinum hair.",+ "label": "Platinum"+ },+ {+ "value": "Gray hair.",+ "label": "Gray"+ },+ {+ "value": "White hair.",+ "label": "White"+ },+ {+ "value": "Pastel pink hair.",+ "label": "Pastel pink"+ },+ {+ "value": "Lilac hair.",+ "label": "Lilac"+ },+ {+ "value": "Blue hair.",+ "label": "Blue"+ },+ {+ "value": "Green hair.",+ "label": "Green"+ }+ ]+ },+ {+ "id": "head",+ "type": "select",+ "label": "Head shape",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "A long face.",+ "label": "Long"+ },+ {+ "value": "A very small head.",+ "label": "Small"+ },+ {+ "value": "A high forehead.",+ "label": "High forehead"+ },+ {+ "value": "A heavy brow ridge.",+ "label": "Heavy brow"+ },+ {+ "value": "A sharply chiseled jawline.",+ "label": "Chiseled jaw"+ },+ {+ "value": "A huge jaw.",+ "label": "Huge jaw"+ },+ {+ "value": "A round face.",+ "label": "Round"+ },+ {+ "value": "A square face.",+ "label": "Square"+ },+ {+ "value": "A heart-shaped face.",+ "label": "Heart"+ }+ ]+ },+ {+ "id": "neck",+ "type": "select",+ "label": "Neck",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "A thick neck.",+ "label": "Thick"+ },+ {+ "value": "A long neck.",+ "label": "Long"+ },+ {+ "value": "A short neck.",+ "label": "Short"+ }+ ]+ },+ {+ "id": "eyes",+ "type": "select",+ "label": "Eye shape",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Almond-shaped eyes.",+ "label": "Almond"+ },+ {+ "value": "Round eyes.",+ "label": "Round"+ },+ {+ "value": "Monolid eyes.",+ "label": "Monolid"+ },+ {+ "value": "Close-set eyes.",+ "label": "Close-set"+ },+ {+ "value": "Wide-set eyes.",+ "label": "Wide-set"+ },+ {+ "value": "Slightly uneven eyes.",+ "label": "Uneven"+ },+ {+ "value": "Big eyes.",+ "label": "Big"+ },+ {+ "value": "Huge eyes.",+ "label": "Huge"+ },+ {+ "value": "Hooded eyes.",+ "label": "Hooded"+ },+ {+ "value": "Upturned eyes.",+ "label": "Upturned"+ },+ {+ "value": "Downturned eyes.",+ "label": "Downturned"+ }+ ]+ },+ {+ "id": "eyecolor",+ "type": "select",+ "label": "Eye color",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Black eyes.",+ "label": "Black"+ },+ {+ "value": "Brown eyes.",+ "label": "Brown"+ },+ {+ "value": "Hazel eyes.",+ "label": "Hazel"+ },+ {+ "value": "Green eyes.",+ "label": "Green"+ },+ {+ "value": "Blue eyes.",+ "label": "Blue"+ },+ {+ "value": "Ice-blue eyes.",+ "label": "Ice blue"+ },+ {+ "value": "Amber eyes.",+ "label": "Amber"+ },+ {+ "value": "Gray eyes.",+ "label": "Gray"+ }+ ]+ },+ {+ "id": "feature",+ "type": "select",+ "label": "Facial feature",+ "default": "Freckles.",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Freckles.",+ "label": "Freckles"+ },+ {+ "value": "Dimples.",+ "label": "Dimples"+ },+ {+ "value": "Dark circles under the eyes.",+ "label": "Dark circles"+ },+ {+ "value": "Rosy cheeks.",+ "label": "Rosy cheeks"+ },+ {+ "value": "High cheekbones.",+ "label": "High cheekbones"+ },+ {+ "value": "Full lips.",+ "label": "Full lips"+ },+ {+ "value": "Thick eyebrows.",+ "label": "Thick eyebrows"+ },+ {+ "value": "A beauty mark.",+ "label": "Beauty mark"+ },+ {+ "value": "A round nose.",+ "label": "Round nose"+ },+ {+ "value": "A button nose.",+ "label": "Button nose"+ },+ {+ "value": "A pointed nose.",+ "label": "Pointed nose"+ },+ {+ "value": "A tiny nose.",+ "label": "Tiny nose"+ },+ {+ "value": "Pouty lips.",+ "label": "Pouty lips"+ },+ {+ "value": "A small pursed mouth.",+ "label": "Small mouth"+ },+ {+ "value": "A wide mouth.",+ "label": "Wide mouth"+ },+ {+ "value": "A unibrow.",+ "label": "Unibrow"+ },+ {+ "value": "Thin, high arched eyebrows.",+ "label": "Thin arched brows"+ },+ {+ "value": "Bushy eyebrows.",+ "label": "Bushy brows"+ },+ {+ "value": "Ears that stick out.",+ "label": "Protruding ears"+ },+ {+ "value": "A gap between the front teeth.",+ "label": "Gap teeth"+ },+ {+ "value": "Slight buck teeth.",+ "label": "Buck teeth"+ },+ {+ "value": "A pointed chin.",+ "label": "Pointed chin"+ },+ {+ "value": "A receding chin.",+ "label": "Receding chin"+ },+ {+ "value": "A big forehead.",+ "label": "Big forehead"+ }+ ]+ },+ {+ "id": "facialhair",+ "type": "select",+ "label": "Facial hair",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Clean-shaven.",+ "label": "Clean-shaven"+ },+ {+ "value": "Stubble.",+ "label": "Stubble"+ },+ {+ "value": "A full beard.",+ "label": "Full beard"+ },+ {+ "value": "A goatee.",+ "label": "Goatee"+ },+ {+ "value": "A mustache.",+ "label": "Mustache"+ },+ {+ "value": "A thin pencil mustache.",+ "label": "Pencil mustache"+ },+ {+ "value": "A thick push-broom mustache.",+ "label": "Push-broom"+ },+ {+ "value": "A braided beard.",+ "label": "Braided beard"+ }+ ]+ },+ {+ "id": "trait",+ "type": "select",+ "label": "Distinctive trait",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Each eye a different color.",+ "label": "Different eye colors"+ },+ {+ "value": "A small face tattoo.",+ "label": "Small face tattoo"+ },+ {+ "value": "A nose piercing.",+ "label": "Nose piercing"+ },+ {+ "value": "Several ear piercings.",+ "label": "Ear piercings"+ },+ {+ "value": "Shaved slits in one eyebrow.",+ "label": "Eyebrow slits"+ },+ {+ "value": "Bleached eyebrows.",+ "label": "Bleached brows"+ },+ {+ "value": "No eyebrows.",+ "label": "No eyebrows"+ },+ {+ "value": "A gold grill on the teeth.",+ "label": "Gold grill"+ },+ {+ "value": "Braces on the teeth.",+ "label": "Braces"+ },+ {+ "value": "A small scar through one eyebrow.",+ "label": "Eyebrow scar"+ },+ {+ "value": "Small gems stuck on the cheekbones.",+ "label": "Face gems"+ },+ {+ "value": "Pointed elf ears.",+ "label": "Elf ears"+ },+ {+ "value": "Very long eyelashes.",+ "label": "Long lashes"+ },+ {+ "value": "A strip across the nose.",+ "label": "Nose strip"+ }+ ]},{- "id": "niche",+ "id": "style","type": "select",- "label": "Niche",- "default": "fitness influencer stretching on a rooftop at sunrise in workout clothes",+ "label": "Style",+ "default": "Wearing casual everyday clothes.","options": [{- "value": "fitness influencer stretching on a rooftop at sunrise in workout clothes",+ "value": "",+ "label": "Any"+ },+ {+ "value": "Wearing casual everyday clothes.",+ "label": "Casual"+ },+ {+ "value": "Wearing streetwear.",+ "label": "Streetwear"+ },+ {+ "value": "Wearing 1970s retro clothes.",+ "label": "Retro"+ },+ {+ "value": "Wearing sporty athletic clothes.",+ "label": "Sporty"+ },+ {+ "value": "Wearing early-2000s Y2K fashion.",+ "label": "Y2K"+ },+ {+ "value": "Wearing a bold theatrical costume.",+ "label": "Theatrical"+ },+ {+ "value": "Wearing gothic black clothes.",+ "label": "Gothic"+ },+ {+ "value": "Wearing a tailored suit.",+ "label": "Suit"+ }+ ]+ },+ {+ "id": "accessory",+ "type": "select",+ "label": "Accessory",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": "Glasses.",+ "label": "Glasses"+ },+ {+ "value": "Headphones around the neck.",+ "label": "Headphones"+ },+ {+ "value": "Jewelry.",+ "label": "Jewelry"+ },+ {+ "value": "A hat.",+ "label": "Hat"+ },+ {+ "value": "A bag over one shoulder.",+ "label": "Bag"+ }+ ]+ },+ {+ "id": "scene",+ "type": "select",+ "label": "Scene",+ "default": "Standing in a plain light-gray photo studio, full body, soft even light.",+ "options": [+ {+ "value": "Standing in a plain light-gray photo studio, full body, soft even light.",+ "label": "Studio"+ },+ {+ "value": "Stretching on a rooftop at sunrise, full body.","label": "Fitness"},{- "value": "travel influencer with a backpack at a viewpoint above a coastal town",+ "value": "With a backpack at a viewpoint above a coastal town.","label": "Travel"},{- "value": "fashion influencer posing on a city street in a tailored camel coat",+ "value": "Posing on a city street, full body.","label": "Fashion"},{- "value": "food influencer tasting a dish at a busy street food stall at night",+ "value": "Tasting a dish at a busy street food stall at night.","label": "Food"},{- "value": "tech influencer at a desk with a laptop and a camera on a tripod, warm desk lamp",+ "value": "At a desk with a laptop and a camera on a tripod, warm desk lamp.","label": "Tech"}]},{"id": "details",- "type": "textarea",+ "type": "text","label": "Extra direction","default": "","help": "Added at the end of the app's prompt.",@@ -60,67 +970,204 @@{"node": "18:17","field": "value",- "template": "A vertical phone photo for a social media feed of {who}, a {niche}. Natural skin texture with visible pores, candid moment, realistic photo, no text, no logos. {details}"+ "template": "A vertical photo for social media of a made-up character: {kind}. {gender}{age}{origin}. {skin} {build} {stature} {proportions} {hair} {haircolor} {head} {neck} {eyes} {eyecolor} {feature} {facialhair} {trait} {style} {accessory} {scene} Natural skin texture with visible pores, a believable photo, no text, no logos. {details}"}]},{- "id": "width",+ "id": "aspect","type": "select",- "label": "Width",- "default": 768,+ "label": "Aspect ratio",+ "default": "2:3",+ "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.","options": [{- "value": 768,- "label": "768"+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1024+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1024+ }+ ]},{- "value": 1024,- "label": "1024"+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1152+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 864+ }+ ]},{- "value": 1280,- "label": "1280"+ "value": "3:4",+ "label": "3:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 864+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1152+ }+ ]},{- "value": 1536,- "label": "1536"- }- ],- "bind": [+ "value": "3:2",+ "label": "3:2",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1248+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 832+ }+ ]+ },{- "node": "18:6",- "field": "width"+ "value": "2:3",+ "label": "2:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 832+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1248+ }+ ]+ },+ {+ "value": "5:4",+ "label": "5:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1120+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 896+ }+ ]+ },+ {+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 896+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1344+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 768+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1344+ }+ ]+ },+ {+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1536+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 640+ }+ ]}- ]+ ],+ "bind": []},{- "id": "height",+ "id": "resolution","type": "select",- "label": "Height",- "default": 1280,+ "label": "Resolution",+ "default": 1,+ "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.","options": [{- "value": 768,- "label": "768"- },- {- "value": 1024,- "label": "1024"+ "value": 1,+ "label": "1K"},{- "value": 1280,- "label": "1280"+ "value": 1.5,+ "label": "1.5K"},{- "value": 1536,- "label": "1536"+ "value": 2,+ "label": "2K"}],"bind": [{- "node": "18:6",- "field": "height"+ "node": "ff_res",+ "field": "scale_by"}]},@@ -192,7 +1239,5 @@"credits": ["FLUX 3 Image Klein and its prompt upsampler by Black Forest Labs (FLUX Kommunity License)"],- "test": {- "niche": "fitness influencer stretching on a rooftop at sunrise in workout clothes"- }+ "test": {}}diff --git a/apps/ai-influencer/workflow.api.json b/apps/ai-influencer/workflow.api.jsonindex 971fd0d..d5116c3 100644--- a/apps/ai-influencer/workflow.api.json+++ b/apps/ai-influencer/workflow.api.json@@ -98,7 +98,7 @@0],"latent_image": [- "18:6",+ "ff_res",0],"seed": 3,@@ -148,5 +148,19 @@"_meta": {"title": "Text (Multiline)"}+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "18:6",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }}}diff --git a/apps/character-3/app.json b/apps/character-3/app.jsonnew file mode 100644index 0000000..52debaf--- /dev/null+++ b/apps/character-3/app.json@@ -0,0 +1,348 @@+{+ "$schema": "../../schema/app.schema.json",+ "id": "character-3",+ "name": "Character (3 Photos)",+ "section": "image",+ "summary": "The person from three of your photos in a new scene: more angles of one face keep the likeness closer (FLUX 3 Image Klein).",+ "higgsfield_feature": "Soul ID",+ "pack": "image-flux3",+ "status": "ready",+ "workflow": "workflow.api.json",+ "source": {+ "template": "image_flux3_klein_distilled_image_edit.json",+ "comfyui": "0.42.0",+ "notes": "apps/edit's pipeline with three LoadImage nodes on ReferenceMultiLatent (images.image0-2, 1 MP each) and an empty latent of its own (aspect ratio and resolution as in create-image). Higgsfield's Soul ID trains on the photos; this keeps them as references instead."+ },+ "inputs": [+ {+ "id": "photo1",+ "type": "image",+ "label": "Photo 1",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "help": "Three photos of the same person: front, three-quarter, another light or day.",+ "bind": [+ {+ "node": "11",+ "field": "image"+ }+ ]+ },+ {+ "id": "photo2",+ "type": "image",+ "label": "Photo 2",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "12",+ "field": "image"+ }+ ]+ },+ {+ "id": "photo3",+ "type": "image",+ "label": "Photo 3",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "13",+ "field": "image"+ }+ ]+ },+ {+ "id": "scene",+ "type": "textarea",+ "label": "Scene",+ "required": true,+ "default": "ordering a coffee at a café counter, morning light",+ "bind": [+ {+ "node": "4",+ "field": "text",+ "template": "The same person as in <ref_image_0>, <ref_image_1> and <ref_image_2> (three photos of one person), {scene}. Keep the face, hairstyle and build identical."+ }+ ]+ },+ {+ "id": "aspect",+ "type": "select",+ "label": "Aspect ratio",+ "default": "4:5",+ "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.",+ "options": [+ {+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1024+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1024+ }+ ]+ },+ {+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1152+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 864+ }+ ]+ },+ {+ "value": "3:4",+ "label": "3:4",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 864+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1152+ }+ ]+ },+ {+ "value": "3:2",+ "label": "3:2",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1248+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 832+ }+ ]+ },+ {+ "value": "2:3",+ "label": "2:3",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 832+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1248+ }+ ]+ },+ {+ "value": "5:4",+ "label": "5:4",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1120+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 896+ }+ ]+ },+ {+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 896+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1344+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 768+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1344+ }+ ]+ },+ {+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1536+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 640+ }+ ]+ }+ ],+ "bind": []+ },+ {+ "id": "resolution",+ "type": "select",+ "label": "Resolution",+ "default": 1,+ "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.",+ "options": [+ {+ "value": 1,+ "label": "1K"+ },+ {+ "value": 1.5,+ "label": "1.5K"+ },+ {+ "value": 2,+ "label": "2K"+ }+ ],+ "bind": [+ {+ "node": "ff_res",+ "field": "scale_by"+ }+ ]+ },+ {+ "id": "steps",+ "type": "slider",+ "label": "Steps",+ "min": 8,+ "max": 30,+ "step": 1,+ "default": 16,+ "bind": [+ {+ "node": "7",+ "field": "steps"+ }+ ]+ },+ {+ "id": "seed",+ "type": "seed",+ "label": "Seed",+ "default": -1,+ "help": "-1 picks a random seed",+ "bind": [+ {+ "node": "7",+ "field": "seed"+ }+ ]+ }+ ],+ "outputs": [+ {+ "node": "9",+ "type": "image",+ "label": "Result"+ }+ ],+ "models": [+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",+ "dir": "diffusion_models",+ "gb": 5.83,+ "phase": "denoise",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",+ "dir": "text_encoders",+ "gb": 4.86,+ "phase": "encode",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "vae/flux2-vae.safetensors",+ "dir": "vae",+ "gb": 0.34,+ "phase": "decode",+ "gated": true,+ "license": "FLUX Kommunity License"+ }+ ],+ "credits": [+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"+ ],+ "test": {+ "photo1": "test/portrait.png",+ "photo2": "test/second.png",+ "photo3": "test/third.png",+ "scene": "on a beach"+ }+}diff --git a/apps/character-3/workflow.api.json b/apps/character-3/workflow.api.jsonnew file mode 100644index 0000000..5c3c23d--- /dev/null+++ b/apps/character-3/workflow.api.json@@ -0,0 +1,202 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",+ "type": "flux3",+ "device": "default"+ },+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "3": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "_meta": {+ "title": "Load VAE"+ }+ },+ "4": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": "Change the jacket to deep red leather, keep everything else the same."+ },+ "_meta": {+ "title": "Positive Prompt"+ }+ },+ "7": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "17",+ 0+ ],+ "negative": [+ "17",+ 1+ ],+ "latent_image": [+ "ff_res",+ 0+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "KSampler"+ }+ },+ "8": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "7",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "9": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "8",+ 0+ ],+ "filename_prefix": "freefield/character-3"+ },+ "_meta": {+ "title": "Save Image"+ }+ },+ "11": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "woman_gold_earring_teal_top_portrait.png"+ },+ "_meta": {+ "title": "Load Image"+ }+ },+ "17": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "4",+ 0+ ],+ "negative": [+ "32",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1.0,+ "images.image1": [+ "12",+ 0+ ],+ "images.image2": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Set Reference Multi Latent"+ }+ },+ "32": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Conditioning Zero Out"+ }+ },+ "12": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "second.png"+ },+ "_meta": {+ "title": "Second reference"+ }+ },+ "13": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "third.png"+ },+ "_meta": {+ "title": "Third reference"+ }+ },+ "ff_size": {+ "class_type": "EmptyFlux2LatentImage",+ "inputs": {+ "width": 1024,+ "height": 1024,+ "batch_size": 1+ },+ "_meta": {+ "title": "Aspect ratio"+ }+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "ff_size",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }+ }+}diff --git a/apps/cinema-studio/app.json b/apps/cinema-studio/app.jsonindex 0cc02e8..e04b84f 100644--- a/apps/cinema-studio/app.json+++ b/apps/cinema-studio/app.json@@ -6,12 +6,12 @@"pack": "image-flux3","status": "ready","higgsfield_feature": "Cinematic Cameras",- "summary": "Pick a camera body, lens, focal length and aperture; they become part of the prompt.",+ "summary": "Pick genre, era, camera body, lens, focal length, aperture, lighting and color palette; they become part of the prompt.","workflow": "workflow.api.json","source": {"template": "image_flux3_klein_distilled_t2i.json","comfyui": "0.42.0",- "notes": "Camera and lens vocabulary from open-higgsfield-ai (MIT), src/lib/promptUtils.js. Camera, lens and focal options write the look they give, not the gear: with \"shot on a <camera>\" Z-Image drew the camera into the picture (run 20261020-133620-l40s), and \"no camera in the frame\" did not stop it (run 20261024-172353-h100). Since 25 Oct the still is drawn by FLUX 3 Image Klein (16:9, 1344x768) instead of Z-Image Turbo, without the prompt upsampler: the app writes the whole prompt."+ "notes": "Camera and lens vocabulary from open-higgsfield-ai (MIT), src/lib/promptUtils.js. Camera, lens and focal options write the look they give, not the gear: with \"shot on a <camera>\" Z-Image drew the camera into the picture (run 20261020-133620-l40s), and \"no camera in the frame\" did not stop it (run 20261024-172353-h100). Since 25 Oct the still is drawn by FLUX 3 Image Klein (16:9, 1344x768) instead of Z-Image Turbo, without the prompt upsampler: the app writes the whole prompt. Since 26 Oct genre, era, lighting and color palette are selects too (Higgsfield's Cinema Studio 4.0 has film settings, lighting setups and palettes), and aspect ratio and resolution come from create-image's latent and its LatentUpscaleBy node."},"inputs": [{@@ -24,10 +24,105 @@{"node": "18:17","field": "value",- "template": "A cinematic film still: {prompt}. The look: {camera}; {lens}; {focal}; {aperture}. Cinematic lighting, natural color science, high dynamic range, ultra-detailed"+ "template": "A cinematic film still{genre}{era}: {prompt}. The look: {camera}; {lens}; {focal}; {aperture}. Lighting: {lighting}. Color: {palette}. High dynamic range, ultra-detailed"}]},+ {+ "id": "genre",+ "type": "select",+ "label": "Genre",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "General"+ },+ {+ "value": " from a drama",+ "label": "Drama"+ },+ {+ "value": " from a film noir",+ "label": "Noir"+ },+ {+ "value": " from a comedy",+ "label": "Comedy"+ },+ {+ "value": " from a horror film",+ "label": "Horror"+ },+ {+ "value": " from an action film",+ "label": "Action"+ },+ {+ "value": " from an epic",+ "label": "Epic"+ },+ {+ "value": " from a science-fiction film",+ "label": "Sci-fi"+ },+ {+ "value": " from a western",+ "label": "Western"+ }+ ],+ "bind": [],+ "help": "The kind of film the still comes from."+ },+ {+ "id": "era",+ "type": "select",+ "label": "Era",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": " set in the 1920s",+ "label": "1920s"+ },+ {+ "value": " set in the 1950s",+ "label": "1950s"+ },+ {+ "value": " set in the 1960s",+ "label": "1960s"+ },+ {+ "value": " set in the 1970s",+ "label": "1970s"+ },+ {+ "value": " set in the 1980s",+ "label": "1980s"+ },+ {+ "value": " set in the 1990s",+ "label": "1990s"+ },+ {+ "value": " set in the 2000s",+ "label": "2000s"+ },+ {+ "value": " set in the present day",+ "label": "Present day"+ },+ {+ "value": " set in the near future",+ "label": "Future"+ }+ ],+ "bind": []+ },{"id": "camera","type": "select",@@ -164,6 +259,243 @@}]},+ {+ "id": "lighting",+ "type": "select",+ "label": "Lighting",+ "default": "cinematic lighting",+ "options": [+ {+ "value": "cinematic lighting",+ "label": "Auto"+ },+ {+ "value": "the subject in silhouette against a bright background",+ "label": "Silhouette"+ },+ {+ "value": "lit only by practical lamps visible in the scene",+ "label": "Practicals"+ },+ {+ "value": "soft daylight from a single window at the side",+ "label": "Window"+ },+ {+ "value": "a hard light falling from straight above, deep shadows under the brow",+ "label": "Overhead"+ },+ {+ "value": "a strong light behind the subject, a glowing rim and flare",+ "label": "Backlight"+ },+ {+ "value": "two soft lights crossing from opposite sides",+ "label": "Soft cross"+ },+ {+ "value": "low-key lighting, mostly shadow, one small key light",+ "label": "Low key"+ },+ {+ "value": "colored light from neon signs, magenta and cyan",+ "label": "Neon"+ }+ ],+ "bind": []+ },+ {+ "id": "palette",+ "type": "select",+ "label": "Color palette",+ "default": "natural color science",+ "options": [+ {+ "value": "natural color science",+ "label": "Auto"+ },+ {+ "value": "teal shadows and warm orange skin tones",+ "label": "Teal and orange"+ },+ {+ "value": "desaturated, high-contrast bleach-bypass color",+ "label": "Bleach bypass"+ },+ {+ "value": "warm amber and brown tones",+ "label": "Warm amber"+ },+ {+ "value": "cold blue and steel-gray tones",+ "label": "Cold blue"+ },+ {+ "value": "deep emerald greens with gold highlights",+ "label": "Emerald and gold"+ },+ {+ "value": "soft pastel colors, low contrast",+ "label": "Pastel"+ },+ {+ "value": "saturated magenta, cyan and violet",+ "label": "Neon night"+ },+ {+ "value": "faded film colors with lifted blacks",+ "label": "Faded film"+ },+ {+ "value": "black and white",+ "label": "Monochrome"+ },+ {+ "value": "sepia-toned",+ "label": "Sepia"+ },+ {+ "value": "deep crimson reds against black",+ "label": "Crimson"+ },+ {+ "value": "earthy ochre, olive and rust tones",+ "label": "Earth tones"+ }+ ],+ "bind": []+ },+ {+ "id": "aspect",+ "type": "select",+ "label": "Aspect ratio",+ "default": "16:9",+ "options": [+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1344+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1536+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 640+ }+ ]+ },+ {+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1152+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 864+ }+ ]+ },+ {+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1024+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1024+ }+ ]+ },+ {+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 896+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 768+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1344+ }+ ]+ }+ ],+ "bind": []+ },+ {+ "id": "resolution",+ "type": "select",+ "label": "Resolution",+ "default": 1,+ "options": [+ {+ "value": 1,+ "label": "1K"+ },+ {+ "value": 1.5,+ "label": "1.5K"+ },+ {+ "value": 2,+ "label": "2K"+ }+ ],+ "bind": [+ {+ "node": "ff_res",+ "field": "scale_by"+ }+ ]+ },{"id": "seed","type": "seed",diff --git a/apps/cinema-studio/workflow.api.json b/apps/cinema-studio/workflow.api.jsonindex df9546e..81a0ddd 100644--- a/apps/cinema-studio/workflow.api.json+++ b/apps/cinema-studio/workflow.api.json@@ -98,7 +98,7 @@0],"latent_image": [- "18:6",+ "ff_res",0],"seed": 3,@@ -148,5 +148,19 @@"_meta": {"title": "Text (Multiline)"}+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "18:6",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }}}diff --git a/apps/create-image/app.json b/apps/create-image/app.jsonindex 96eb2e0..3848973 100644--- a/apps/create-image/app.json+++ b/apps/create-image/app.json@@ -6,7 +6,7 @@"pack": "image-flux3","status": "ready","higgsfield_feature": "Create Image",- "summary": "Text to image with FLUX 3 Image Klein, the top open-weights model in Artificial Analysis' arena; a 9B upsampler can expand your prompt.",+ "summary": "Text to image with FLUX 3 Image Klein: aspect ratio, 1K to 2K, a photographic look, and a 9B upsampler that can expand your prompt.","workflow": "workflow.api.json","source": {"template": "image_flux3_klein_distilled_t2i.json",@@ -23,7 +23,8 @@"bind": [{"node": "18:17",- "field": "value"+ "field": "value",+ "template": "{prompt} {look}"}]},@@ -41,62 +42,281 @@]},{- "id": "width",+ "id": "look","type": "select",- "label": "Width",- "default": 1024,+ "label": "Look",+ "default": "",+ "help": "A photographic look added after your prompt (like a moodboard preset).","options": [{- "value": 768,- "label": "768"+ "value": "",+ "label": "None"},{- "value": 1024,- "label": "1024"+ "value": "Shot on a cheap disposable film camera with its built-in flash: harsh flash, slight vignette, film grain, a warm color cast.",+ "label": "Disposable camera"},{- "value": 1280,- "label": "1280"+ "value": "A fashion editorial photo lit by direct flash: crisp hard shadow behind the subject, glossy highlights, high contrast.",+ "label": "Flash editorial"},{- "value": 1536,- "label": "1536"- }- ],- "bind": [+ "value": "A black-and-white film photo: rich grain, deep blacks, soft highlights.",+ "label": "Black and white film"+ },+ {+ "value": "A color film photo with warm, saturated colors and soft grain.",+ "label": "Warm vivid film"+ },+ {+ "value": "A color film photo with muted, cool tones, low contrast and fine grain.",+ "label": "Muted cool film"+ },+ {+ "value": "A soft pastel color film photo: lifted shadows, gentle light, low saturation.",+ "label": "Pastel film"+ },+ {+ "value": "A photo from an early-2000s compact digital camera: flat built-in flash, slightly blown highlights, small-sensor noise.",+ "label": "2000s digital camera"+ },+ {+ "value": "A photo from an old phone camera: soft focus, smeared fine detail, noisy shadows, washed-out colors.",+ "label": "Old phone camera"+ },+ {+ "value": "Candid street photography: natural light, slight motion blur, a documentary feel.",+ "label": "Street photography"+ },+ {+ "value": "Theatrical stage lighting: one hard spotlight, a black background, dramatic shadows.",+ "label": "Theatrical light"+ },+ {+ "value": "Soft natural daylight outdoors, green foliage around, gentle shadows.",+ "label": "Nature light"+ },+ {+ "value": "An underwater photo: blue-green water, light rays from the surface, floating particles.",+ "label": "Underwater"+ },+ {+ "value": "A double-exposure photo: a second scene blended inside the subject's silhouette.",+ "label": "Double exposure"+ },+ {+ "value": "A surreal solarized photo: partly inverted tones and metallic highlights.",+ "label": "Solarized"+ },+ {+ "value": "A bright candy-colored photo: saturated pinks, blues and yellows, glossy and playful.",+ "label": "Candy pop"+ },{- "node": "18:6",- "field": "width"+ "value": "A 1980s horror film still: red and blue gel lights, fog, grainy film, no gore.",+ "label": "80s horror"+ },+ {+ "value": "A Y2K studio portrait: glossy chrome and pastel backdrop, soft flash, early-2000s styling.",+ "label": "Y2K studio"}- ]+ ],+ "bind": []},{- "id": "height",+ "id": "aspect","type": "select",- "label": "Height",- "default": 1024,+ "label": "Aspect ratio",+ "default": "1:1",+ "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.","options": [{- "value": 768,- "label": "768"+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1024+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1024+ }+ ]+ },+ {+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1152+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 864+ }+ ]+ },+ {+ "value": "3:4",+ "label": "3:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 864+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1152+ }+ ]+ },+ {+ "value": "3:2",+ "label": "3:2",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1248+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 832+ }+ ]+ },+ {+ "value": "2:3",+ "label": "2:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 832+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1248+ }+ ]+ },+ {+ "value": "5:4",+ "label": "5:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1120+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 896+ }+ ]},{- "value": 1024,- "label": "1024"+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 896+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1344+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 768+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1344+ }+ ]+ },+ {+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1536+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 640+ }+ ]+ }+ ],+ "bind": []+ },+ {+ "id": "resolution",+ "type": "select",+ "label": "Resolution",+ "default": 1,+ "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.",+ "options": [+ {+ "value": 1,+ "label": "1K"},{- "value": 1280,- "label": "1280"+ "value": 1.5,+ "label": "1.5K"},{- "value": 1536,- "label": "1536"+ "value": 2,+ "label": "2K"}],"bind": [{- "node": "18:6",- "field": "height"+ "node": "ff_res",+ "field": "scale_by"}]},diff --git a/apps/create-image/workflow.api.json b/apps/create-image/workflow.api.jsonindex 461965e..a66d2bf 100644--- a/apps/create-image/workflow.api.json+++ b/apps/create-image/workflow.api.json@@ -98,7 +98,7 @@0],"latent_image": [- "18:6",+ "ff_res",0],"seed": 3,@@ -217,5 +217,19 @@"_meta": {"title": "Text (Multiline)"}+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "18:6",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }}}diff --git a/apps/inpaint/app.json b/apps/inpaint/app.jsonnew file mode 100644index 0000000..3992358--- /dev/null+++ b/apps/inpaint/app.json@@ -0,0 +1,136 @@+{+ "$schema": "../../schema/app.schema.json",+ "id": "inpaint",+ "name": "Inpaint",+ "section": "image",+ "summary": "Paint over the part of a photo to change and describe the change; FLUX 3 Image Klein redraws only what you painted.",+ "higgsfield_feature": "Inpaint",+ "pack": "image-flux3",+ "status": "ready",+ "workflow": "workflow.api.json",+ "source": {+ "template": "image_flux3_klein_distilled_image_edit.json",+ "comfyui": "0.42.0",+ "notes": "apps/edit's pipeline with a noise mask: photo and painted mask (the web UI's brush, white on black) go to 1 MP at the same size, the sampler starts from the encoded photo with SetLatentNoiseMask on the painted area grown 8 px, the photo is the reference, and ImageCompositeMasked pastes the result back through the same mask, so the rest of the photo keeps its pixels."+ },+ "inputs": [+ {+ "id": "image",+ "type": "image",+ "label": "Photo",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "11",+ "field": "image"+ }+ ]+ },+ {+ "id": "mask",+ "type": "image",+ "label": "Area to change",+ "required": true,+ "paint": "image",+ "limits": {+ "max_mb": 20+ },+ "help": "Paint over the photo; only that area is redrawn.",+ "bind": [+ {+ "node": "12",+ "field": "image"+ }+ ]+ },+ {+ "id": "instruction",+ "type": "textarea",+ "label": "What goes there",+ "required": true,+ "default": "a red leather jacket",+ "bind": [+ {+ "node": "4",+ "field": "text",+ "template": "{instruction}. Keep the rest of the image exactly the same."+ }+ ]+ },+ {+ "id": "steps",+ "type": "slider",+ "label": "Steps",+ "min": 8,+ "max": 30,+ "step": 1,+ "default": 16,+ "bind": [+ {+ "node": "7",+ "field": "steps"+ }+ ]+ },+ {+ "id": "seed",+ "type": "seed",+ "label": "Seed",+ "default": -1,+ "help": "-1 picks a random seed",+ "bind": [+ {+ "node": "7",+ "field": "seed"+ }+ ]+ }+ ],+ "outputs": [+ {+ "node": "9",+ "type": "image",+ "label": "Result"+ }+ ],+ "models": [+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",+ "dir": "diffusion_models",+ "gb": 5.83,+ "phase": "denoise",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",+ "dir": "text_encoders",+ "gb": 4.86,+ "phase": "encode",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "vae/flux2-vae.safetensors",+ "dir": "vae",+ "gb": 0.34,+ "phase": "decode",+ "gated": true,+ "license": "FLUX Kommunity License"+ }+ ],+ "credits": [+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"+ ],+ "test": {+ "image": "test/portrait.png",+ "mask": "test/second.png",+ "instruction": "a red scarf"+ }+}diff --git a/apps/inpaint/workflow.api.json b/apps/inpaint/workflow.api.jsonnew file mode 100644index 0000000..f434373--- /dev/null+++ b/apps/inpaint/workflow.api.json@@ -0,0 +1,282 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",+ "type": "flux3",+ "device": "default"+ },+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "3": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "_meta": {+ "title": "Load VAE"+ }+ },+ "4": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": "Change the jacket to deep red leather, keep everything else the same."+ },+ "_meta": {+ "title": "Positive Prompt"+ }+ },+ "7": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "17",+ 0+ ],+ "negative": [+ "17",+ 1+ ],+ "latent_image": [+ "ip_latent",+ 0+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "KSampler"+ }+ },+ "8": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "7",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "9": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "ip_paste",+ 0+ ],+ "filename_prefix": "freefield/inpaint"+ },+ "_meta": {+ "title": "Save Image"+ }+ },+ "11": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "woman_gold_earring_teal_top_portrait.png"+ },+ "_meta": {+ "title": "Load Image"+ }+ },+ "17": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "4",+ 0+ ],+ "negative": [+ "32",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "ip_scale",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1+ },+ "_meta": {+ "title": "Set Reference Multi Latent"+ }+ },+ "32": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Conditioning Zero Out"+ }+ },+ "12": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "mask.png"+ },+ "_meta": {+ "title": "Painted area (white on black)"+ }+ },+ "ip_scale": {+ "class_type": "ImageScaleToTotalPixels",+ "inputs": {+ "image": [+ "11",+ 0+ ],+ "upscale_method": "lanczos",+ "megapixels": 1.0,+ "resolution_steps": 16+ },+ "_meta": {+ "title": "Photo at 1 MP"+ }+ },+ "ip_size": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "ip_scale",+ 0+ ]+ }+ },+ "ip_mscale": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "12",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "ip_size",+ 0+ ],+ "height": [+ "ip_size",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Mask at the photo's size"+ }+ },+ "ip_mask": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "ip_mscale",+ 0+ ],+ "channel": "red"+ }+ },+ "ip_grow": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "ip_mask",+ 0+ ],+ "expand": 8,+ "tapered_corners": true+ },+ "_meta": {+ "title": "A little past the brush"+ }+ },+ "ip_encode": {+ "class_type": "VAEEncode",+ "inputs": {+ "pixels": [+ "ip_scale",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ }+ },+ "ip_latent": {+ "class_type": "SetLatentNoiseMask",+ "inputs": {+ "samples": [+ "ip_encode",+ 0+ ],+ "mask": [+ "ip_grow",+ 0+ ]+ },+ "_meta": {+ "title": "Only the painted area is redrawn"+ }+ },+ "ip_paste": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "ip_scale",+ 0+ ],+ "source": [+ "8",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "ip_grow",+ 0+ ]+ },+ "_meta": {+ "title": "Result pasted over the photo"+ }+ }+}diff --git a/apps/meme/app.json b/apps/meme/app.jsonindex 943c9a1..4935772 100644--- a/apps/meme/app.json+++ b/apps/meme/app.json@@ -50,62 +50,199 @@]},{- "id": "width",+ "id": "aspect","type": "select",- "label": "Width",- "default": 1024,+ "label": "Aspect ratio",+ "default": "1:1",+ "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.","options": [{- "value": 768,- "label": "768"+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1024+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1024+ }+ ]},{- "value": 1024,- "label": "1024"+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1152+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 864+ }+ ]},{- "value": 1280,- "label": "1280"+ "value": "3:4",+ "label": "3:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 864+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1152+ }+ ]},{- "value": 1536,- "label": "1536"- }- ],- "bind": [+ "value": "3:2",+ "label": "3:2",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1248+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 832+ }+ ]+ },+ {+ "value": "2:3",+ "label": "2:3",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 832+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1248+ }+ ]+ },+ {+ "value": "5:4",+ "label": "5:4",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1120+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 896+ }+ ]+ },+ {+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 896+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1344+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 768+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 1344+ }+ ]+ },{- "node": "18:6",- "field": "width"+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "18:6",+ "field": "width",+ "value": 1536+ },+ {+ "node": "18:6",+ "field": "height",+ "value": 640+ }+ ]}- ]+ ],+ "bind": []},{- "id": "height",+ "id": "resolution","type": "select",- "label": "Height",- "default": 1024,+ "label": "Resolution",+ "default": 1,+ "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.","options": [{- "value": 768,- "label": "768"- },- {- "value": 1024,- "label": "1024"+ "value": 1,+ "label": "1K"},{- "value": 1280,- "label": "1280"+ "value": 1.5,+ "label": "1.5K"},{- "value": 1536,- "label": "1536"+ "value": 2,+ "label": "2K"}],"bind": [{- "node": "18:6",- "field": "height"+ "node": "ff_res",+ "field": "scale_by"}]},diff --git a/apps/meme/workflow.api.json b/apps/meme/workflow.api.jsonindex 792ffe7..11e2b56 100644--- a/apps/meme/workflow.api.json+++ b/apps/meme/workflow.api.json@@ -98,7 +98,7 @@0],"latent_image": [- "18:6",+ "ff_res",0],"seed": 3,@@ -148,5 +148,19 @@"_meta": {"title": "Text (Multiline)"}+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "18:6",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }}}diff --git a/apps/moodboard/app.json b/apps/moodboard/app.jsonnew file mode 100644index 0000000..ef226e5--- /dev/null+++ b/apps/moodboard/app.json@@ -0,0 +1,348 @@+{+ "$schema": "../../schema/app.schema.json",+ "id": "moodboard",+ "name": "Moodboard",+ "section": "image",+ "summary": "Anything you describe, in the look three reference images share: palette, light, texture and mood, like a moodboard (FLUX 3 Image Klein).",+ "higgsfield_feature": "Soul Moodboard",+ "pack": "image-flux3",+ "status": "ready",+ "workflow": "workflow.api.json",+ "source": {+ "template": "image_flux3_klein_distilled_image_edit.json",+ "comfyui": "0.42.0",+ "notes": "apps/edit's pipeline with three LoadImage nodes on ReferenceMultiLatent (images.image0-2, half a megapixel each: the look matters, not their detail) and an empty latent of its own. Higgsfield's preset moodboards are covered by create-image's Look select."+ },+ "inputs": [+ {+ "id": "style1",+ "type": "image",+ "label": "Reference 1",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "help": "Three images with the look you want; their subjects are not copied.",+ "bind": [+ {+ "node": "11",+ "field": "image"+ }+ ]+ },+ {+ "id": "style2",+ "type": "image",+ "label": "Reference 2",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "12",+ "field": "image"+ }+ ]+ },+ {+ "id": "style3",+ "type": "image",+ "label": "Reference 3",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "13",+ "field": "image"+ }+ ]+ },+ {+ "id": "prompt",+ "type": "textarea",+ "label": "Prompt",+ "required": true,+ "default": "a man waiting at a bus stop in the rain",+ "bind": [+ {+ "node": "4",+ "field": "text",+ "template": "{prompt}. Make it in the visual style that <ref_image_0>, <ref_image_1> and <ref_image_2> share: the same color palette, light, contrast, texture, kind of camera and mood. Do not copy their subjects or their composition."+ }+ ]+ },+ {+ "id": "aspect",+ "type": "select",+ "label": "Aspect ratio",+ "default": "3:2",+ "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.",+ "options": [+ {+ "value": "1:1",+ "label": "1:1",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1024+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1024+ }+ ]+ },+ {+ "value": "4:3",+ "label": "4:3",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1152+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 864+ }+ ]+ },+ {+ "value": "3:4",+ "label": "3:4",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 864+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1152+ }+ ]+ },+ {+ "value": "3:2",+ "label": "3:2",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1248+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 832+ }+ ]+ },+ {+ "value": "2:3",+ "label": "2:3",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 832+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1248+ }+ ]+ },+ {+ "value": "5:4",+ "label": "5:4",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1120+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 896+ }+ ]+ },+ {+ "value": "4:5",+ "label": "4:5",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 896+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1120+ }+ ]+ },+ {+ "value": "16:9",+ "label": "16:9",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1344+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 768+ }+ ]+ },+ {+ "value": "9:16",+ "label": "9:16",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 768+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 1344+ }+ ]+ },+ {+ "value": "21:9",+ "label": "21:9",+ "sets": [+ {+ "node": "ff_size",+ "field": "width",+ "value": 1536+ },+ {+ "node": "ff_size",+ "field": "height",+ "value": 640+ }+ ]+ }+ ],+ "bind": []+ },+ {+ "id": "resolution",+ "type": "select",+ "label": "Resolution",+ "default": 1,+ "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.",+ "options": [+ {+ "value": 1,+ "label": "1K"+ },+ {+ "value": 1.5,+ "label": "1.5K"+ },+ {+ "value": 2,+ "label": "2K"+ }+ ],+ "bind": [+ {+ "node": "ff_res",+ "field": "scale_by"+ }+ ]+ },+ {+ "id": "steps",+ "type": "slider",+ "label": "Steps",+ "min": 8,+ "max": 30,+ "step": 1,+ "default": 16,+ "bind": [+ {+ "node": "7",+ "field": "steps"+ }+ ]+ },+ {+ "id": "seed",+ "type": "seed",+ "label": "Seed",+ "default": -1,+ "help": "-1 picks a random seed",+ "bind": [+ {+ "node": "7",+ "field": "seed"+ }+ ]+ }+ ],+ "outputs": [+ {+ "node": "9",+ "type": "image",+ "label": "Result"+ }+ ],+ "models": [+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",+ "dir": "diffusion_models",+ "gb": 5.83,+ "phase": "denoise",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",+ "dir": "text_encoders",+ "gb": 4.86,+ "phase": "encode",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "vae/flux2-vae.safetensors",+ "dir": "vae",+ "gb": 0.34,+ "phase": "decode",+ "gated": true,+ "license": "FLUX Kommunity License"+ }+ ],+ "credits": [+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"+ ],+ "test": {+ "style1": "test/portrait.png",+ "style2": "test/second.png",+ "style3": "test/third.png",+ "prompt": "a lighthouse"+ }+}diff --git a/apps/moodboard/workflow.api.json b/apps/moodboard/workflow.api.jsonnew file mode 100644index 0000000..da38632--- /dev/null+++ b/apps/moodboard/workflow.api.json@@ -0,0 +1,202 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",+ "type": "flux3",+ "device": "default"+ },+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "3": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "_meta": {+ "title": "Load VAE"+ }+ },+ "4": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": "Change the jacket to deep red leather, keep everything else the same."+ },+ "_meta": {+ "title": "Positive Prompt"+ }+ },+ "7": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "17",+ 0+ ],+ "negative": [+ "17",+ 1+ ],+ "latent_image": [+ "ff_res",+ 0+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "KSampler"+ }+ },+ "8": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "7",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "9": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "8",+ 0+ ],+ "filename_prefix": "freefield/moodboard"+ },+ "_meta": {+ "title": "Save Image"+ }+ },+ "11": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "woman_gold_earring_teal_top_portrait.png"+ },+ "_meta": {+ "title": "Load Image"+ }+ },+ "17": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "4",+ 0+ ],+ "negative": [+ "32",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 0.5,+ "images.image1": [+ "12",+ 0+ ],+ "images.image2": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Set Reference Multi Latent"+ }+ },+ "32": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Conditioning Zero Out"+ }+ },+ "12": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "second.png"+ },+ "_meta": {+ "title": "Second reference"+ }+ },+ "13": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "third.png"+ },+ "_meta": {+ "title": "Third reference"+ }+ },+ "ff_size": {+ "class_type": "EmptyFlux2LatentImage",+ "inputs": {+ "width": 1024,+ "height": 1024,+ "batch_size": 1+ },+ "_meta": {+ "title": "Aspect ratio"+ }+ },+ "ff_res": {+ "class_type": "LatentUpscaleBy",+ "inputs": {+ "samples": [+ "ff_size",+ 0+ ],+ "upscale_method": "nearest-exact",+ "scale_by": 1.0+ },+ "_meta": {+ "title": "Resolution (1K, 1.5K, 2K)"+ }+ }+}diff --git a/apps/photodump/app.json b/apps/photodump/app.jsonnew file mode 100644index 0000000..8d58251--- /dev/null+++ b/apps/photodump/app.json@@ -0,0 +1,301 @@+{+ "$schema": "../../schema/app.schema.json",+ "id": "photodump",+ "name": "Photodump",+ "section": "image",+ "summary": "Four photos of you from one photo, in four scenes of an aesthetic, like a feed photo dump, in one run (FLUX 3 Image Klein).",+ "higgsfield_feature": "Photodump",+ "pack": "image-flux3",+ "status": "ready",+ "workflow": "workflow.api.json",+ "source": {+ "template": "image_flux3_klein_distilled_image_edit.json",+ "comfyui": "0.42.0",+ "notes": "apps/edit's pipeline four times over the same photo: four prompts (the aesthetic select writes all four, nodes 4 and pd_t2-4), four ReferenceMultiLatent and four samplers with the same seed, joined with ImageBatch into one SaveImage."+ },+ "inputs": [+ {+ "id": "photo",+ "type": "image",+ "label": "Your photo",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "11",+ "field": "image"+ }+ ]+ },+ {+ "id": "aesthetic",+ "type": "select",+ "label": "Aesthetic",+ "default": "City nights",+ "help": "Four photos, one per scene of the aesthetic, all with the person from your photo.",+ "options": [+ {+ "value": "City nights",+ "label": "City nights",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a neon-lit street at night, rain on the pavement. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> at a rooftop bar at dusk with the city lights behind. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on an empty subway platform at night, a train arriving with motion blur. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> in a diner booth late at night, a milkshake on the table, direct flash. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ },+ {+ "value": "Beach trip",+ "label": "Beach trip",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> walking barefoot along the shoreline at golden hour, holding sandals. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> at a beach bar table with a fresh coconut drink, laughing. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a small boat with the sea behind, wind in the hair. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> in a sunny old-town street with whitewashed walls, eating an ice cream. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ },+ {+ "value": "Cozy home",+ "label": "Cozy home",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> curled up on a couch under a knitted blanket, reading a book. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> cooking pasta in a small kitchen, steam rising. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> holding a coffee mug by a rainy window in the morning. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> sitting on the floor among house plants, sorting vinyl records. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ },+ {+ "value": "Weekend outdoors",+ "label": "Weekend outdoors",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a forest hiking trail with a backpack. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> at a picnic on the grass in a park, friends out of focus. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> riding a bicycle along a lakeside path. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> by a campfire at dusk, wrapped in a flannel shirt. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ },+ {+ "value": "Mexico City",+ "label": "Mexico City",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a colorful street in Coyoacán with papel picado overhead. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a trajinera boat in Xochimilco, flowers on its arch. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> at a market stall full of fruit, holding a mango on a stick. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> on a terrace at sunset with the city behind. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ },+ {+ "value": "Flash editorial",+ "label": "Flash editorial",+ "sets": [+ {+ "node": "4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> against a white wall, full body, direct flash. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t2",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> in a close-up with direct flash and a hard shadow behind. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t3",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> sitting on a stool, legs crossed, direct flash. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ },+ {+ "node": "pd_t4",+ "field": "text",+ "value": "A candid phone photo of the same person as in <ref_image_0> looking over the shoulder against a red wall, direct flash. Keep the face, hairstyle and build identical. Natural skin, a real snapshot, no text, no logos. {details}"+ }+ ]+ }+ ],+ "bind": []+ },+ {+ "id": "details",+ "type": "text",+ "label": "Extra direction",+ "default": "",+ "help": "Added at the end of each of the four prompts.",+ "bind": []+ },+ {+ "id": "steps",+ "type": "slider",+ "label": "Steps",+ "min": 8,+ "max": 30,+ "step": 1,+ "default": 16,+ "bind": [+ {+ "node": "7",+ "field": "steps"+ },+ {+ "node": "pd_k2",+ "field": "steps"+ },+ {+ "node": "pd_k3",+ "field": "steps"+ },+ {+ "node": "pd_k4",+ "field": "steps"+ }+ ]+ },+ {+ "id": "seed",+ "type": "seed",+ "label": "Seed",+ "default": -1,+ "help": "-1 picks a random seed",+ "bind": [+ {+ "node": "7",+ "field": "seed"+ },+ {+ "node": "pd_k2",+ "field": "seed"+ },+ {+ "node": "pd_k3",+ "field": "seed"+ },+ {+ "node": "pd_k4",+ "field": "seed"+ }+ ]+ }+ ],+ "outputs": [+ {+ "node": "9",+ "type": "image",+ "label": "Photos"+ }+ ],+ "models": [+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",+ "dir": "diffusion_models",+ "gb": 5.83,+ "phase": "denoise",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",+ "dir": "text_encoders",+ "gb": 4.86,+ "phase": "encode",+ "gated": true,+ "license": "FLUX Kommunity License"+ },+ {+ "repo": "black-forest-labs/flux-3-image-klein-comfy",+ "file": "vae/flux2-vae.safetensors",+ "dir": "vae",+ "gb": 0.34,+ "phase": "decode",+ "gated": true,+ "license": "FLUX Kommunity License"+ }+ ],+ "credits": [+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"+ ],+ "test": {+ "photo": "test/portrait.png"+ }+}diff --git a/apps/photodump/workflow.api.json b/apps/photodump/workflow.api.jsonnew file mode 100644index 0000000..c7e7f58--- /dev/null+++ b/apps/photodump/workflow.api.json@@ -0,0 +1,466 @@+{+ "1": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",+ "type": "flux3",+ "device": "default"+ },+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "3": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "_meta": {+ "title": "Load VAE"+ }+ },+ "4": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": "Change the jacket to deep red leather, keep everything else the same."+ },+ "_meta": {+ "title": "Positive Prompt"+ }+ },+ "7": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "17",+ 0+ ],+ "negative": [+ "17",+ 1+ ],+ "latent_image": [+ "17",+ 2+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "KSampler"+ }+ },+ "8": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "7",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "9": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "pd_b4",+ 0+ ],+ "filename_prefix": "freefield/photodump"+ },+ "_meta": {+ "title": "Save Image"+ }+ },+ "11": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "woman_gold_earring_teal_top_portrait.png"+ },+ "_meta": {+ "title": "Load Image"+ }+ },+ "17": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "4",+ 0+ ],+ "negative": [+ "32",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1+ },+ "_meta": {+ "title": "Set Reference Multi Latent"+ }+ },+ "32": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Conditioning Zero Out"+ }+ },+ "pd_t2": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": ""+ },+ "_meta": {+ "title": "Prompt 2"+ }+ },+ "pd_z2": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "pd_t2",+ 0+ ]+ }+ },+ "pd_r2": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "pd_t2",+ 0+ ],+ "negative": [+ "pd_z2",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1+ },+ "_meta": {+ "title": "Reference 2"+ }+ },+ "pd_k2": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "pd_r2",+ 0+ ],+ "negative": [+ "pd_r2",+ 1+ ],+ "latent_image": [+ "pd_r2",+ 2+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "Sampler 2"+ }+ },+ "pd_d2": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "pd_k2",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ }+ },+ "pd_t3": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": ""+ },+ "_meta": {+ "title": "Prompt 3"+ }+ },+ "pd_z3": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "pd_t3",+ 0+ ]+ }+ },+ "pd_r3": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "pd_t3",+ 0+ ],+ "negative": [+ "pd_z3",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1+ },+ "_meta": {+ "title": "Reference 3"+ }+ },+ "pd_k3": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "pd_r3",+ 0+ ],+ "negative": [+ "pd_r3",+ 1+ ],+ "latent_image": [+ "pd_r3",+ 2+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "Sampler 3"+ }+ },+ "pd_d3": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "pd_k3",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ }+ },+ "pd_t4": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "clip": [+ "2",+ 0+ ],+ "text": ""+ },+ "_meta": {+ "title": "Prompt 4"+ }+ },+ "pd_z4": {+ "class_type": "ConditioningZeroOut",+ "inputs": {+ "conditioning": [+ "pd_t4",+ 0+ ]+ }+ },+ "pd_r4": {+ "class_type": "ReferenceMultiLatent",+ "inputs": {+ "positive": [+ "pd_t4",+ 0+ ],+ "negative": [+ "pd_z4",+ 0+ ],+ "vae": [+ "3",+ 0+ ],+ "images.image0": [+ "11",+ 0+ ],+ "resolution": "resize",+ "resolution.megapixels": 1+ },+ "_meta": {+ "title": "Reference 4"+ }+ },+ "pd_k4": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "1",+ 0+ ],+ "positive": [+ "pd_r4",+ 0+ ],+ "negative": [+ "pd_r4",+ 1+ ],+ "latent_image": [+ "pd_r4",+ 2+ ],+ "seed": 563228241303057,+ "steps": 16,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1+ },+ "_meta": {+ "title": "Sampler 4"+ }+ },+ "pd_d4": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "pd_k4",+ 0+ ],+ "vae": [+ "3",+ 0+ ]+ }+ },+ "pd_b2": {+ "class_type": "ImageBatch",+ "inputs": {+ "image1": [+ "8",+ 0+ ],+ "image2": [+ "pd_d2",+ 0+ ]+ }+ },+ "pd_b3": {+ "class_type": "ImageBatch",+ "inputs": {+ "image1": [+ "pd_b2",+ 0+ ],+ "image2": [+ "pd_d3",+ 0+ ]+ }+ },+ "pd_b4": {+ "class_type": "ImageBatch",+ "inputs": {+ "image1": [+ "pd_b3",+ 0+ ],+ "image2": [+ "pd_d4",+ 0+ ]+ },+ "_meta": {+ "title": "The four photos"+ }+ }+}diff --git a/apps/relight/app.json b/apps/relight/app.jsonindex 608efed..0c1f92b 100644--- a/apps/relight/app.json+++ b/apps/relight/app.json@@ -6,7 +6,7 @@"pack": "image-qwen-edit","status": "ready","higgsfield_feature": "Relight",- "summary": "Relights a photo: golden hour, neon, studio softbox or any light you describe, keeping the scene intact.",+ "summary": "Relights a photo with a preset light or your own direction, softness, brightness and color, keeping the scene intact.","workflow": "workflow.api.json","source": {"template": "image_qwen_image_edit_2509_relight.json",@@ -35,6 +35,10 @@"label": "Light","default": "golden hour sunlight through a low window, warm color temperature, long soft shadows","options": [+ {+ "value": "a single light source",+ "label": "Single light (use the controls)"+ },{"value": "golden hour sunlight through a low window, warm color temperature, long soft shadows","label": "Golden hour"@@ -68,10 +72,147 @@{"node": "15","field": "value",- "template": " relight the image using {light}. {details}"+ "template": " relight the image using {light}{direction}{quality}{brightness}{color}. {details}"}]},+ {+ "id": "direction",+ "type": "select",+ "label": "Direction",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": ", the light coming from above",+ "label": "Above"+ },+ {+ "value": ", the light coming from the front",+ "label": "Front"+ },+ {+ "value": ", the light coming from the left",+ "label": "Left"+ },+ {+ "value": ", the light coming from the right",+ "label": "Right"+ },+ {+ "value": ", the light coming from behind the subject",+ "label": "Behind"+ },+ {+ "value": ", the light coming from below",+ "label": "Below"+ }+ ],+ "bind": [],+ "help": "Where the light comes from, as seen in the photo."+ },+ {+ "id": "quality",+ "type": "select",+ "label": "Softness",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": ", soft light with blurred shadow edges",+ "label": "Soft"+ },+ {+ "value": ", hard light with crisp shadow edges",+ "label": "Hard"+ }+ ],+ "bind": []+ },+ {+ "id": "brightness",+ "type": "select",+ "label": "Brightness",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": ", dim and low-key",+ "label": "Dim"+ },+ {+ "value": ", bright and high-key",+ "label": "Bright"+ }+ ],+ "bind": []+ },+ {+ "id": "color",+ "type": "select",+ "label": "Light color",+ "default": "",+ "options": [+ {+ "value": "",+ "label": "Any"+ },+ {+ "value": ", neutral white colored light",+ "label": "White"+ },+ {+ "value": ", warm tungsten colored light",+ "label": "Warm"+ },+ {+ "value": ", cool blue-white colored light",+ "label": "Cool"+ },+ {+ "value": ", red colored light",+ "label": "Red"+ },+ {+ "value": ", orange colored light",+ "label": "Orange"+ },+ {+ "value": ", yellow colored light",+ "label": "Yellow"+ },+ {+ "value": ", green colored light",+ "label": "Green"+ },+ {+ "value": ", cyan colored light",+ "label": "Cyan"+ },+ {+ "value": ", blue colored light",+ "label": "Blue"+ },+ {+ "value": ", purple colored light",+ "label": "Purple"+ },+ {+ "value": ", pink colored light",+ "label": "Pink"+ }+ ],+ "bind": []+ },{"id": "details","type": "textarea",diff --git a/docs/vram-map.json b/docs/vram-map.jsonindex 84496c3..d4a7eb8 100644--- a/docs/vram-map.json+++ b/docs/vram-map.json@@ -340,6 +340,32 @@"measured_peak_gb": 12.92,"measured_on": "H100 · 20261024-164909-h100"},+ {+ "id": "character-3",+ "name": "Character (3 Photos)",+ "section": "image",+ "pack": "image-flux3",+ "status": "ready",+ "whole_gb": 11.03,+ "phases_gb": {+ "encode": 4.86,+ "denoise": 5.83,+ "denoise2": 0.0,+ "decode": 0.34,+ "aux": 0.0+ },+ "largest_phase": "denoise",+ "largest_phase_gb": 5.83,+ "optional_gb": 0,+ "biggest_file": {+ "name": "flux3-image-klein-int8-convrot.safetensors",+ "gb": 5.83+ },+ "verdict_24gb": "fits whole",+ "modal_gpu": "L4 / A10G (24 GB)",+ "measured_peak_gb": null,+ "measured_on": null+ },{"id": "character-swap","name": "Character Swap",@@ -834,6 +860,32 @@"measured_peak_gb": 11.5,"measured_on": "H100 · 20261023-225832-h100"},+ {+ "id": "inpaint",+ "name": "Inpaint",+ "section": "image",+ "pack": "image-flux3",+ "status": "ready",+ "whole_gb": 11.03,+ "phases_gb": {+ "encode": 4.86,+ "denoise": 5.83,+ "denoise2": 0.0,+ "decode": 0.34,+ "aux": 0.0+ },+ "largest_phase": "denoise",+ "largest_phase_gb": 5.83,+ "optional_gb": 0,+ "biggest_file": {+ "name": "flux3-image-klein-int8-convrot.safetensors",+ "gb": 5.83+ },+ "verdict_24gb": "fits whole",+ "modal_gpu": "L4 / A10G (24 GB)",+ "measured_peak_gb": null,+ "measured_on": null+ },{"id": "j-magazine","name": "J-Magazine",@@ -1042,6 +1094,32 @@"measured_peak_gb": 11.3,"measured_on": "H100 · 20261024-164909-h100"},+ {+ "id": "moodboard",+ "name": "Moodboard",+ "section": "image",+ "pack": "image-flux3",+ "status": "ready",+ "whole_gb": 11.03,+ "phases_gb": {+ "encode": 4.86,+ "denoise": 5.83,+ "denoise2": 0.0,+ "decode": 0.34,+ "aux": 0.0+ },+ "largest_phase": "denoise",+ "largest_phase_gb": 5.83,+ "optional_gb": 0,+ "biggest_file": {+ "name": "flux3-image-klein-int8-convrot.safetensors",+ "gb": 5.83+ },+ "verdict_24gb": "fits whole",+ "modal_gpu": "L4 / A10G (24 GB)",+ "measured_peak_gb": null,+ "measured_on": null+ },{"id": "mural","name": "Street Mural",@@ -1198,6 +1276,32 @@"measured_peak_gb": 13.02,"measured_on": "H100 · 20261024-164909-h100"},+ {+ "id": "photodump",+ "name": "Photodump",+ "section": "image",+ "pack": "image-flux3",+ "status": "ready",+ "whole_gb": 11.03,+ "phases_gb": {+ "encode": 4.86,+ "denoise": 5.83,+ "denoise2": 0.0,+ "decode": 0.34,+ "aux": 0.0+ },+ "largest_phase": "denoise",+ "largest_phase_gb": 5.83,+ "optional_gb": 0,+ "biggest_file": {+ "name": "flux3-image-klein-int8-convrot.safetensors",+ "gb": 5.83+ },+ "verdict_24gb": "fits whole",+ "modal_gpu": "L4 / A10G (24 GB)",+ "measured_peak_gb": null,+ "measured_on": null+ },{"id": "pixel-game","name": "Pixel Game",diff --git a/docs/vram-map.md b/docs/vram-map.mdindex 8e3e809..b63bfc8 100644--- a/docs/vram-map.md+++ b/docs/vram-map.md@@ -25,6 +25,7 @@ is not the least the app needs.| `burning-sunset` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) || `cafe-60s` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.1 GB (H100) || `character` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.9 GB (H100) |+| `character-3` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured || `character-swap` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.9 GB (H100) || `cinema-studio` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 9.8 GB (L40S) || `color-grade` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) |@@ -44,6 +45,7 @@ is not the least the app needs.| `graffiti-ad` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.9 GB (H100) || `headshot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 13.0 GB (H100) || `image-effects` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.5 GB (H100) |+| `inpaint` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured || `j-magazine` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.3 GB (H100) || `j-poster` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.5 GB (H100) || `japanese-show` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 13.0 GB (H100) |@@ -52,12 +54,14 @@ is not the least the app needs.| `mascot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 24.0 GB (H100) || `meme` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.8 GB (L40S) || `micro-beasts` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.3 GB (H100) |+| `moodboard` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured || `mural` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) || `outfit-shot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 13.0 GB (H100) || `outfit-swap` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.9 GB (H100) || `outfit-vending` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.9 GB (H100) || `packshot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) || `paint-app` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 13.0 GB (H100) |+| `photodump` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured || `pixel-game` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) || `plushie` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 11.2 GB (H100) || `poster` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.0 GB (H100) |diff --git a/lab/assets/mask-face-a-jacket.png b/lab/assets/mask-face-a-jacket.pngnew file mode 100644index 0000000..16ffdb0Binary files /dev/null and b/lab/assets/mask-face-a-jacket.png differdiff --git a/lab/cases.json b/lab/cases.jsonindex 5609164..00ac995 100644--- a/lab/cases.json+++ b/lab/cases.json@@ -61,9 +61,9 @@"note": "Vocal reference for the talking avatar (MiniMax Music 3, original lyrics)."},{"id": "cmp-fisher-zi", "app": "z-image", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five read as photos; Klein has the most skin and net detail, Z-Image is flatter."},- {"id": "cmp-fisher-kl", "app": "create-image", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-fisher-kl", "app": "create-image", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five read as photos; Klein has the most skin and net detail, Z-Image is flatter."},- {"id": "cmp-fisher-klx", "showcase": true, "app": "create-image", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-fisher-klx", "showcase": true, "app": "create-image", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five read as photos; Klein has the most skin and net detail, Z-Image is flatter."},{"id": "cmp-fisher-kr", "app": "styles", "values": {"prompt": "Candid photo of a 60-year-old fisherman from Veracruz mending a fishing net on a wooden dock at golden hour, weathered skin, gray stubble, faded blue work shirt, gulls in the background, shot on 35mm film", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five read as photos; Klein has the most skin and net detail, Z-Image is flatter."},@@ -71,9 +71,9 @@"note": "Image model comparison (24 Oct), MOSS-Image SFT with its prompt rewrite: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five read as photos; Klein has the most skin and net detail, Z-Image is flatter."},{"id": "cmp-perfume-zi", "app": "z-image", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Krea 2 left the label blank; the other four wrote NOIR."},- {"id": "cmp-perfume-kl", "app": "create-image", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-perfume-kl", "app": "create-image", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Krea 2 left the label blank; the other four wrote NOIR."},- {"id": "cmp-perfume-klx", "app": "create-image", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-perfume-klx", "app": "create-image", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Krea 2 left the label blank; the other four wrote NOIR."},{"id": "cmp-perfume-kr", "app": "styles", "values": {"prompt": "Studio product photo of a square glass perfume bottle with a gold cap and a black square label that reads \"NOIR\" in white capitals, standing on wet black slate, rim light from behind, water droplets on the glass", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Krea 2 left the label blank; the other four wrote NOIR."},@@ -81,9 +81,9 @@"note": "Image model comparison (24 Oct), MOSS-Image SFT with its prompt rewrite: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Krea 2 left the label blank; the other four wrote NOIR."},{"id": "cmp-table-zi", "app": "z-image", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image drew four apples and Krea 2 an angled view; Klein (both) and MOSS kept three apples, five lemons and the top-down view."},- {"id": "cmp-table-kl", "app": "create-image", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-table-kl", "app": "create-image", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image drew four apples and Krea 2 an angled view; Klein (both) and MOSS kept three apples, five lemons and the top-down view."},- {"id": "cmp-table-klx", "app": "create-image", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-table-klx", "app": "create-image", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image drew four apples and Krea 2 an angled view; Klein (both) and MOSS kept three apples, five lemons and the top-down view."},{"id": "cmp-table-kr", "app": "styles", "values": {"prompt": "Top-down photo of a wooden kitchen table: exactly three red apples on the left, a blue ceramic bowl holding five lemons in the center, a folded newspaper on the right, a silver fork lying across the bowl, soft morning light", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image drew four apples and Krea 2 an angled view; Klein (both) and MOSS kept three apples, five lemons and the top-down view."},@@ -91,9 +91,9 @@"note": "Image model comparison (24 Oct), MOSS-Image SFT with its prompt rewrite: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image drew four apples and Krea 2 an angled view; Klein (both) and MOSS kept three apples, five lemons and the top-down view."},{"id": "cmp-json-zi", "app": "z-image", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image printed JSON keys (\"who\", \"where\", \"above the conter\") on the sign; the other four read it as a scene with TACOS EL GÜERO in red neon."},- {"id": "cmp-json-kl", "app": "create-image", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-json-kl", "app": "create-image", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image printed JSON keys (\"who\", \"where\", \"above the conter\") on the sign; the other four read it as a scene with TACOS EL GÜERO in red neon."},- {"id": "cmp-json-klx", "app": "create-image", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-json-klx", "app": "create-image", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image printed JSON keys (\"who\", \"where\", \"above the conter\") on the sign; the other four read it as a scene with TACOS EL GÜERO in red neon."},{"id": "cmp-json-kr", "app": "styles", "values": {"prompt": "{\"scene\": \"a small taqueria at night in Mexico City\", \"subjects\": [{\"who\": \"a taquero in a white apron\", \"action\": \"slicing al pastor from the trompo\", \"position\": \"center\"}, {\"who\": \"two customers\", \"action\": \"waiting at the counter\", \"position\": \"left\"}], \"text\": [{\"content\": \"TACOS EL GÜERO\", \"where\": \"neon sign above the counter\", \"color\": \"red\"}], \"camera\": {\"lens\": \"35mm\", \"angle\": \"eye level\", \"depth_of_field\": \"shallow\"}, \"lighting\": \"warm tungsten light inside, cool blue street light outside\", \"style\": \"documentary photo, natural colors\"}", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image printed JSON keys (\"who\", \"where\", \"above the conter\") on the sign; the other four read it as a scene with TACOS EL GÜERO in red neon."},@@ -101,9 +101,9 @@"note": "Image model comparison (24 Oct), MOSS-Image SFT with its prompt rewrite: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): Z-Image printed JSON keys (\"who\", \"where\", \"above the conter\") on the sign; the other four read it as a scene with TACOS EL GÜERO in red neon."},{"id": "cmp-poster-zi", "app": "z-image", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five wrote both lines; Krea 2 and MOSS lost the two-color risograph look; Klein with the upsampler is closest."},- {"id": "cmp-poster-kl", "app": "create-image", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-poster-kl", "app": "create-image", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five wrote both lines; Krea 2 and MOSS lost the two-color risograph look; Klein with the upsampler is closest."},- {"id": "cmp-poster-klx", "app": "create-image", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-poster-klx", "app": "create-image", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five wrote both lines; Krea 2 and MOSS lost the two-color risograph look; Klein with the upsampler is closest."},{"id": "cmp-poster-kr", "app": "styles", "values": {"prompt": "A minimalist concert poster: the title \"MIDNIGHT TACOS\" in huge bold letters at the top, \"LIVE · FRIDAY 9 PM\" in smaller letters below it, an illustration of a neon taco truck at night, risograph print texture, only hot pink and teal", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five wrote both lines; Krea 2 and MOSS lost the two-color risograph look; Klein with the upsampler is closest."},@@ -111,9 +111,9 @@"note": "Image model comparison (24 Oct), MOSS-Image SFT with its prompt rewrite: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five wrote both lines; Krea 2 and MOSS lost the two-color risograph look; Klein with the upsampler is closest."},{"id": "cmp-fox-zi", "app": "z-image", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "width": 1024, "height": 1024},"note": "Image model comparison (24 Oct), Z-Image Turbo (8 steps): the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five fine; MOSS the most saturated."},- {"id": "cmp-fox-kl", "app": "create-image", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "expand": false, "width": 1024, "height": 1024},+ {"id": "cmp-fox-kl", "app": "create-image", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "expand": false, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein, prompt as written: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five fine; MOSS the most saturated."},- {"id": "cmp-fox-klx", "app": "create-image", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "expand": true, "width": 1024, "height": 1024},+ {"id": "cmp-fox-klx", "app": "create-image", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "expand": true, "aspect": "1:1"},"note": "Image model comparison (24 Oct), FLUX 3 Klein with BFL's 9B upsampler: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five fine; MOSS the most saturated."},{"id": "cmp-fox-kr", "app": "styles", "values": {"prompt": "A loose watercolor illustration of a fox reading a book under an oak tree at dusk, visible brush strokes and paper texture, warm and calm", "aspect": "1:1 (Square)", "enhance": true}, "overrides": [{"node": "30:23", "field": "value", "value": false}],"note": "Image model comparison (24 Oct), Krea 2 Turbo, no style LoRA, its prompt enhancer on: the same prompt on Z-Image Turbo, FLUX 3 Klein (with and without the upsampler), Krea 2 Turbo and MOSS-Image. Verdict (run 20261024-230058-l40s): all five fine; MOSS the most saturated."},@@ -525,6 +525,50 @@{"id": "t2v-trumpet", "showcase": true, "app": "video-t2v", "values": {"prompt": "A street musician plays a trumpet on a rainy night street in New Orleans, neon signs reflected in the wet pavement, the camera slowly pushes in toward him, warm jazz trumpet and soft rain", "duration": 4, "enhance": false}, "note": "Showcase since 24 Oct: the glass in baseline-t2v filled up instead of tipping over (run 20261020-133620-l40s). Sound and picture from one pass: trumpet, rain, a slow push-in."},+ {"id": "aiinf-bold", "app": "ai-influencer", "values": {"kind": "a person with bold, striking, slightly exaggerated features", "gender": "A man", "hair": "Short hair.", "facialhair": "A mustache.", "feature": ""},+ "note": "AI Influencer, character type Bold: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-extreme", "app": "ai-influencer", "values": {"kind": "a person with extremely exaggerated, cartoonish features and proportions, still photographed for real", "gender": "A man", "hair": "Short hair.", "facialhair": "A mustache.", "feature": "", "style": "Wearing a tailored suit."},+ "note": "AI Influencer, character type Extreme: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-insect", "app": "ai-influencer", "values": {"kind": "an anthropomorphic insect character: an insect head with large compound eyes and antennae on a human body", "style": "Wearing gothic black clothes."},+ "note": "AI Influencer, character type Insect: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-frog", "app": "ai-influencer", "values": {"kind": "an anthropomorphic frog character: a green frog head on a human body", "gender": "A man", "hair": "Short hair.", "facialhair": "", "feature": ""},+ "note": "AI Influencer, character type Frog: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-cat", "app": "ai-influencer", "values": {"kind": "an anthropomorphic cat character: a furry cat head on a human body", "style": "Wearing early-2000s Y2K fashion."},+ "note": "AI Influencer, character type Cat: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-dog", "app": "ai-influencer", "values": {"kind": "an anthropomorphic dog character: a dog head with floppy ears on a human body", "gender": "A man", "hair": "Short hair.", "facialhair": "", "feature": "", "style": "Wearing streetwear."},+ "note": "AI Influencer, character type Dog: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-rodent", "app": "ai-influencer", "values": {"kind": "an anthropomorphic capybara character: a capybara head on a human body", "gender": "A man", "hair": "Short hair.", "facialhair": "", "feature": "", "style": "Wearing 1970s retro clothes."},+ "note": "AI Influencer, character type Rodent: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "aiinf-bird", "app": "ai-influencer", "values": {"kind": "an anthropomorphic bird character: a puffin head with a bright beak on a human body", "style": "Wearing sporty athletic clothes."},+ "note": "AI Influencer, character type Bird: the example card of that option. Does the type show and still read as a photo?"},+ {"id": "create-look-disposable", "app": "create-image", "values": {"prompt": "Two friends laughing at a taco stand at night in Mexico City", "expand": false, "look": "Shot on a cheap disposable film camera with its built-in flash: harsh flash, slight vignette, film grain, a warm color cast.", "aspect": "3:2", "resolution": 1.5},+ "note": "Create Image with a look, 3:2 at 1.5K (1872 x 1248): does the look show, and does the scaled latent come out sharp at the new size?"},+ {"id": "create-2k-street", "app": "create-image", "values": {"prompt": "A quiet street in Guanajuato at dawn, colorful houses climbing the hill, a lone cyclist, wet cobblestones", "expand": true, "aspect": "16:9", "resolution": 2},+ "note": "Create Image at 2K, 16:9 (2688 x 1536): sharp at four times the pixels, and how long it takes."},+ {"id": "cinema-studio-western", "app": "cinema-studio", "values": {"prompt": "A lone rider stops at the edge of a canyon and looks back", "genre": " from a western", "era": " set in the 1970s", "lighting": "a strong light behind the subject, a glowing rim and flare", "palette": "earthy ochre, olive and rust tones", "aspect": "21:9"},+ "note": "Cinema Studio with genre, era, lighting and palette, 21:9: do they show, and no camera drawn?"},+ {"id": "relight-controls", "app": "relight", "values": {"image": "@case:ref-face-a", "light": "a single light source", "direction": ", the light coming from the left", "quality": ", hard light with crisp shadow edges", "color": ", red colored light"},+ "note": "Relight with the new controls only: a single hard red light from the left. Does it come from the left?"},++ {"id": "ref-mood-diner", "app": "create-image", "values": {"prompt": "A faded 1970s color film photo of an empty roadside diner: orange vinyl booths, a chrome counter, warm afternoon light through the blinds, heavy grain, slightly soft focus", "expand": false, "aspect": "3:2"},+ "note": "Moodboard reference 1 of 3: a warm, faded 1970s film look."},+ {"id": "ref-mood-wagon", "app": "create-image", "values": {"prompt": "A faded 1970s color film photo of an old station wagon with wood panels parked by a desert motel at sunset, warm orange sky, heavy grain, slightly soft focus", "expand": false, "aspect": "3:2"},+ "note": "Moodboard reference 2 of 3."},+ {"id": "ref-mood-coffee", "app": "create-image", "values": {"prompt": "A faded 1970s color film photo of two hands holding a cup of coffee on a yellow formica table, warm tones, heavy grain, slightly soft focus", "expand": false, "aspect": "3:2"},+ "note": "Moodboard reference 3 of 3."},+ {"id": "moodboard-bus", "showcase": true, "app": "moodboard", "values": {"style1": "@case:ref-mood-diner", "style2": "@case:ref-mood-wagon", "style3": "@case:ref-mood-coffee", "prompt": "a young man waiting at a bus stop in the rain, holding a paper bag"},+ "note": "Moodboard: the three faded 1970s film references give the look, the prompt the subject. Does it take the palette, grain and softness without copying a diner or a car?"},+ {"id": "ref-face-a-side", "app": "character", "values": {"reference": "@case:ref-face-a", "scene": "a three-quarter view portrait turned to her left, plain gray background, soft window light"},+ "note": "Second photo of the same woman for Character (3 Photos)."},+ {"id": "ref-face-a-outdoor", "app": "character", "values": {"reference": "@case:ref-face-a", "scene": "standing in a park in daylight, smiling slightly, half body"},+ "note": "Third photo of the same woman for Character (3 Photos)."},+ {"id": "character-3-cafe", "showcase": true, "app": "character-3", "values": {"photo1": "@case:ref-face-a", "photo2": "@case:ref-face-a-side", "photo3": "@case:ref-face-a-outdoor", "scene": "ordering a coffee at a café counter, morning light, seen from the side"},+ "note": "Character (3 Photos): is she the same woman as in the three photos, from a new angle?"},+ {"id": "photodump-city", "showcase": true, "app": "photodump", "values": {"photo": "@case:ref-face-a", "aesthetic": "City nights"},+ "note": "Photodump, City nights: four photos of the same woman in four night scenes. Same face in all four?"},+ {"id": "inpaint-jacket", "showcase": true, "app": "inpaint", "values": {"image": "@case:ref-face-a", "mask": "asset:mask-face-a-jacket.png", "instruction": "a red leather jacket over a white t-shirt"},+ "note": "Inpaint: only the painted jacket changes (lab/assets/mask-face-a-jacket.png, drawn over ref-face-a). Face, hair and wall untouched, and no seam at the edge?"},+{"id": "ref-tpl-sketch", "app": "z-image", "values": {"prompt": "A rough pencil sketch on white paper of a cat sitting on a windowsill next to a potted plant, loose lines, no color", "width": 1024, "height": 1024},"note": "Reference sketch for Sketch to Real."},{"id": "ref-tpl-sign", "app": "z-image", "values": {"prompt": "Photo of a small bakery storefront with a wooden sign above the door that reads OPEN in bold white letters, daylight, photorealistic", "width": 1280, "height": 768},@@ -658,8 +702,8 @@"note": "Idol. Stage, confetti, pose."},{"id": "tpl-expand-image", "showcase": true, "app": "expand-image", "values": {"image": "@case:ref-fx-lake", "direction": "out"},"note": "Expand Image. Does the border continue the lake, rock and sky, with no seam or gray left?"},- {"id": "tpl-ai-influencer", "showcase": true, "app": "ai-influencer", "values": {"niche": "fitness influencer stretching on a rooftop at sunrise in workout clothes"},- "note": "AI Influencer. A believable person, not a glossy render?"},+ {"id": "tpl-ai-influencer", "showcase": true, "app": "ai-influencer", "values": {},+ "note": "AI Influencer. A believable person, not a glossy render? The traits picked show?"},{"id": "tpl-bullet-time-scene", "showcase": true, "app": "bullet-time-scene", "values": {"image": "@case:ref-fx-jump-plain", "subject": "a parkour athlete in a black t-shirt leaping between two rooftops"},"note": "Bullet Time Scene. Does the camera orbit while the athlete and the city stay frozen?"},{"id": "tpl-bullet-time-white", "showcase": true, "app": "bullet-time-white", "values": {"image": "@case:ref-character", "subject": "a man in a red jacket, jeans and white sneakers"},diff --git a/packs/image-flux3.json b/packs/image-flux3.jsonindex d55fe2e..2411756 100644--- a/packs/image-flux3.json+++ b/packs/image-flux3.json@@ -8,6 +8,7 @@"burning-sunset","cafe-60s","character",+ "character-3","character-swap","cinema-studio","color-grade",@@ -28,6 +29,7 @@"graffiti-ad","headshot","image-effects",+ "inpaint","j-magazine","j-poster","japanese-show",@@ -36,12 +38,14 @@"mascot","meme","micro-beasts",+ "moodboard","mural","outfit-shot","outfit-swap","outfit-vending","packshot","paint-app",+ "photodump","pixel-game","plushie","poster",@@ -87,6 +91,7 @@"burning-sunset","cafe-60s","character",+ "character-3","character-swap","cinema-studio","color-grade",@@ -107,6 +112,7 @@"graffiti-ad","headshot","image-effects",+ "inpaint","j-magazine","j-poster","japanese-show",@@ -115,12 +121,14 @@"mascot","meme","micro-beasts",+ "moodboard","mural","outfit-shot","outfit-swap","outfit-vending","packshot","paint-app",+ "photodump","pixel-game","plushie","poster",@@ -163,6 +171,7 @@"burning-sunset","cafe-60s","character",+ "character-3","character-swap","cinema-studio","color-grade",@@ -183,6 +192,7 @@"graffiti-ad","headshot","image-effects",+ "inpaint","j-magazine","j-poster","japanese-show",@@ -191,12 +201,14 @@"mascot","meme","micro-beasts",+ "moodboard","mural","outfit-shot","outfit-swap","outfit-vending","packshot","paint-app",+ "photodump","pixel-game","plushie","poster",@@ -227,6 +239,7 @@"burning-sunset","cafe-60s","character",+ "character-3","character-swap","cinema-studio","color-grade",@@ -247,6 +260,7 @@"graffiti-ad","headshot","image-effects",+ "inpaint","j-magazine","j-poster","japanese-show",@@ -255,12 +269,14 @@"mascot","meme","micro-beasts",+ "moodboard","mural","outfit-shot","outfit-swap","outfit-vending","packshot","paint-app",+ "photodump","pixel-game","plushie","poster",diff --git a/packs/index.json b/packs/index.jsonindex 629cd06..2718296 100644--- a/packs/index.json+++ b/packs/index.json@@ -31,6 +31,7 @@"burning-sunset","cafe-60s","character",+ "character-3","character-swap","cinema-studio","color-grade",@@ -51,6 +52,7 @@"graffiti-ad","headshot","image-effects",+ "inpaint","j-magazine","j-poster","japanese-show",@@ -59,12 +61,14 @@"mascot","meme","micro-beasts",+ "moodboard","mural","outfit-shot","outfit-swap","outfit-vending","packshot","paint-app",+ "photodump","pixel-game","plushie","poster",diff --git a/schema/app.schema.json b/schema/app.schema.jsonindex 1a70f3d..90b346d 100644--- a/schema/app.schema.json+++ b/schema/app.schema.json@@ -121,6 +121,10 @@"type": "boolean","description": "Select only. lab/publish.py keeps one example per option and the UI shows the options as cards with those examples (the effects picker)."},+ "paint": {+ "type": "string",+ "description": "Image inputs only: the id of the image input this one is painted over in the web UI (inpaint). The upload is a white-on-black mask of that image."+ },"limits": {"type": "object","additionalProperties": false,diff --git a/server/registry.ts b/server/registry.tsindex ccf89aa..37a3f22 100644--- a/server/registry.ts+++ b/server/registry.ts@@ -20,6 +20,8 @@ export type Input = {step?: number;options?: Option[];gallery?: boolean;+ /** image inputs: the image input this one is painted over in the web UI (a white-on-black mask) */+ paint?: string;limits?: { max_mb?: number; seconds?: [number, number] };bind?: Bind[];};@@ -127,6 +129,12 @@ function checkGraph(app: App, problems: Problem[], severity: Problem["severity"]say(`input "${input.id}" is not bound to any node and no template uses it`);}}+ for (const input of app.inputs) {+ if (input.paint === undefined) continue;+ const src = app.inputs.find((i) => i.id === input.paint);+ if (input.type !== "image") say(`input "${input.id}": only an image input can be painted (paint)`);+ else if (!src || src.type !== "image" || src === input) say(`input "${input.id}": paint names "${input.paint}", which is not another image input`);+ }for (const p of app.presets ?? []) for (const s of p.sets) has(s.node, s.field, `preset "${p.id}"`);for (const input of app.inputs) {for (const o of input.options ?? []) for (const s of o.sets ?? []) has(s.node, s.field, `input "${input.id}" option "${o.label}"`);diff --git a/server/runner.ts b/server/runner.tsindex 496e222..17674a5 100644--- a/server/runner.ts+++ b/server/runner.ts@@ -45,7 +45,9 @@ export function resolveValues(app: App, values: Values): Values {const out: Values = {};for (const input of app.inputs) {let v = values[input.id];- if (v === undefined || v === "") v = input.default;+ // "" is a choice when a select offers it ("Any" in a builder writes nothing); elsewhere it means "use the default"+ const emptyIsOption = input.type === "select" && (input.options ?? []).some((o) => o.value === "");+ if (v === undefined || (v === "" && !emptyIsOption)) v = input.default;if (input.type === "seed" && (v === undefined || v === -1 || v === "-1")) {v = Math.floor(Math.random() * 2 ** 48);}diff --git a/server/server.ts b/server/server.tsindex 32f850d..27727aa 100644--- a/server/server.ts+++ b/server/server.ts@@ -1,5 +1,6 @@// Minimal HTTP API for the web UI. Node's built-in http plus the Fetch API types; no framework.// GET /api/apps catalog (what the UI needs to draw cards and forms)+// GET /api/apps/:id/workflow the app's ComfyUI workflow in API format, as a download (open it in ComfyUI)// POST /api/apps/:id/run multipart form: one field per input id, optional "preset"// → 202 with the history entry; the run continues in the background// GET /api/history[?app=id] every run started here, newest first (out/history/)@@ -267,6 +268,15 @@ const server = createServer(async (req, res) => {return send(res, 200, { apps: sorted.map((a) => ({ ...publicApp(a), example: examples[a.id] ?? null })), drafts: draftsAllowed,hosted: guard.hosted });}+ if (req.method === "GET" && area === "apps" && sub === "workflow") {+ // the app's ComfyUI workflow (API format) as a file: drag it onto ComfyUI's canvas to open the app as nodes+ const app = byId.get(id);+ if (!app?.workflowPath) return send(res, 404, { error: "no workflow" });+ const body = readFileSync(app.workflowPath);+ res.writeHead(200, { "content-type": "application/json; charset=utf-8", "content-length": body.byteLength, "cache-control": "no-cache",+ "content-disposition": `attachment; filename="freefield-${app.id}.json"` });+ return res.end(body);+ }if (req.method === "POST" && area === "apps" && sub === "run") {const app = byId.get(id);if (!app) return send(res, 404, { error: "unknown app" });diff --git a/test/runner.test.ts b/test/runner.test.tsindex ee367cb..4a83507 100644--- a/test/runner.test.ts+++ b/test/runner.test.ts@@ -25,6 +25,18 @@ test("numbers are coerced and range-checked", () => {assert.throws(() => resolveValues(app, { prompt: "x", steps: 99 }), InputError);});+test("an empty select option is a choice, not a request for the default", () => {+ const app = byId("ai-influencer");+ const values = resolveValues(app, { feature: "", hair: "" , seed: 1 });+ assert.equal(values.feature, "", "Any stays Any even though the default is Freckles");+ const wf = recorder();+ applyInputs(app, values, wf, () => null);+ const text = wf.sets["18:17.value"] as string;+ assert.ok(!/Freckles|curly/.test(text), text);+ assert.match(text, /^A vertical photo for social media of a made-up character: an ordinary, believable person\. A woman aged around 28 of Latin American descent\. Dark brown hair\./);+ assert.equal(resolveValues(byId("upscale"), { image: { bytes: new Uint8Array([1]), name: "a.png" }, scale: "" }).scale, 2, "a select without an empty option falls back to its default");+});+test("select values must be one of the options", () => {const app = byId("upscale");const file = { bytes: new Uint8Array([1, 2, 3]), name: "a.png" };diff --git a/tools/build_apps.py b/tools/build_apps.pyindex 66bd85f..2e66b5c 100644--- a/tools/build_apps.py+++ b/tools/build_apps.py@@ -556,6 +556,12 @@ def recipes(templates: Path, ltx: Path, info: dict, reshoot: Path | None = None)put(k, "18:6", "height", 1024)put(k, "18:16", "switch", True)put(k, "18:17", "value", "A rainy neon street in Mexico City at night, cinematic, 35mm")+ # resolution: the aspect select writes the latent's width and height at about 1 MP, and this node scales that empty+ # latent by 1, 1.5 or 2 (zeros stay zeros; the sampler adds the noise at the new size), so the two selects never+ # write the same field+ k["ff_res"] = {"class_type": "LatentUpscaleBy", "inputs": {"samples": ["18:6", 0], "upscale_method": "nearest-exact", "scale_by": 1.0},+ "_meta": {"title": "Resolution (1K, 1.5K, 2K)"}}+ put(k, "18:7", "latent_image", ["ff_res", 0])out["create-image"] = kcs = json.loads(json.dumps(k))# Cinema Studio (and the text-to-image templates) write the whole prompt themselves: no upsampler@@ -580,6 +586,67 @@ def recipes(templates: Path, ltx: Path, info: dict, reshoot: Path | None = None)put(e, "4", "text", "Change the jacket to deep red leather, keep everything else the same.")out["edit"] = eout["character"] = json.loads(json.dumps(e)) # same pipeline; the manifest wraps the prompt in a template++ def three_refs(src: Api, megapixels: float) -> Api:+ # three images into the one ReferenceMultiLatent (it takes up to 100): three photos of one person (character-3) or+ # three images whose shared look the result takes (moodboard). The sampler starts from an empty latent with its own+ # aspect ratio and resolution, as in create-image, instead of the first reference's shape.+ w = json.loads(json.dumps(src))+ w["12"] = {"class_type": "LoadImage", "inputs": {"image": "second.png"}, "_meta": {"title": "Second reference"}}+ w["13"] = {"class_type": "LoadImage", "inputs": {"image": "third.png"}, "_meta": {"title": "Third reference"}}+ put(w, "17", "images.image1", ["12", 0])+ put(w, "17", "images.image2", ["13", 0])+ put(w, "17", "resolution.megapixels", megapixels)+ w["ff_size"] = {"class_type": "EmptyFlux2LatentImage", "inputs": {"width": 1024, "height": 1024, "batch_size": 1}, "_meta": {"title": "Aspect ratio"}}+ w["ff_res"] = {"class_type": "LatentUpscaleBy", "inputs": {"samples": ["ff_size", 0], "upscale_method": "nearest-exact", "scale_by": 1.0},+ "_meta": {"title": "Resolution (1K, 1.5K, 2K)"}}+ put(w, "7", "latent_image", ["ff_res", 0])+ return w++ out["character-3"] = three_refs(e, 1.0)+ out["moodboard"] = three_refs(e, 0.5) # the look is in the references, not their detail: half a megapixel each++ pd = json.loads(json.dumps(e))+ # Photodump: four photos of the person in one run. Four prompts (an aesthetic's select writes all four), each with its+ # own ReferenceMultiLatent on the same photo and its own sampler; the four images go out as one batch.+ for k in (2, 3, 4):+ pd[f"pd_t{k}"] = {"class_type": "CLIPTextEncode", "inputs": {"clip": ["2", 0], "text": ""}, "_meta": {"title": f"Prompt {k}"}}+ pd[f"pd_z{k}"] = {"class_type": "ConditioningZeroOut", "inputs": {"conditioning": [f"pd_t{k}", 0]}}+ pd[f"pd_r{k}"] = {"class_type": "ReferenceMultiLatent", "inputs": {**pd["17"]["inputs"], "positive": [f"pd_t{k}", 0], "negative": [f"pd_z{k}", 0]},+ "_meta": {"title": f"Reference {k}"}}+ pd[f"pd_k{k}"] = {"class_type": "KSampler", "inputs": {**pd["7"]["inputs"], "positive": [f"pd_r{k}", 0], "negative": [f"pd_r{k}", 1],+ "latent_image": [f"pd_r{k}", 2]}, "_meta": {"title": f"Sampler {k}"}}+ pd[f"pd_d{k}"] = {"class_type": "VAEDecode", "inputs": {"samples": [f"pd_k{k}", 0], "vae": ["3", 0]}}+ pd["pd_b2"] = {"class_type": "ImageBatch", "inputs": {"image1": ["8", 0], "image2": ["pd_d2", 0]}}+ pd["pd_b3"] = {"class_type": "ImageBatch", "inputs": {"image1": ["pd_b2", 0], "image2": ["pd_d3", 0]}}+ pd["pd_b4"] = {"class_type": "ImageBatch", "inputs": {"image1": ["pd_b3", 0], "image2": ["pd_d4", 0]}, "_meta": {"title": "The four photos"}}+ put(pd, "9", "images", ["pd_b4", 0])+ out["photodump"] = pd++ ip = json.loads(json.dumps(e))+ # Inpaint: the person paints the area to change in the web UI, which uploads it as a white-on-black mask. Photo and+ # mask go to 1 MP at the same size; the sampler starts from the encoded photo with a noise mask on the painted area,+ # the photo is Klein's reference, and the result is pasted back over the photo through the same mask, so every pixel+ # outside it is the original one.+ ip["12"] = {"class_type": "LoadImage", "inputs": {"image": "mask.png"}, "_meta": {"title": "Painted area (white on black)"}}+ ip["ip_scale"] = {"class_type": "ImageScaleToTotalPixels", "inputs": {"image": ["11", 0], "upscale_method": "lanczos", "megapixels": 1.0,+ "resolution_steps": 16}, "_meta": {"title": "Photo at 1 MP"}}+ ip["ip_size"] = {"class_type": "GetImageSize", "inputs": {"image": ["ip_scale", 0]}}+ ip["ip_mscale"] = {"class_type": "ImageScale", "inputs": {"image": ["12", 0], "upscale_method": "bilinear", "width": ["ip_size", 0],+ "height": ["ip_size", 1], "crop": "disabled"}, "_meta": {"title": "Mask at the photo's size"}}+ ip["ip_mask"] = {"class_type": "ImageToMask", "inputs": {"image": ["ip_mscale", 0], "channel": "red"}}+ ip["ip_grow"] = {"class_type": "GrowMask", "inputs": {"mask": ["ip_mask", 0], "expand": 8, "tapered_corners": True},+ "_meta": {"title": "A little past the brush"}}+ ip["ip_encode"] = {"class_type": "VAEEncode", "inputs": {"pixels": ["ip_scale", 0], "vae": ["3", 0]}}+ ip["ip_latent"] = {"class_type": "SetLatentNoiseMask", "inputs": {"samples": ["ip_encode", 0], "mask": ["ip_grow", 0]},+ "_meta": {"title": "Only the painted area is redrawn"}}+ put(ip, "7", "latent_image", ["ip_latent", 0])+ put(ip, "17", "images.image0", ["ip_scale", 0])+ ip["ip_paste"] = {"class_type": "ImageCompositeMasked", "inputs": {"destination": ["ip_scale", 0], "source": ["8", 0], "x": 0, "y": 0,+ "resize_source": False, "mask": ["ip_grow", 0]},+ "_meta": {"title": "Result pasted over the photo"}}+ put(ip, "9", "images", ["ip_paste", 0])+ out["inpaint"] = ipout["product-shot"] = json.loads(json.dumps(e)) # same again, with product-photography scenesu = tpl("utility_seedvr2_3b_int8_upscale_image.json")diff --git a/tools/template_apps.py b/tools/template_apps.pyindex 1e660a4..f6751f7 100644--- a/tools/template_apps.py+++ b/tools/template_apps.py@@ -48,7 +48,7 @@ BASES = {"edit2": {"app": "edit", "section": "image", "pack": "image-flux3", "image": ("11", "image"), "image2": ("12", "image"), "prompt": ("4", "text"),"keep": ("steps", "seed"), "output": {"node": "9", "type": "image"}},"klein": {"app": "create-image", "section": "image", "pack": "image-flux3", "image": None, "prompt": ("18:17", "value"),- "keep": ("width", "height", "steps", "seed"), "output": {"node": "9", "type": "image"}},+ "keep": ("aspect", "resolution", "steps", "seed"), "output": {"node": "9", "type": "image"}},"z-image": {"app": "z-image", "section": "image", "pack": "image", "image": None, "prompt": ("57:27", "text"), "keep": ("width", "height", "steps", "seed"),"output": {"node": "9", "type": "image"}},"video": {"app": "video", "section": "video", "pack": "video-ltx25", "image": ("395", "image"), "prompt": ("398:376", "value"),@@ -118,13 +118,13 @@ T = []def A(id_, name, feature, cat, base, image_label, summary, prompt, inputs=(), ref=None, values=None, note="", image2_label=None, ref2=None, lora=None, help_=None,- defaults=None, klein=None, face_mask=False, effect_lora=None, outpaint=False):+ defaults=None, klein=None, face_mask=False, effect_lora=None, outpaint=False, sidebar=False):"""defaults: new defaults for settings kept from the base app (say, the LTX enhancer off); klein: the morph and effect-klein bases' Kleininstruction; face_mask (edit2): redraw only the face oval MediaPipe finds in the first image, so the rest of it stays as it is;effect_lora: the effect bases' LoRA file; outpaint (edit): draw only a border added around the photo (a select's sets pad it)."""T.append(dict(id=id_, name=name, feature=feature, cat=cat, base=base, image_label=image_label, summary=summary, prompt=prompt,inputs=list(inputs), ref=ref, values=values or {}, note=note, image2_label=image2_label, ref2=ref2, lora=lora, help=help_,- defaults=defaults or {}, klein=klein, face_mask=face_mask, effect_lora=effect_lora, outpaint=outpaint))+ defaults=defaults or {}, klein=klein, face_mask=face_mask, effect_lora=effect_lora, outpaint=outpaint, sidebar=sidebar))def pad(left, top, right, bottom):@@ -516,19 +516,98 @@ A("expand-image", "Expand Image", "Expand Image", "style", "edit", "Your photo",{"value": "wide", "label": "Wider", "sets": pad(320, 0, 320, 0)},{"value": "tall", "label": "Taller", "sets": pad(0, 320, 0, 320)}]}],LAKE, {"direction": "out"}, "Does the border continue the lake, rock and sky, with no seam or gray left?", outpaint=True)+def any_(label, pairs, default="", help_=None):+ """A builder select: "Any" (nothing written) plus label → sentence pairs."""+ return sel(label[0], label[1], [("Any", "")] + pairs, default, help_)+++KIND = sel("kind", "Character type", [+ ("Human", "an ordinary, believable person"),+ ("Bold", "a person with bold, striking, slightly exaggerated features"),+ ("Extreme", "a person with extremely exaggerated, cartoonish features and proportions, still photographed for real"),+ ("Insect", "an anthropomorphic insect character: an insect head with large compound eyes and antennae on a human body"),+ ("Frog", "an anthropomorphic frog character: a green frog head on a human body"),+ ("Cat", "an anthropomorphic cat character: a furry cat head on a human body"),+ ("Dog", "an anthropomorphic dog character: a dog head with floppy ears on a human body"),+ ("Rodent", "an anthropomorphic capybara character: a capybara head on a human body"),+ ("Bird", "an anthropomorphic bird character: a puffin head with a bright beak on a human body")],+ "an ordinary, believable person", "Shown with an example of each type.")+KIND["gallery"] = True+INFLUENCER = [+ KIND,+ sel("gender", "Gender", [("Woman", "A woman"), ("Man", "A man"), ("Trans man", "A trans man"), ("Trans woman", "A trans woman"),+ ("Non-binary", "A non-binary person")], "A woman"),+ any_(("age", "Age"), [("Adult", " aged around 28"), ("Mature", " aged around 45"), ("Older", " aged around 70")], " aged around 28"),+ any_(("origin", "Origin"), [("African", " of African descent"), ("East Asian", " of East Asian descent"), ("European", " of European descent"),+ ("South Asian", " of South Asian descent"), ("Middle Eastern", " of Middle Eastern descent"),+ ("Latin American", " of Latin American descent"), ("Mixed", " of mixed heritage")], " of Latin American descent"),+ any_(("skin", "Skin tone"), [("Porcelain", "Porcelain skin."), ("Fair", "Fair skin."), ("Olive", "Olive skin."), ("Tan", "Tan skin."),+ ("Brown", "Brown skin."), ("Deep brown", "Deep brown skin."), ("Ebony", "Very dark skin.")]),+ any_(("build", "Build"), [("Slim", "Slim build."), ("Athletic", "Athletic build."), ("Muscular", "Muscular build."), ("Curvy", "Curvy build."),+ ("Heavyset", "Heavyset build."), ("Bodybuilder", "A huge bodybuilder build.")]),+ any_(("stature", "Height"), [("Average", "Average height."), ("Tall", "Tall."), ("Very tall", "Very tall.")]),+ any_(("proportions", "Proportions"), [("Long limbs", "Long arms and legs."), ("Short legs", "Short legs."), ("Broad shoulders", "Broad shoulders."),+ ("Narrow waist", "A narrow waist."), ("Egg-shaped", "A round, egg-shaped body.")]),+ any_(("hair", "Hairstyle"), [+ ("Long curly", "Long curly hair."), ("Long straight", "Long straight hair."), ("Short", "Short hair."), ("Bob", "A bob haircut."),+ ("Bald", "A bald head."), ("Buzz cut", "A buzz cut."), ("Bowl cut", "A bowl cut."), ("Mullet", "A mullet."), ("Braids", "Long braids."),+ ("Pigtails", "Two pigtails."), ("Afro", "A big afro."), ("Mohawk", "A mohawk."), ("Voluminous waves", "Big voluminous waves."),+ ("Beehive", "A tall beehive hairdo."), ("Perm", "A tight perm."), ("Layered", "A layered cut."), ("Ringlets", "Long ringlets."),+ ("Mushroom cut", "A mushroom cut."), ("Hair horns", "Hair styled into two horns."), ("Soft-serve swirl", "Hair piled up in a soft-serve swirl."),+ ("Ball of curls", "A round ball of curls."), ("Two buns", "Two round buns on top of the head."), ("Hair wings", "Hair swept out to the sides like wings."),+ ("Spikes", "Spiky hair."), ("Side spiral", "One big spiral curl on the side.")], "Long curly hair."),+ any_(("haircolor", "Hair color"), [("Jet black", "Jet-black hair."), ("Dark brown", "Dark brown hair."), ("Brown", "Brown hair."),+ ("Auburn", "Auburn hair."), ("Red", "Bright red hair."), ("Blonde", "Blonde hair."), ("Platinum", "Platinum hair."),+ ("Gray", "Gray hair."), ("White", "White hair."), ("Pastel pink", "Pastel pink hair."), ("Lilac", "Lilac hair."),+ ("Blue", "Blue hair."), ("Green", "Green hair.")], "Dark brown hair."),+ any_(("head", "Head shape"), [("Long", "A long face."), ("Small", "A very small head."), ("High forehead", "A high forehead."),+ ("Heavy brow", "A heavy brow ridge."), ("Chiseled jaw", "A sharply chiseled jawline."), ("Huge jaw", "A huge jaw."),+ ("Round", "A round face."), ("Square", "A square face."), ("Heart", "A heart-shaped face.")]),+ any_(("neck", "Neck"), [("Thick", "A thick neck."), ("Long", "A long neck."), ("Short", "A short neck.")]),+ any_(("eyes", "Eye shape"), [("Almond", "Almond-shaped eyes."), ("Round", "Round eyes."), ("Monolid", "Monolid eyes."), ("Close-set", "Close-set eyes."),+ ("Wide-set", "Wide-set eyes."), ("Uneven", "Slightly uneven eyes."), ("Big", "Big eyes."), ("Huge", "Huge eyes."),+ ("Hooded", "Hooded eyes."), ("Upturned", "Upturned eyes."), ("Downturned", "Downturned eyes.")]),+ any_(("eyecolor", "Eye color"), [("Black", "Black eyes."), ("Brown", "Brown eyes."), ("Hazel", "Hazel eyes."), ("Green", "Green eyes."),+ ("Blue", "Blue eyes."), ("Ice blue", "Ice-blue eyes."), ("Amber", "Amber eyes."), ("Gray", "Gray eyes.")]),+ any_(("feature", "Facial feature"), [+ ("Freckles", "Freckles."), ("Dimples", "Dimples."), ("Dark circles", "Dark circles under the eyes."), ("Rosy cheeks", "Rosy cheeks."),+ ("High cheekbones", "High cheekbones."), ("Full lips", "Full lips."), ("Thick eyebrows", "Thick eyebrows."), ("Beauty mark", "A beauty mark."),+ ("Round nose", "A round nose."), ("Button nose", "A button nose."), ("Pointed nose", "A pointed nose."), ("Tiny nose", "A tiny nose."),+ ("Pouty lips", "Pouty lips."), ("Small mouth", "A small pursed mouth."), ("Wide mouth", "A wide mouth."), ("Unibrow", "A unibrow."),+ ("Thin arched brows", "Thin, high arched eyebrows."), ("Bushy brows", "Bushy eyebrows."), ("Protruding ears", "Ears that stick out."),+ ("Gap teeth", "A gap between the front teeth."), ("Buck teeth", "Slight buck teeth."), ("Pointed chin", "A pointed chin."),+ ("Receding chin", "A receding chin."), ("Big forehead", "A big forehead.")], "Freckles."),+ any_(("facialhair", "Facial hair"), [("Clean-shaven", "Clean-shaven."), ("Stubble", "Stubble."), ("Full beard", "A full beard."),+ ("Goatee", "A goatee."), ("Mustache", "A mustache."), ("Pencil mustache", "A thin pencil mustache."),+ ("Push-broom", "A thick push-broom mustache."), ("Braided beard", "A braided beard.")]),+ any_(("trait", "Distinctive trait"), [("Different eye colors", "Each eye a different color."), ("Small face tattoo", "A small face tattoo."),+ ("Nose piercing", "A nose piercing."), ("Ear piercings", "Several ear piercings."),+ ("Eyebrow slits", "Shaved slits in one eyebrow."), ("Bleached brows", "Bleached eyebrows."),+ ("No eyebrows", "No eyebrows."), ("Gold grill", "A gold grill on the teeth."), ("Braces", "Braces on the teeth."),+ ("Eyebrow scar", "A small scar through one eyebrow."), ("Face gems", "Small gems stuck on the cheekbones."),+ ("Elf ears", "Pointed elf ears."), ("Long lashes", "Very long eyelashes."), ("Nose strip", "A strip across the nose.")]),+ any_(("style", "Style"), [("Casual", "Wearing casual everyday clothes."), ("Streetwear", "Wearing streetwear."), ("Retro", "Wearing 1970s retro clothes."),+ ("Sporty", "Wearing sporty athletic clothes."), ("Y2K", "Wearing early-2000s Y2K fashion."),+ ("Theatrical", "Wearing a bold theatrical costume."), ("Gothic", "Wearing gothic black clothes."),+ ("Suit", "Wearing a tailored suit.")], "Wearing casual everyday clothes."),+ any_(("accessory", "Accessory"), [("Glasses", "Glasses."), ("Headphones", "Headphones around the neck."), ("Jewelry", "Jewelry."),+ ("Hat", "A hat."), ("Bag", "A bag over one shoulder.")]),+ sel("scene", "Scene", [("Studio", "Standing in a plain light-gray photo studio, full body, soft even light."),+ ("Fitness", "Stretching on a rooftop at sunrise, full body."),+ ("Travel", "With a backpack at a viewpoint above a coastal town."),+ ("Fashion", "Posing on a city street, full body."),+ ("Food", "Tasting a dish at a busy street food stall at night."),+ ("Tech", "At a desk with a laptop and a camera on a tripod, warm desk lamp.")],+ "Standing in a plain light-gray photo studio, full body, soft even light."),+]+A("ai-influencer", "AI Influencer", "AI Influencer", "portraits", "klein", None,- "Makes a feed-ready photo of a made-up influencer in their niche, with natural skin (FLUX 3 Klein).",- "A vertical phone photo for a social media feed of {who}, a {niche}. Natural skin texture with visible pores, candid moment, "- "realistic photo, no text, no logos.",- [txt("who", "Who", "a woman in her late twenties from Mexico City with curly dark hair", required=True,- help_="Describe a person who does not exist: age, origin, hair, style."),- sel("niche", "Niche", [("Fitness", "fitness influencer stretching on a rooftop at sunrise in workout clothes"),- ("Travel", "travel influencer with a backpack at a viewpoint above a coastal town"),- ("Fashion", "fashion influencer posing on a city street in a tailored camel coat"),- ("Food", "food influencer tasting a dish at a busy street food stall at night"),- ("Tech", "tech influencer at a desk with a laptop and a camera on a tripod, warm desk lamp")])],- None, {"niche": "fitness influencer stretching on a rooftop at sunrise in workout clothes"}, "A believable person, not a glossy render?",- defaults={"width": 768, "height": 1280})+ "Build a made-up influencer trait by trait: type, body, hair, face, style and scene (FLUX 3 Klein).",+ "A vertical photo for social media of a made-up character: {kind}. {gender}{age}{origin}. {skin} {build} {stature} {proportions} {hair} {haircolor} "+ "{head} {neck} {eyes} {eyecolor} {feature} {facialhair} {trait} {style} {accessory} {scene} Natural skin texture with visible pores, "+ "a believable photo, no text, no logos.",+ INFLUENCER, None, {}, "A believable person, not a glossy render? The traits picked show?",+ defaults={"aspect": "2:3"}, sidebar=True)A("bullet-time-scene", "Bullet Time Scene", "Bullet Time Scene", "camera", "effect", "Your photo","Freezes the moment and circles the camera around the subject, in their own scene (Wan 2.1 + Bullet Time LoRA).",BULLET_TRIGGER + "The video shows {subject}, frozen in mid-air while the camera circles around them in one direction; the whole scene is frozen too.",@@ -608,7 +687,7 @@ def check() -> None:assert used <= have, (t["id"], used - have)assert have - setters <= used, (t["id"], have - setters - used)for i in t["inputs"]:- assert i["id"] not in ("image", "image2", "details", "steps", "seed", "width", "height", "duration", "enhance", "aspect"), (t["id"], i["id"])+ assert i["id"] not in ("image", "image2", "details", "steps", "seed", "width", "height", "duration", "enhance", "aspect", "resolution"), (t["id"], i["id"])if t["base"] in ("z-image", "klein"):assert t["ref"] is None and t["image_label"] is Noneelse:@@ -641,8 +720,9 @@ def manifest(t: dict) -> dict:binds = [{"node": base["prompt"][0], "field": base["prompt"][1], "template": t["prompt"] + " {details}"}]if t["klein"] and re.search(r"\{[a-z]", t["klein"]): # the Klein instruction takes the template's own inputs toobinds.append({"node": base["klein"][0], "field": base["klein"][1], "template": t["klein"]})- inputs.append({"id": "details", "type": "textarea", "label": "Extra direction", "default": "", "help": "Added at the end of the app's prompt.",- "bind": binds})+ # sidebar: a one-line field, so a text-to-image template with many selects opens with its controls in a side column+ inputs.append({"id": "details", "type": "text" if t["sidebar"] else "textarea", "label": "Extra direction", "default": "",+ "help": "Added at the end of the app's prompt.", "bind": binds})inputs += [{**keep[k], "default": t["defaults"][k]} if k in t["defaults"] else keep[k] for k in base["keep"]]test = {"image": "test/portrait.png"} if base["image"] else {}if base.get("image2"):diff --git a/web/app.css b/web/app.cssindex f81eed0..3c9943b 100644--- a/web/app.css+++ b/web/app.css@@ -619,3 +619,22 @@ dl.vals dd { margin: 0; overflow-wrap: anywhere; }.mm-models { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; position: static; }}@media (max-width: 760px) { .mm { display: none; } }++/* the brush for painted inputs (paint.js, inpaint): the mask is drawn at the photo's own size, shown as a tint */+.drop.paint { overflow: hidden; }+.drop.paint > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; pointer-events: none; }+.drop.paint > :not(img) { position: relative; }+.drop.paint.off { opacity: .6; cursor: not-allowed; }+.drop.has canvas.mask-preview { display: block; width: 100%; max-height: 240px; object-fit: contain; background: #0b0b0c; }+.painter { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .78); animation: rise .14s var(--ease); }+.pt-box { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; width: min(1100px, 100%); height: min(860px, 100%); padding: 16px;+ background: #151517; border: 1px solid #2a2a2f; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }+.pt-box header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }+.pt-box h3 { margin: 0 0 2px; font-size: 16px; }+.pt-box .help { margin: 0; color: var(--dim); font-size: 12.5px; }+.pt-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; border-radius: 12px; background: #0b0b0c; }+.pt-canvas { display: block; touch-action: none; cursor: none; }+.pt-cursor { position: absolute; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }+.pt-box footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }+.pt-size { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }+.pt-size input { width: 140px; }diff --git a/web/js/catalog.js b/web/js/catalog.jsindex 76535a2..8f0fbc9 100644--- a/web/js/catalog.js+++ b/web/js/catalog.js@@ -22,14 +22,14 @@ export async function loadCatalog() {/** Apps grouped like a store: a card can only sit in one row. */export const CATEGORIES = [- { id: "create", apps: ["create-image", "cinema-studio", "z-image", "moss-image", "styles", "video-t2v", "video", "h3-video", "h3-photo", "music", "sfx"] },- { id: "identity", apps: ["character", "speak", "talking", "recast", "motion-transfer", "genjutsu", "dub", "character-swap", "face-swap"] },+ { id: "create", apps: ["create-image", "cinema-studio", "z-image", "moss-image", "moodboard", "styles", "video-t2v", "video", "h3-video", "h3-photo", "music", "sfx"] },+ { id: "identity", apps: ["character", "character-3", "speak", "talking", "recast", "motion-transfer", "genjutsu", "dub", "character-swap", "face-swap"] },{ id: "camera", apps: ["camera-moves", "camera-copy", "reshoot", "reframe", "extend-video", "transitions", "angles", "shots", "zooms", "whats-next", "bullet-time-scene", "bullet-time-white", "bullet-time-splash"] },{ id: "style", apps: ["relight", "style-reference", "mixed-media", "upscale", "upscale-video", "sdr-hdr", "smooth", "remove-bg", "video-remove-bg", "depth-map", "expand-image"] },- { id: "vfx", apps: ["effects", "morph", "edit", "vfx-clean-plate", "vfx-day-to-night", "vfx-water"] },+ { id: "vfx", apps: ["effects", "morph", "edit", "inpaint", "vfx-clean-plate", "vfx-day-to-night", "vfx-water"] },{ id: "ads", apps: ["product-shot", "poster", "packshot", "macro-scene", "macro-product", "giant-product", "billboard", "graffiti-ad", "fridge-ad", "ugc-shot","asmr-product", "chameleon", "magic-button", "truck-ad", "kick-ad", "volcano-ad"] },- { id: "portraits", apps: ["ai-influencer", "headshot", "commercial-faces", "style-snap", "skin-enhancer", "outfit-vending", "glitter-sticker", "fashion-factory", "try-on", "outfit-swap", "outfit-shot"] },+ { id: "portraits", apps: ["ai-influencer", "photodump", "headshot", "commercial-faces", "style-snap", "skin-enhancer", "outfit-vending", "glitter-sticker", "fashion-factory", "try-on", "outfit-swap", "outfit-shot"] },{ id: "clips", apps: ["behind-the-scenes", "asmr-whisper", "asmr-host", "roller-coaster", "storm-creature", "cloud-surf", "mukbang", "melting-doodle", "rap-video", "idol"] },{ id: "play", apps: ["game-styles", "plushie", "render-3d", "figure-3d", "pixel-game", "brick-toy", "sketch-to-real", "paint-app", "mural", "micro-beasts", "meme"] },{ id: "templates", apps: ["j-magazine", "cafe-60s", "victory-card", "j-poster", "mascot", "burning-sunset", "comic-book", "giallo", "renaissance", "japanese-show", "breakdown", "edit-text", "image-effects", "color-grade"] },@@ -97,6 +97,7 @@ export const HERO = ["effects", "recast", "motion-transfer", "speak", "camera-mo/** Prompt-first apps get the floating composer; upload-first apps get the sidebar. */export function layoutOf(app) {+ if (app.inputs.some((i) => i.paint)) return "sidebar"; // painting a mask needs the photo in a dropzoneconst hasText = app.inputs.some((i) => i.type === "textarea");return (app.section === "image" || app.section === "audio") && hasText ? "composer" : "sidebar";}@@ -246,6 +247,10 @@ const TAGLINES = {"volcano-ad": ["A volcano erupts behind your product", "Un volcán detrás de tu producto"],"whats-next": ["The next shot of your scene", "La siguiente toma de tu escena"],zooms: ["Zoom levels of one image", "Niveles de zoom de una imagen"],+ "character-3": ["Three photos, one face", "Tres fotos, una misma cara"],+ moodboard: ["The look of three images", "El look de tres imágenes"],+ photodump: ["Four photos of you, one aesthetic", "Cuatro fotos tuyas, una estética"],+ inpaint: ["Paint it, describe it", "Píntalo y descríbelo"],};export function tagline(app) {const pair = TAGLINES[app.id];diff --git a/web/js/i18n.js b/web/js/i18n.jsindex 538fd91..cfbe58a 100644--- a/web/js/i18n.js+++ b/web/js/i18n.js@@ -60,6 +60,10 @@ const en = {"ws.draft": "Draft: add FREEFIELD_DRAFTS=1 to .env and restart the server to run it.", "ws.noworkflow": "This app has no workflow yet.","ws.example": "Example from the lab", "ws.useex": "Load this example", "ws.related": "More like this","ws.empty.hist": "Nothing generated with this app yet.", "ws.dense": "Smaller tiles", "ws.optional": "optional", "ws.eg": "e.g. {x}",+ "paint.title": "Paint the area to change", "paint.help": "Only what you paint is redrawn; the rest of the photo keeps its pixels.",+ "paint.brush": "Brush", "paint.erase": "Eraser", "paint.size": "Size", "paint.undo": "Undo", "paint.clear": "Clear", "paint.done": "Done",+ "paint.cta": "Paint the area to change", "paint.first": "Add {label} first", "paint.empty": "Paint over the part to change first",+ "paint.edit": "Repaint", "paint.bad": "That image could not be opened","status.starting": "Waking the GPU…", "status.submitting": "Sending…", "status.queued": "In queue", "status.queued.n": "In queue · #{n}", "status.running": "Generating","status.step": "step {a}/{b}", "status.failed": "Failed", "status.canceled": "Canceled", "status.lost": "Lost", "status.expired": "Expired","status.elapsed": "{s} so far",@@ -72,6 +76,7 @@ const en = {"fit.whole": "Fits 24 GB", "fit.phases": "Fits 24 GB by phases", "fit.tight": "Tight on 24 GB", "fit.big": "Needs 48 GB", "fit.none": "No models","how.cli": "From the terminal", "how.credits": "Credits", "how.notes": "Notes", "how.equiv": "Higgsfield counterpart", "how.pack": "Model pack","how.download": "Download it once:",+ "how.workflow": "Download the workflow", "how.workflow.d": "Drop the file on ComfyUI's canvas to open this app as nodes and chain it with others.","lib.title": "Library", "lib.sub": "Everything generated here is saved in out/history/ on this computer.", "lib.mine": "My generations", "lib.lab": "Lab examples","lib.empty": "Nothing here yet. Pick an app and press Generate.", "lib.allapps": "All apps", "lib.allex": "All examples","lib.flagged": "Mediocre · {n}", "lib.noflag": "Nothing marked mediocre. The thumbs-down on an example marks it.",@@ -144,6 +149,10 @@ const es = {"ws.draft": "Borrador: agrega FREEFIELD_DRAFTS=1 a .env y reinicia el servidor para correrla.", "ws.noworkflow": "Esta app aún no tiene workflow.","ws.example": "Ejemplo del lab", "ws.useex": "Cargar este ejemplo", "ws.related": "Más como esta","ws.empty.hist": "Aún no has generado nada con esta app.", "ws.dense": "Mosaicos chicos", "ws.optional": "opcional", "ws.eg": "p. ej. {x}",+ "paint.title": "Pinta el área a cambiar", "paint.help": "Solo se redibuja lo que pintes; el resto de la foto conserva sus píxeles.",+ "paint.brush": "Pincel", "paint.erase": "Borrador", "paint.size": "Tamaño", "paint.undo": "Deshacer", "paint.clear": "Limpiar", "paint.done": "Listo",+ "paint.cta": "Pinta el área a cambiar", "paint.first": "Primero agrega {label}", "paint.empty": "Primero pinta la parte a cambiar",+ "paint.edit": "Volver a pintar", "paint.bad": "No se pudo abrir esa imagen","status.starting": "Despertando la GPU…", "status.submitting": "Enviando…", "status.queued": "En cola", "status.queued.n": "En cola · #{n}", "status.running": "Generando","status.step": "paso {a}/{b}", "status.failed": "Falló", "status.canceled": "Cancelado", "status.lost": "Perdido", "status.expired": "Expirado","status.elapsed": "{s} hasta ahora",@@ -156,6 +165,7 @@ const es = {"fit.whole": "Cabe en 24 GB", "fit.phases": "Cabe en 24 GB por fases", "fit.tight": "Justo en 24 GB", "fit.big": "Necesita 48 GB", "fit.none": "Sin modelos","how.cli": "Desde la terminal", "how.credits": "Créditos", "how.notes": "Notas", "how.equiv": "Equivalente en Higgsfield", "how.pack": "Paquete de modelos","how.download": "Descárgalo una vez:",+ "how.workflow": "Descargar el workflow", "how.workflow.d": "Suelta el archivo en el lienzo de ComfyUI para abrir esta app como nodos y encadenarla con otras.","lib.title": "Biblioteca", "lib.sub": "Todo lo que generas aquí se guarda en out/history/ en esta computadora.", "lib.mine": "Mis generaciones", "lib.lab": "Ejemplos del lab","lib.empty": "Aún no hay nada. Elige una app y presiona Generar.", "lib.allapps": "Todas las apps", "lib.allex": "Todos los ejemplos","lib.flagged": "Mediocres · {n}", "lib.noflag": "Nada marcado como mediocre. El pulgar abajo en un ejemplo lo marca.",diff --git a/web/js/paint.js b/web/js/paint.jsnew file mode 100644index 0000000..3bf2466--- /dev/null+++ b/web/js/paint.js@@ -0,0 +1,191 @@+// The brush for inputs marked "paint" in app.json (inpaint): paint over a photo, get a white-on-black PNG mask the+// size of that photo. Strokes live on a transparent canvas at the photo's own size, so the mask is exact whatever the+// screen size; the screen shows them as a tint over the photo.+import { el, icon, toast, clamp } from "./util.js";+import { t } from "./i18n.js";++const TINT = "rgba(232, 255, 90, 0.55)";++function loadImage(src) {+ return new Promise((resolve, reject) => {+ const img = new Image();+ img.onload = () => resolve(img);+ img.onerror = () => reject(new Error("image"));+ img.src = src;+ });+}++/** A mask file (white = painted) back into strokes: white becomes opaque, black transparent. */+async function strokesFrom(maskFile, w, h) {+ const url = URL.createObjectURL(maskFile);+ try {+ const img = await loadImage(url);+ const c = el("canvas", { width: w, height: h });+ const g = c.getContext("2d");+ g.drawImage(img, 0, 0, w, h);+ const d = g.getImageData(0, 0, w, h);+ for (let i = 0; i < d.data.length; i += 4) {+ const v = d.data[i];+ d.data[i] = d.data[i + 1] = d.data[i + 2] = 255;+ d.data[i + 3] = v;+ }+ g.putImageData(d, 0, 0);+ return c;+ } finally { URL.revokeObjectURL(url); }+}++/** A small preview: the photo with the painted area tinted, for the dropzone. */+export async function maskPreview(photoUrl, maskFile) {+ const img = await loadImage(photoUrl);+ const w = Math.min(640, img.naturalWidth), h = Math.round(w * img.naturalHeight / img.naturalWidth);+ const strokes = await strokesFrom(maskFile, w, h);+ const c = el("canvas", { width: w, height: h, class: "mask-preview" });+ const g = c.getContext("2d");+ g.drawImage(img, 0, 0, w, h);+ const tint = el("canvas", { width: w, height: h });+ const tg = tint.getContext("2d");+ tg.drawImage(strokes, 0, 0);+ tg.globalCompositeOperation = "source-in";+ tg.fillStyle = TINT;+ tg.fillRect(0, 0, w, h);+ g.drawImage(tint, 0, 0);+ return c;+}++/** Open the brush over `photo` (a File). Resolves with the mask File, or null when cancelled. */+export async function openPainter(photo, { mask = null, title } = {}) {+ const url = URL.createObjectURL(photo);+ let img;+ try { img = await loadImage(url); } catch { URL.revokeObjectURL(url); toast(t("paint.bad"), { error: true }); return null; }+ const W = img.naturalWidth, H = img.naturalHeight;+ const strokes = mask ? await strokesFrom(mask, W, H) : el("canvas", { width: W, height: H });+ const sg = strokes.getContext("2d");+ const view = el("canvas", { class: "pt-canvas" });+ const vg = view.getContext("2d");+ const tint = el("canvas");+ const cursor = el("div", { class: "pt-cursor", hidden: true });+ let size = Math.round(Math.min(W, H) * 0.06), erase = false, scale = 1;+ const undo = [];++ const sizeIn = el("input", { type: "range", min: String(Math.max(4, Math.round(Math.min(W, H) * 0.01))), max: String(Math.round(Math.min(W, H) * 0.25)),+ value: String(size), "aria-label": t("paint.size") });+ sizeIn.addEventListener("input", () => { size = Number(sizeIn.value); });+ const brushBtn = el("button", { type: "button", "aria-pressed": "true" }, t("paint.brush"));+ const eraseBtn = el("button", { type: "button", "aria-pressed": "false" }, t("paint.erase"));+ const setMode = (e) => { erase = e; brushBtn.setAttribute("aria-pressed", String(!e)); eraseBtn.setAttribute("aria-pressed", String(e)); };+ brushBtn.onclick = () => setMode(false);+ eraseBtn.onclick = () => setMode(true);++ const draw = () => {+ vg.clearRect(0, 0, view.width, view.height);+ vg.drawImage(img, 0, 0, view.width, view.height);+ const tg = tint.getContext("2d");+ tg.globalCompositeOperation = "source-over";+ tg.clearRect(0, 0, tint.width, tint.height);+ tg.drawImage(strokes, 0, 0, tint.width, tint.height);+ tg.globalCompositeOperation = "source-in";+ tg.fillStyle = TINT;+ tg.fillRect(0, 0, tint.width, tint.height);+ vg.drawImage(tint, 0, 0);+ };+ const stage = el("div", { class: "pt-stage" }, view, cursor);+ const fit = () => {+ const box = stage.getBoundingClientRect();+ scale = Math.min(box.width / W, box.height / H, 1);+ view.width = tint.width = Math.max(1, Math.round(W * scale));+ view.height = tint.height = Math.max(1, Math.round(H * scale));+ draw();+ };++ // strokes in the photo's own pixels+ const toImg = (e) => {+ const r = view.getBoundingClientRect();+ return [clamp((e.clientX - r.left) / r.width, 0, 1) * W, clamp((e.clientY - r.top) / r.height, 0, 1) * H];+ };+ let last = null;+ const line = (a, b) => {+ sg.globalCompositeOperation = erase ? "destination-out" : "source-over";+ sg.strokeStyle = "#fff";+ sg.fillStyle = "#fff";+ sg.lineWidth = size;+ sg.lineCap = "round";+ sg.lineJoin = "round";+ sg.beginPath();+ sg.moveTo(a[0], a[1]);+ sg.lineTo(b[0], b[1]);+ sg.stroke();+ };+ const moveCursor = (e) => {+ const r = stage.getBoundingClientRect();+ const d = size * scale;+ Object.assign(cursor.style, { width: `${d}px`, height: `${d}px`, left: `${e.clientX - r.left - d / 2}px`, top: `${e.clientY - r.top - d / 2}px` });+ cursor.hidden = false;+ };+ view.addEventListener("pointerdown", (e) => {+ e.preventDefault();+ view.setPointerCapture(e.pointerId);+ undo.push(sg.getImageData(0, 0, W, H));+ if (undo.length > 20) undo.shift();+ last = toImg(e);+ line(last, last);+ draw();+ });+ view.addEventListener("pointermove", (e) => {+ moveCursor(e);+ if (!last) return;+ const p = toImg(e);+ line(last, p);+ last = p;+ draw();+ });+ const end = () => { last = null; };+ view.addEventListener("pointerup", end);+ view.addEventListener("pointercancel", end);+ view.addEventListener("pointerleave", () => { cursor.hidden = true; });++ const painted = () => {+ const d = sg.getImageData(0, 0, W, H).data;+ for (let i = 3; i < d.length; i += 16) if (d[i] > 0) return true;+ return false;+ };++ return new Promise((resolve) => {+ const close = (result) => {+ window.removeEventListener("resize", fit);+ document.removeEventListener("keydown", key, true);+ overlay.remove();+ URL.revokeObjectURL(url);+ resolve(result);+ };+ const done = () => {+ if (!painted()) { toast(t("paint.empty"), { error: true }); return; }+ const out = el("canvas", { width: W, height: H });+ const og = out.getContext("2d");+ og.fillStyle = "#000";+ og.fillRect(0, 0, W, H);+ og.drawImage(strokes, 0, 0);+ out.toBlob((blob) => close(blob ? new File([blob], "mask.png", { type: "image/png" }) : null), "image/png");+ };+ const key = (e) => {+ if (e.key === "Escape") { e.stopPropagation(); close(null); }+ else if ((e.key === "z" || e.key === "Z") && (e.metaKey || e.ctrlKey)) { e.preventDefault(); if (undo.length) { sg.putImageData(undo.pop(), 0, 0); draw(); } }+ };+ const overlay = el("div", { class: "painter", role: "dialog", "aria-modal": "true", "aria-label": title || t("paint.title") },+ el("div", { class: "pt-box" },+ el("header", {}, el("div", {}, el("h3", {}, title || t("paint.title")), el("p", { class: "help" }, t("paint.help"))),+ el("button", { class: "icon-btn", type: "button", "aria-label": t("act.close"), onclick: () => close(null) }, icon("x"))),+ stage,+ el("footer", {},+ el("div", { class: "seg" }, brushBtn, eraseBtn),+ el("label", { class: "pt-size" }, el("span", {}, t("paint.size")), sizeIn),+ el("button", { class: "btn small", type: "button", onclick: () => { if (undo.length) { sg.putImageData(undo.pop(), 0, 0); draw(); } } }, icon("redo"), t("paint.undo")),+ el("button", { class: "btn small", type: "button", onclick: () => { undo.push(sg.getImageData(0, 0, W, H)); sg.clearRect(0, 0, W, H); draw(); } }, icon("trash"), t("paint.clear")),+ el("span", { style: { flex: 1 } }),+ el("button", { class: "btn small", type: "button", onclick: () => close(null) }, t("act.cancel")),+ el("button", { class: "btn lime small", type: "button", onclick: done }, icon("check"), t("paint.done")))));+ document.body.append(overlay);+ window.addEventListener("resize", fit);+ document.addEventListener("keydown", key, true);+ requestAnimationFrame(fit);+ });+}diff --git a/web/js/workspace.js b/web/js/workspace.jsindex b564d00..f7d15f1 100644--- a/web/js/workspace.js+++ b/web/js/workspace.js@@ -9,6 +9,7 @@ import {import { exampleItem, thumb, hoverPlay, fullMedia, playWhenVisible, optionTile, optionThumb } from "./media.js";import { flags, flagButton } from "./flags.js";import { feed, feedView, hooks } from "./feed.js";+import { openPainter, maskPreview } from "./paint.js";// ------------------------------------------------------------------ form state (per app, kept while the page is open)const forms = new Map();@@ -59,17 +60,23 @@ function setFile(app, inp, file) {const f = formFor(app);if (f.files[inp.id]) URL.revokeObjectURL(f.files[inp.id].url);f.files[inp.id] = { file, url: URL.createObjectURL(file) };+ dropMasksOf(app, inp.id);return true;}function clearFile(app, id) {const f = formFor(app);if (f.files[id]) URL.revokeObjectURL(f.files[id].url);delete f.files[id];+ dropMasksOf(app, id);+}+/** A mask painted over a photo means nothing once the photo changes. */+function dropMasksOf(app, id) {+ for (const m of app.inputs.filter((i) => i.paint === id)) clearFile(app, m.id);}/** Put dropped or pasted files into the first matching slots. */function assignFiles(app, files) {- const slots = app.inputs.filter((i) => isMedia(i.type));+ const slots = app.inputs.filter((i) => isMedia(i.type) && !i.paint); // a painted mask is made with the brush, not droppedconst f = formFor(app);let used = 0;for (const file of files) {@@ -105,6 +112,8 @@ function buildForm(app, { randomSeed = false } = {}) {const v = f.values[inp.id];if (inp.type === "toggle") { fd.append(inp.id, v ? "true" : "false"); continue; }if (inp.type === "seed" && (randomSeed || v === -1 || v === "-1" || v === "" || v === null)) continue;+ // "Any" in a builder select is the empty value: send it, or the server would fill in the default+ if (v === "" && inp.type === "select" && (inp.options || []).some((o) => o.value === "")) { fd.append(inp.id, ""); continue; }if (v === "" || v === null || v === undefined) continue;fd.append(inp.id, String(v));}@@ -397,7 +406,38 @@ function chipFor(app, inp, f) {}// ------------------------------------------------------------------ sidebar layout+/** An input painted over another image (inpaint's mask): opens the brush over that image. */+function paintZone(app, inp, rerender) {+ const f = formFor(app);+ const src = f.files[inp.paint];+ const srcInp = app.inputs.find((i) => i.id === inp.paint);+ const x = f.files[inp.id];+ const paint = async () => {+ if (!src) { toast(t("paint.first", { label: srcInp?.label || inp.paint }), { error: true }); return; }+ const file = await openPainter(src.file, { mask: x?.file || null, title: inp.label });+ if (file && setFile(app, inp, file)) rerender();+ };+ if (!x) {+ return el("div", { class: `drop paint${src ? "" : " off"}`, role: "button", tabindex: "0", dataset: { slot: inp.id }, "aria-label": t("paint.cta"),+ onclick: paint, onkeydown: (e) => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); paint(); } } },+ src ? el("img", { src: src.url, alt: "" }) : null,+ el("span", { class: "ic" }, icon("wand")),+ el("b", {}, inp.label),+ el("small", {}, src ? t("paint.cta") : t("paint.first", { label: srcInp?.label || inp.paint })),+ inp.help ? el("small", { class: "faint" }, inp.help) : null);+ }+ const zone = el("div", { class: "drop has", dataset: { slot: inp.id } },+ el("span", { class: "fname" }, inp.label),+ el("div", { class: "bar2" },+ el("button", { class: "mini", type: "button", title: t("paint.edit"), "aria-label": t("paint.edit"), onclick: paint }, icon("wand")),+ el("button", { class: "mini", type: "button", title: t("ws.remove"), "aria-label": t("ws.remove"), onclick: () => { clearFile(app, inp.id); rerender(); } }, icon("x"))));+ if (src) maskPreview(src.url, x.file).then((c) => zone.prepend(c)).catch(() => zone.prepend(el("img", { src: x.url, alt: "" })));+ else zone.prepend(el("img", { src: x.url, alt: "" }));+ return zone;+}+function dropzone(app, inp, rerender) {+ if (inp.paint) return paintZone(app, inp, rerender);const f = formFor(app);const x = f.files[inp.id];const input = el("input", { type: "file", accept: ACCEPT[inp.type], hidden: true });@@ -678,6 +718,8 @@ function howTab(app) {el("div", { class: "card" }, el("h3", {}, icon("layers"), t("how.pipeline")), el("p", {}, t("how.pipeline.d", { id: app.id })),el("div", { class: "statline" }, el("span", {}, `${t("how.pack")}: ${app.pack}`), el("span", {}, app.status === "ready" ? "ready" : t("tag.draft")),app.higgsfield_feature ? el("span", {}, `${t("how.equiv")}: ${app.higgsfield_feature}`) : null),+ app.runnable || app.status === "draft" ? el("p", { class: "row" }, el("a", { class: "btn small", href: `/api/apps/${app.id}/workflow`, download: `freefield-${app.id}.json` },+ icon("download"), t("how.workflow")), el("span", { class: "dim", style: { fontSize: "12.5px" } }, t("how.workflow.d"))) : null,el("p", {}, t("how.download")), el("pre", { class: "code" }, `modal run infra/modal_app.py::download --pack ${app.pack}`),el("p", {}, t("how.cli")), el("pre", { class: "code" }, cliLine(app))),app.models.length ? el("div", { class: "card" }, el("h3", {}, icon("box"), t("how.models"), el("span", { class: "dim", style: { marginLeft: "auto", fontWeight: 500 } }, t("how.total", { gb: total.toFixed(1) }))),