Python
AI Influencer: several picks per group, a photo mode, and "Use in…" on every result
neuregex7891b79c48e5
diff --git a/apps/ai-influencer-photo/app.json b/apps/ai-influencer-photo/app.jsonnew file mode 100644index 0000000..dbd360c--- /dev/null+++ b/apps/ai-influencer-photo/app.json@@ -0,0 +1,670 @@+{+ "$schema": "../../schema/app.schema.json",+ "id": "ai-influencer-photo",+ "name": "AI Influencer · Your Photo",+ "section": "image",+ "summary": "Your own face as the influencer: change hair, style, extras and scene, the face stays (FLUX 3 Klein, one reference).",+ "higgsfield_feature": "AI Influencer (your photo)",+ "modes": [+ "ai-influencer",+ "ai-influencer-photo"+ ],+ "mode_label": "Your photo",+ "pack": "image-flux3",+ "status": "ready",+ "workflow": "workflow.api.json",+ "source": {+ "template": "image_flux3_klein_distilled_image_edit.json",+ "comfyui": "0.42.0",+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py); the prompt below is fixed and \"Extra direction\" is appended to it."+ },+ "inputs": [+ {+ "id": "image",+ "type": "image",+ "label": "Your photo",+ "required": true,+ "limits": {+ "max_mb": 20+ },+ "bind": [+ {+ "node": "11",+ "field": "image"+ }+ ]+ },+ {+ "id": "hair",+ "type": "select",+ "label": "Hairstyle",+ "default": "",+ "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": "",+ "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": "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": "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": "feature",+ "type": "select",+ "label": "Facial features",+ "default": [],+ "options": [+ {+ "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"+ }+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }+ },+ {+ "id": "trait",+ "type": "select",+ "label": "Distinctive traits",+ "default": [],+ "options": [+ {+ "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"+ }+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }+ },+ {+ "id": "style",+ "type": "select",+ "label": "Style",+ "default": "",+ "options": [+ {+ "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": "Accessories",+ "default": [],+ "options": [+ {+ "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"+ }+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }+ },+ {+ "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": "With a backpack at a viewpoint above a coastal town.",+ "label": "Travel"+ },+ {+ "value": "Posing on a city street, full body.",+ "label": "Fashion"+ },+ {+ "value": "Tasting a dish at a busy street food stall at night.",+ "label": "Food"+ },+ {+ "value": "At a desk with a laptop and a camera on a tripod, warm desk lamp.",+ "label": "Tech"+ }+ ]+ },+ {+ "id": "details",+ "type": "text",+ "label": "Extra direction",+ "default": "",+ "help": "Added at the end of the app's prompt.",+ "bind": [+ {+ "node": "4",+ "field": "text",+ "template": "A vertical photo for social media of the same person as in <ref_image_0>, as an influencer. {hair} {haircolor} {build} {facialhair} {feature} {trait} {style} {accessory} {scene} Everything the lines above do not change stays as in the photo: the same face (its shape, eyes, nose, mouth and marks), skin tone and age, and the same hairstyle and hair length unless a new hairstyle is given. Natural skin texture with visible pores, a believable photo. The clothes and shoes are plain, with no letters, prints, labels or logos anywhere. {details}"+ }+ ]+ },+ {+ "id": "steps",+ "type": "slider",+ "label": "Steps",+ "min": 8,+ "max": 32,+ "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",+ "haircolor": "Platinum hair.",+ "accessory": [+ "Glasses."+ ],+ "scene": "Tasting a dish at a busy street food stall at night."+ }+}diff --git a/apps/ai-influencer-photo/workflow.api.json b/apps/ai-influencer-photo/workflow.api.jsonnew file mode 100644index 0000000..0b0cf3f--- /dev/null+++ b/apps/ai-influencer-photo/workflow.api.json@@ -0,0 +1,151 @@+{+ "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": [+ "8",+ 0+ ],+ "filename_prefix": "freefield/ai-influencer-photo"+ },+ "_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"+ }+ }+}diff --git a/apps/ai-influencer/app.json b/apps/ai-influencer/app.jsonindex 6b72cd3..abe67c3 100644--- a/apps/ai-influencer/app.json+++ b/apps/ai-influencer/app.json@@ -5,6 +5,11 @@"section": "image","summary": "Build a made-up influencer trait by trait: type, body, hair, face, style and scene (FLUX 3 Klein).","higgsfield_feature": "AI Influencer",+ "modes": [+ "ai-influencer",+ "ai-influencer-photo"+ ],+ "mode_label": "New character","pack": "image-flux3","status": "ready","workflow": "workflow.api.json",@@ -635,13 +640,11 @@{"id": "feature","type": "select",- "label": "Facial feature",- "default": "Freckles.",+ "label": "Facial features",+ "default": [+ "Freckles."+ ],"options": [- {- "value": "",- "label": "Any"- },{"value": "Freckles.","label": "Freckles"@@ -738,7 +741,12 @@"value": "A big forehead.","label": "Big forehead"}- ]+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }},{"id": "facialhair",@@ -787,13 +795,9 @@{"id": "trait","type": "select",- "label": "Distinctive trait",- "default": "",+ "label": "Distinctive traits",+ "default": [],"options": [- {- "value": "",- "label": "Any"- },{"value": "Each eye a different color.","label": "Different eye colors"@@ -850,7 +854,12 @@"value": "A strip across the nose.","label": "Nose strip"}- ]+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }},{"id": "style",@@ -899,13 +908,9 @@{"id": "accessory","type": "select",- "label": "Accessory",- "default": "",+ "label": "Accessories",+ "default": [],"options": [- {- "value": "",- "label": "Any"- },{"value": "Glasses.","label": "Glasses"@@ -926,7 +931,12 @@"value": "A bag over one shoulder.","label": "Bag"}- ]+ ],+ "help": "Up to 3.",+ "multiple": {+ "max": 3,+ "join": " "+ }},{"id": "scene",@@ -970,7 +980,7 @@{"node": "18:17","field": "value",- "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}"+ "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. The clothes and shoes are plain, with no letters, prints, labels or logos anywhere. {details}"}]},diff --git a/apps/cinema-video/app.json b/apps/cinema-video/app.jsonindex 497dc1f..9a1127c 100644--- a/apps/cinema-video/app.json+++ b/apps/cinema-video/app.json@@ -685,8 +685,8 @@"id": "enhance","type": "toggle","label": "Enhance prompt",- "default": false,- "help": "Rewrites the motion prompt with a small Gemma 4 model first; off, the shot follows the camera moves and tempo word for word",+ "default": true,+ "help": "Rewrites the motion prompt with a small Gemma 4 model first (on by default: in the lab the face held better with it); off, the prompt goes in word for word","bind": [{"node": "398:383",diff --git a/docs/vram-map.json b/docs/vram-map.jsonindex cc21411..6f6fa5a 100644--- a/docs/vram-map.json+++ b/docs/vram-map.json@@ -184,6 +184,32 @@"measured_peak_gb": 9.86,"measured_on": "L40S · 20261026-002124-l40s"},+ {+ "id": "ai-influencer-photo",+ "name": "AI Influencer · Your Photo",+ "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": 12.21,+ "measured_on": "L40S · 20261026-021906-l40s"+ },{"id": "billboard","name": "Billboard",@@ -3041,8 +3067,8 @@},"verdict_24gb": "needs Modal","modal_gpu": "L40S (48 GB), by phases",- "measured_peak_gb": null,- "measured_on": null+ "measured_peak_gb": 44.3,+ "measured_on": "L40S · 20261026-015446-l40s"},{"id": "smoke",diff --git a/docs/vram-map.md b/docs/vram-map.mdindex 89ee340..1fc21ec 100644--- a/docs/vram-map.md+++ b/docs/vram-map.md@@ -19,6 +19,7 @@ is not the least the app needs.| `upscale` | ready | 4.0 GB | denoise 3.5 GB | seedvr2_3b_int8_convrot.safetensors (3.5) | fits whole | L4 / A10G (24 GB) | 6.5 GB (H100) || `upscale-video` | ready | 4.0 GB | denoise 3.5 GB | seedvr2_3b_int8_convrot.safetensors (3.5) | fits whole | L4 / A10G (24 GB) | 26.1 GB (L40S) || `ai-influencer` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 9.9 GB (L40S) |+| `ai-influencer-photo` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | 12.2 GB (L40S) || `billboard` | 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) || `breakdown` | 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) || `brick-toy` | 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) |@@ -128,6 +129,6 @@ is not the least the app needs.| `h3-photo` | ready | 51.5 GB | encode 27.1 GB | qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1) | needs Modal | L40S (48 GB), by phases | 49.5 GB (H100) || `h3-video` | ready | 51.5 GB | encode 27.1 GB | qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1) | needs Modal | L40S (48 GB), by phases | 48.3 GB (H100) || `reshoot` | ready | 54.8 GB | encode 27.1 GB | qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1) | needs Modal | L40S (48 GB), by phases | 44.1 GB (L40S) |-| `cinema-video` | ready | 50.7 GB (+5.2 optional) | denoise 27.3 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | needs Modal | L40S (48 GB), by phases | not measured |+| `cinema-video` | ready | 50.7 GB (+5.2 optional) | denoise 27.3 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | needs Modal | L40S (48 GB), by phases | 44.3 GB (L40S) || `smoke` | ready | 0.0 GB | encode 0.0 GB | — | no models | any | not measured || `smoke-invert` | ready | 0.0 GB | encode 0.0 GB | — | no models | any | not measured |diff --git a/lab/cases.json b/lab/cases.jsonindex 3c62128..cc0b7b9 100644--- a/lab/cases.json+++ b/lab/cases.json@@ -569,10 +569,13 @@{"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": "cinema-video-detective", "showcase": true, "app": "cinema-video", "values": {"prompt": "A detective in a trench coat lights a cigarette under a streetlamp on a rainy night, then looks up as headlights sweep across his face", "camera": "the rich detail and fine grain of large-format 70mm film", "lens": "the warm, slightly soft rendering of 1970s cinema glass", "moves": ["slowly dollies in toward the subject"], "tempo": " One continuous shot, no cuts.", "duration": 5, "enhance": false}, "note": "Cinema Studio video, the still's showcase look (70mm grain, 1970s glass) as the first frame, one dolly-in, single shot, enhancer off. Check: grain and warm vintage look hold to the last frame, the camera pushes in, no cut, no camera drawn."},- {"id": "cinema-video-detective-enh", "app": "cinema-video", "values": {"prompt": "A detective in a trench coat lights a cigarette under a streetlamp on a rainy night, then looks up as headlights sweep across his face", "camera": "the rich detail and fine grain of large-format 70mm film", "lens": "the warm, slightly soft rendering of 1970s cinema glass", "moves": ["slowly dollies in toward the subject"], "tempo": " One continuous shot, no cuts.", "duration": 5, "enhance": true}, "note": "The same with the Gemma enhancer on: does the rewrite keep the dolly-in and the single take? Picks the enhancer's default."},- {"id": "cinema-video-western-moves", "app": "cinema-video", "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 (Ultrawide)", "moves": ["cranes down from above toward the subject", "arcs right around the subject"], "tempo": " Calm pacing: slow, unhurried movement in one long take.", "duration": 5, "enhance": false}, "note": "Two camera moves in order (crane down, then arc right), calm tempo, 21:9 with the western look. Check: both moves, in that order."},- {"id": "cinema-video-market-dynamic", "app": "cinema-video", "values": {"prompt": "A courier on a bicycle races through a crowded night market, weaving between the stalls", "genre": " from an action film", "lighting": "colored light from neon signs, magenta and cyan", "moves": ["tracks behind the subject as they move", "whip-pans fast to the side with motion blur"], "tempo": " Dynamic pacing: brisk movement and a quick cut to a closer angle halfway through.", "duration": 5, "enhance": false}, "note": "Dynamic tempo: does LTX-2.5 cut to a closer angle when asked, or does it stay one take? Tracking then whip pan."},+ {"id": "cinema-video-detective", "app": "cinema-video", "values": {"prompt": "A detective in a trench coat lights a cigarette under a streetlamp on a rainy night, then looks up as headlights sweep across his face", "camera": "the rich detail and fine grain of large-format 70mm film", "lens": "the warm, slightly soft rendering of 1970s cinema glass", "moves": ["slowly dollies in toward the subject"], "tempo": " One continuous shot, no cuts.", "duration": 5, "enhance": false}, "note": "Cinema Studio video, the still's showcase look (70mm grain, 1970s glass) as the first frame, one dolly-in, single shot, enhancer off. Check: grain and warm vintage look hold to the last frame, the camera pushes in, no cut, no camera drawn. Run 20261026-015446-l40s: 88.0 s, peak 44.3 GB; the push-in and the single take hold, the 70s warmth too, but his face drifts in the last second and he looks down before looking up. The enhancer version is the example."},+ {"id": "cinema-video-detective-enh", "showcase": true, "app": "cinema-video", "values": {"prompt": "A detective in a trench coat lights a cigarette under a streetlamp on a rainy night, then looks up as headlights sweep across his face", "camera": "the rich detail and fine grain of large-format 70mm film", "lens": "the warm, slightly soft rendering of 1970s cinema glass", "moves": ["slowly dollies in toward the subject"], "tempo": " One continuous shot, no cuts.", "duration": 5, "enhance": true}, "note": "Cinema Studio video, the still's showcase look (70mm grain, 1970s glass) as the first frame, one dolly-in, single shot, Gemma enhancer on. Run 20261026-015446-l40s: 100.2 s, peak 44.3 GB; push-in, no cut, he looks up into the rain and his face holds better than with the enhancer off, so the app defaults to it on. The headlights never sweep across."},+ {"id": "cinema-video-western-moves", "app": "cinema-video", "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 (Ultrawide)", "moves": ["cranes down from above toward the subject", "arcs right around the subject"], "tempo": " Calm pacing: slow, unhurried movement in one long take.", "duration": 5, "enhance": false}, "note": "Two camera moves in order (crane down, then arc right), calm tempo, 21:9 with the western look. Check: both moves, in that order. Run 20261026-015446-l40s: 37.1 s (warm shard), peak 44.3 GB; the camera arcs from his side to behind him over the canyon, but the crane down does not read and the backlight flare washes out the middle second: two moves in order are not reliable."},+ {"id": "cinema-video-market-dynamic", "app": "cinema-video", "values": {"prompt": "A courier on a bicycle races through a crowded night market, weaving between the stalls", "genre": " from an action film", "lighting": "colored light from neon signs, magenta and cyan", "moves": ["tracks behind the subject as they move", "whip-pans fast to the side with motion blur"], "tempo": " Dynamic pacing: brisk movement and a quick cut to a closer angle halfway through.", "duration": 5, "enhance": false}, "note": "Dynamic tempo: does LTX-2.5 cut to a closer angle when asked, or does it stay one take? Tracking then whip pan. Run 20261026-015446-l40s: 40.5 s, peak 44.4 GB; a whip pan with motion blur turns into a wider tracking shot behind the courier, so the angle changes once as asked, but the two moves come in the opposite order."},++ {"id": "aiinf-multi", "app": "ai-influencer", "values": {"gender": "A man", "hair": "A buzz cut.", "haircolor": "Platinum hair.", "feature": ["Freckles.", "A gap between the front teeth."], "trait": ["A nose piercing.", "Small gems stuck on the cheekbones."], "accessory": ["Glasses.", "Headphones around the neck."], "style": "Wearing streetwear."}, "note": "Several picks per group (two facial features, two distinctive traits, two accessories), as Higgsfield allows: do all six show?"},+{"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},@@ -708,6 +711,8 @@"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": {},"note": "AI Influencer. A believable person, not a glossy render? The traits picked show?"},+ {"id": "tpl-ai-influencer-photo", "showcase": true, "app": "ai-influencer-photo", "values": {"image": "@case:ref-fx-woman-a", "haircolor": "Platinum hair.", "accessory": ["Glasses."], "scene": "Tasting a dish at a busy street food stall at night."},+ "note": "AI Influencer (your photo). Same face, new platinum hair and glasses at a night food stall? (Runs 21-22 on a city street in streetwear drew sneakers with brand-like marks, so the example is waist-up.)"},{"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 2411756..04d1171 100644--- a/packs/image-flux3.json+++ b/packs/image-flux3.json@@ -2,6 +2,7 @@"pack": "image-flux3","apps": ["ai-influencer",+ "ai-influencer-photo","billboard","breakdown","brick-toy",@@ -85,6 +86,7 @@"license": "FLUX Kommunity License","used_by": ["ai-influencer",+ "ai-influencer-photo","billboard","breakdown","brick-toy",@@ -165,6 +167,7 @@"license": "FLUX Kommunity License","used_by": ["ai-influencer",+ "ai-influencer-photo","billboard","breakdown","brick-toy",@@ -233,6 +236,7 @@"license": "FLUX Kommunity License","used_by": ["ai-influencer",+ "ai-influencer-photo","billboard","breakdown","brick-toy",diff --git a/packs/index.json b/packs/index.jsonindex a4aeb2e..e55546c 100644--- a/packs/index.json+++ b/packs/index.json@@ -25,6 +25,7 @@"image-flux3": {"apps": ["ai-influencer",+ "ai-influencer-photo","billboard","breakdown","brick-toy",diff --git a/schema/app.schema.json b/schema/app.schema.jsonindex 5387ff8..baca009 100644--- a/schema/app.schema.json+++ b/schema/app.schema.json@@ -50,6 +50,7 @@"items": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },"description": "Sibling apps shown as a switch at the top of the form (Cinema Studio: image, video). Each app in the list includes itself and lists the same ids in the same order."},+ "mode_label": { "type": "string", "maxLength": 24, "description": "This app's name in its modes switch. Default: its section (Image, Video)." },"inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } },"presets": { "type": "array", "items": { "$ref": "#/$defs/preset" } },"outputs": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/output" } },diff --git a/server/registry.ts b/server/registry.tsindex e67d152..3f94d98 100644--- a/server/registry.ts+++ b/server/registry.ts@@ -50,6 +50,7 @@ export type AppManifest = {higgsfield_feature?: string;/** sibling apps shown as a switch at the top of the form (Cinema Studio: image, video) */modes?: string[];+ mode_label?: string;pack: string;status: "draft" | "ready";workflow?: string;diff --git a/server/server.ts b/server/server.tsindex b2bfde0..90e5de8 100644--- a/server/server.ts+++ b/server/server.ts@@ -90,6 +90,7 @@ function publicApp(a: App) {runnable: runnable(a),higgsfield_feature: a.higgsfield_feature ?? null,modes: a.modes ?? null,+ mode_label: a.mode_label ?? null,inputs: a.inputs.map(({ bind: _bind, options, ...rest }) => ({...rest, ...(options ? { options: options.map(({ sets: _sets, ...o }) => o) } : {}),})),diff --git a/test/runner.test.ts b/test/runner.test.tsindex f1c4dac..113e74a 100644--- a/test/runner.test.ts+++ b/test/runner.test.ts@@ -28,7 +28,8 @@ test("numbers are coerced and range-checked", () => {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");+ assert.equal(values.hair, "", "Any stays Any even though the default is long curly hair");+ assert.deepEqual(values.feature, [], "and a multiple select left empty stays empty instead of taking its default, Freckles");const wf = recorder();applyInputs(app, values, wf, () => null);const text = wf.sets["18:17.value"] as string;@@ -79,6 +80,24 @@ test("a multiple select keeps the picks in order and templates get them joined",assert.throws(() => resolveValues(app, { prompt: "x", moves: JSON.stringify(["pans left", "pans right", "tilts up", "tilts down"]) }), /at most 3/);});+test("the influencer takes several traits per group, and its photo mode keeps the face unless a pick changes something", () => {+ const app = byId("ai-influencer");+ const values = resolveValues(app, { trait: JSON.stringify(["A nose piercing.", "Braces on the teeth."]), accessory: "[]", seed: 1 });+ const wf = recorder();+ applyInputs(app, values, wf, () => null);+ const text = wf.sets["18:17.value"] as string;+ assert.ok(text.includes("Freckles. Dark brown") || text.includes("Freckles."), "the default facial feature is still a list of one");+ assert.ok(text.includes("A nose piercing. Braces on the teeth."), text);+ assert.ok(!/Glasses|Headphones/.test(text));+ const photo = byId("ai-influencer-photo");+ assert.deepEqual(photo.modes, ["ai-influencer", "ai-influencer-photo"]);+ const wf2 = recorder();+ applyInputs(photo, resolveValues(photo, { image: { bytes: new Uint8Array([1]), name: "a.png" }, seed: 1 }), wf2, () => null);+ const p = wf2.sets["4.text"] as string;+ assert.match(p, /^A vertical photo for social media of the same person as in <ref_image_0>, as an influencer\. Standing in a plain light-gray photo studio/);+ assert.ok(!/hair\.|Freckles/.test(p), "nothing about hair or face is written until picked");+});+test("the aspect select sizes the first frame and the video together", () => {const app = byId("cinema-video");const wf = recorder();diff --git a/tools/template_apps.py b/tools/template_apps.pyindex 42d0958..624251b 100644--- a/tools/template_apps.py+++ b/tools/template_apps.py@@ -118,13 +118,15 @@ 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, sidebar=False):+ defaults=None, klein=None, face_mask=False, effect_lora=None, outpaint=False, sidebar=False, modes=None, mode_label=None):"""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)."""+ effect_lora: the effect bases' LoRA file; outpaint (edit): draw only a border added around the photo (a select's sets pad it);+ modes, mode_label: sibling apps shown as a switch at the top of the form, and this app's name in 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, sidebar=sidebar))+ defaults=defaults or {}, klein=klein, face_mask=face_mask, effect_lora=effect_lora, outpaint=outpaint, sidebar=sidebar,+ modes=modes, mode_label=mode_label))def pad(left, top, right, bottom):@@ -521,6 +523,15 @@ def any_(label, pairs, default="", help_=None):return sel(label[0], label[1], [("Any", "")] + pairs, default, help_)+def many(label, pairs, default=(), help_=None, max_=3):+ """A builder group that takes several picks at once, as Higgsfield's distinctive traits and accessories do: the sentences of+ the picks, one after the other. None picked writes nothing."""+ d = sel(label[0], label[1], pairs, "", help_)+ d["default"] = list(default)+ d["multiple"] = {"max": max_, "join": " "}+ return d++KIND = sel("kind", "Character type", [("Human", "an ordinary, believable person"),("Bold", "a person with bold, striking, slightly exaggerated features"),@@ -569,29 +580,30 @@ INFLUENCER = [("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"), [+ many(("feature", "Facial features"), [("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."),+ ("Receding chin", "A receding chin."), ("Big forehead", "A big forehead.")], ["Freckles."], "Up to 3."),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."),+ many(("trait", "Distinctive traits"), [("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.")]),+ ("Elf ears", "Pointed elf ears."), ("Long lashes", "Very long eyelashes."), ("Nose strip", "A strip across the nose.")],+ help_="Up to 3."),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.")]),+ many(("accessory", "Accessories"), [("Glasses", "Glasses."), ("Headphones", "Headphones around the neck."), ("Jewelry", "Jewelry."),+ ("Hat", "A hat."), ("Bag", "A bag over one shoulder.")], help_="Up to 3."),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."),@@ -601,13 +613,33 @@ INFLUENCER = ["Standing in a plain light-gray photo studio, full body, soft even light."),]+def from_photo(group: dict) -> dict:+ """The same group for the photo mode, starting at "Any" (or none), so the person keeps what the photo shows until a pick changes it."""+ g = json.loads(json.dumps(group))+ g["default"] = [] if g.get("multiple") else ""+ return g+++BY_ID = {g["id"]: g for g in INFLUENCER}+INFLUENCER_PHOTO = [from_photo(BY_ID[i]) for i in ("hair", "haircolor", "build", "facialhair", "feature", "trait", "style", "accessory")] + [BY_ID["scene"]]+A("ai-influencer", "AI Influencer", "AI Influencer", "portraits", "klein", None,"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.",+ "a believable photo. The clothes and shoes are plain, with no letters, prints, labels or logos anywhere.",INFLUENCER, None, {}, "A believable person, not a glossy render? The traits picked show?",- defaults={"aspect": "2:3"}, sidebar=True)+ defaults={"aspect": "2:3"}, sidebar=True, modes=["ai-influencer", "ai-influencer-photo"], mode_label="New character")+A("ai-influencer-photo", "AI Influencer · Your Photo", "AI Influencer (your photo)", "portraits", "edit", "Your photo",+ "Your own face as the influencer: change hair, style, extras and scene, the face stays (FLUX 3 Klein, one reference).",+ "A vertical photo for social media of the same person as in <ref_image_0>, as an influencer. {hair} {haircolor} {build} {facialhair} {feature} "+ "{trait} {style} {accessory} {scene} Everything the lines above do not change stays as in the photo: the same face (its shape, eyes, nose, "+ "mouth and marks), skin tone and age, and the same hairstyle and hair length unless a new hairstyle is given. Natural skin texture with visible "+ "pores, a believable photo. The clothes and shoes are plain, with no letters, prints, labels or logos anywhere.",+ INFLUENCER_PHOTO, WOMAN, {"haircolor": "Platinum hair.", "accessory": ["Glasses."], "scene": "Tasting a dish at a busy street food stall at night."},+ "Same face, new platinum hair and glasses at a night food stall? (Runs 21-22 on a city street in streetwear drew sneakers with brand-like marks, "+ "so the example is waist-up.)", sidebar=True,+ modes=["ai-influencer", "ai-influencer-photo"], mode_label="Your photo")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.",@@ -769,6 +801,8 @@ def manifest(t: dict) -> dict:"id": t["id"], "name": t["name"], "section": base["section"],"summary": t["summary"],"higgsfield_feature": t["feature"],+ **({"modes": t["modes"]} if t["modes"] else {}),+ **({"mode_label": t["mode_label"]} if t["mode_label"] else {}),"pack": base["pack"], "status": "ready", "workflow": "workflow.api.json","source": {**src.get("source", {}), "notes": notes},"inputs": inputs,diff --git a/web/app.css b/web/app.cssindex 6ec5866..1c6b92d 100644--- a/web/app.css+++ b/web/app.css@@ -311,6 +311,8 @@ pre.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0d0d.pop h4 .mini-link { float: right; border: 0; background: none; color: var(--dim); font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }.pop h4 .mini-link:hover { color: var(--ink); }.multi-list { max-height: 360px; overflow-y: auto; }+.pop .usein { max-height: min(460px, 70vh); overflow-y: auto; }+.pop .usein details summary { padding: 8px 10px; color: var(--dim); cursor: pointer; font-size: 13px; }.pop .opt[aria-pressed="true"] { color: var(--ink); background: #1f1f23; }.pop .opt .pick { margin-left: auto; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #0b0b0c; font-size: 11.5px; font-weight: 800; }.pop .opt .pick svg { width: 12px; height: 12px; }diff --git a/web/examples/ai-influencer-photo/card.jpg b/web/examples/ai-influencer-photo/card.jpgnew file mode 100644index 0000000..8c21a16Binary files /dev/null and b/web/examples/ai-influencer-photo/card.jpg differdiff --git a/web/examples/ai-influencer-photo/full.jpg b/web/examples/ai-influencer-photo/full.jpgnew file mode 100644index 0000000..d216632Binary files /dev/null and b/web/examples/ai-influencer-photo/full.jpg differdiff --git a/web/examples/ai-influencer-photo/input-image-full.jpg b/web/examples/ai-influencer-photo/input-image-full.jpgnew file mode 100644index 0000000..34b200dBinary files /dev/null and b/web/examples/ai-influencer-photo/input-image-full.jpg differdiff --git a/web/examples/ai-influencer-photo/input-image.jpg b/web/examples/ai-influencer-photo/input-image.jpgnew file mode 100644index 0000000..fcacf4fBinary files /dev/null and b/web/examples/ai-influencer-photo/input-image.jpg differdiff --git a/web/examples/cinema-video/card.mp4 b/web/examples/cinema-video/card.mp4new file mode 100644index 0000000..b7d651bBinary files /dev/null and b/web/examples/cinema-video/card.mp4 differdiff --git a/web/examples/cinema-video/full.mp4 b/web/examples/cinema-video/full.mp4new file mode 100644index 0000000..a771b9dBinary files /dev/null and b/web/examples/cinema-video/full.mp4 differdiff --git a/web/examples/cinema-video/poster.jpg b/web/examples/cinema-video/poster.jpgnew file mode 100644index 0000000..e3f40a5Binary files /dev/null and b/web/examples/cinema-video/poster.jpg differdiff --git a/web/examples/index.json b/web/examples/index.jsonindex 3ceae1f..f53940c 100644--- a/web/examples/index.json+++ b/web/examples/index.json@@ -4550,7 +4550,75 @@"peak_vram_gb": 12.14,"gpu": "NVIDIA L40S, 46068 MiB","run": "20261026-003153-l40s"+ },+ "cinema-video": {+ "case": "cinema-video-detective-enh",+ "type": "video",+ "card": "examples/cinema-video/card.mp4",+ "poster": "examples/cinema-video/poster.jpg",+ "full": "examples/cinema-video/full.mp4",+ "inputs": [],+ "values": {+ "prompt": "A detective in a trench coat lights a cigarette under a streetlamp on a rainy night, then looks up as headlights sweep across his face",+ "moves": [+ "slowly dollies in toward the subject"+ ],+ "tempo": " One continuous shot, no cuts.",+ "genre": "",+ "era": "",+ "camera": "the rich detail and fine grain of large-format 70mm film",+ "lens": "the warm, slightly soft rendering of 1970s cinema glass",+ "focal": "a natural 35mm perspective",+ "aperture": "aperture f/1.4, shallow depth of field, creamy bokeh",+ "lighting": "cinematic lighting",+ "palette": "natural color science",+ "aspect": "16:9 (Widescreen)",+ "duration": 5,+ "enhance": true+ },+ "seed": 42,+ "seconds": 100.2,+ "peak_vram_gb": 44.3,+ "gpu": "NVIDIA L40S, 46068 MiB",+ "run": "20261026-015446-l40s"+ },+ "ai-influencer-photo": {+ "case": "tpl-ai-influencer-photo",+ "type": "image",+ "card": "examples/ai-influencer-photo/card.jpg",+ "poster": null,+ "full": "examples/ai-influencer-photo/full.jpg",+ "inputs": [+ {+ "id": "image",+ "label": "Your photo",+ "type": "image",+ "src": "examples/ai-influencer-photo/input-image.jpg",+ "full": "examples/ai-influencer-photo/input-image-full.jpg",+ "from_case": "ref-fx-woman-a"+ }+ ],+ "values": {+ "hair": "",+ "haircolor": "Platinum hair.",+ "build": "",+ "facialhair": "",+ "feature": [],+ "trait": [],+ "style": "",+ "accessory": [+ "Glasses."+ ],+ "scene": "Tasting a dish at a busy street food stall at night.",+ "details": "",+ "steps": 16+ },+ "seed": 42,+ "seconds": 18.2,+ "peak_vram_gb": 12.21,+ "gpu": "NVIDIA L40S, 46068 MiB",+ "run": "20261026-021906-l40s"}},- "updated_from": "20261026-003753-l40s"+ "updated_from": "20261026-021906-l40s"}diff --git a/web/js/catalog.js b/web/js/catalog.jsindex bb28b86..a0a1fdd 100644--- a/web/js/catalog.js+++ b/web/js/catalog.js@@ -29,7 +29,7 @@ export const CATEGORIES = [{ 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", "photodump", "headshot", "commercial-faces", "style-snap", "skin-enhancer", "outfit-vending", "glitter-sticker", "fashion-factory", "try-on", "outfit-swap", "outfit-shot"] },+ { id: "portraits", apps: ["ai-influencer", "ai-influencer-photo", "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"] },@@ -171,6 +171,7 @@ const TAGLINES = {sfx: ["Sound for every scene", "Sonido para cada escena"],"ai-influencer": ["A made-up influencer for your feed", "Un influencer inventado para tu feed"],+ "ai-influencer-photo": ["Your face, a new look", "Tu cara, un look nuevo"],angles: ["The same scene from another angle", "La misma escena desde otro ángulo"],"asmr-host": ["You hosting an ASMR studio", "Tú conduciendo un estudio de ASMR"],"asmr-product": ["Your product in an ASMR clip", "Tu producto en un clip de ASMR"],diff --git a/web/js/feed.js b/web/js/feed.jsindex 4aaca9d..2b28ffc 100644--- a/web/js/feed.js+++ b/web/js/feed.js@@ -165,6 +165,8 @@ function doneCard(e, list) {el("div", { class: "ov" },el("div", { class: "row" }, el("span", { class: "tag dark" }, app?.name ?? e.app),el("div", { class: "acts" }, dl,+ item.type !== "audio" && hooks.useIn ? el("button", { class: "mini", type: "button", title: t("act.usein"), "aria-label": t("act.usein"),+ onclick: (ev) => { ev.stopPropagation(); hooks.useIn(ev.currentTarget, item); } }, icon("send")) : null,el("button", { class: "mini", type: "button", title: t("act.compare"), "aria-label": t("act.compare"), onclick: stop(() => hooks.compare?.(item)) }, icon("compare")),deleteButton(() => feed.remove(e.id)))),el("div", { class: "row" }, el("span", { class: "meta" }, prompt || `${ago(e.created)}${e.seconds ? ` · ${fmtSeconds(e.seconds)}` : ""}`),diff --git a/web/js/i18n.js b/web/js/i18n.jsindex e8eee42..7502222 100644--- a/web/js/i18n.js+++ b/web/js/i18n.js@@ -68,7 +68,7 @@ const en = {"status.step": "step {a}/{b}", "status.failed": "Failed", "status.canceled": "Canceled", "status.lost": "Lost", "status.expired": "Expired","status.elapsed": "{s} so far","act.open": "Open", "act.download": "Download", "act.compare": "Compare", "act.recreate": "Recreate", "act.delete": "Delete", "act.cancel": "Cancel",- "act.retry": "Try again", "act.copy": "Copy prompt", "act.reuse": "Reuse prompt", "act.sure": "Sure?", "act.close": "Close", "act.prev": "Previous", "act.next": "Next",+ "act.retry": "Try again", "act.copy": "Copy prompt", "act.reuse": "Reuse prompt", "act.usein": "Use in…", "usein.more": "Every app that takes it ({n})", "toast.sent": "Sent to {app}", "act.sure": "Sure?", "act.close": "Close", "act.prev": "Previous", "act.next": "Next","toast.started": "{app} started", "toast.copied": "Copied", "toast.loaded": "Loaded into {app}", "toast.deleted": "Deleted","how.pipeline": "Pipeline", "how.pipeline.d": "apps/{id}/workflow.api.json runs on your ComfyUI backend; app.json maps each field of the form to a node input.","how.models": "Open-weight models", "how.total": "{gb} GB to download", "how.gated": "accept the license on Hugging Face", "how.optional": "optional",@@ -157,7 +157,7 @@ const es = {"status.step": "paso {a}/{b}", "status.failed": "Falló", "status.canceled": "Cancelado", "status.lost": "Perdido", "status.expired": "Expirado","status.elapsed": "{s} hasta ahora","act.open": "Abrir", "act.download": "Descargar", "act.compare": "Comparar", "act.recreate": "Recrear", "act.delete": "Borrar", "act.cancel": "Cancelar",- "act.retry": "Reintentar", "act.copy": "Copiar prompt", "act.reuse": "Reusar prompt", "act.sure": "¿Seguro?", "act.close": "Cerrar", "act.prev": "Anterior", "act.next": "Siguiente",+ "act.retry": "Reintentar", "act.copy": "Copiar prompt", "act.reuse": "Reusar prompt", "act.usein": "Usar en…", "usein.more": "Todas las apps que lo aceptan ({n})", "toast.sent": "Enviado a {app}", "act.sure": "¿Seguro?", "act.close": "Cerrar", "act.prev": "Anterior", "act.next": "Siguiente","toast.started": "{app} en marcha", "toast.copied": "Copiado", "toast.loaded": "Cargado en {app}", "toast.deleted": "Borrado","how.pipeline": "Pipeline", "how.pipeline.d": "apps/{id}/workflow.api.json corre en tu backend de ComfyUI; app.json conecta cada campo del formulario con la entrada de un nodo.","how.models": "Modelos de pesos abiertos", "how.total": "{gb} GB por descargar", "how.gated": "acepta la licencia en Hugging Face", "how.optional": "opcional",diff --git a/web/js/main.js b/web/js/main.jsindex 4d0258c..9f8b31e 100644--- a/web/js/main.js+++ b/web/js/main.js@@ -7,7 +7,7 @@ import { t } from "./i18n.js";import { loadCatalog, byId, lastAppFor, studioOf, FEATURED, hosted } from "./catalog.js";import { topbar, gpuState, pollGpu } from "./nav.js";import { exploreView, appsView, libraryView, vramView } from "./views.js";-import { workspaceView, recreate } from "./workspace.js";+import { workspaceView, recreate, useIn } from "./workspace.js";import { hooks, feed } from "./feed.js";import { openViewer } from "./viewer.js";import { openCompare } from "./compare.js";@@ -60,6 +60,7 @@ hooks.open = (items, key) => openViewer(items, key);hooks.recreate = (item) => recreate(item);hooks.retry = (item) => recreate(item, { run: true });hooks.compare = (item) => openCompare(item);+hooks.useIn = (anchor, item, done) => useIn(anchor, item, done);hooks.rerender = () => render({ keepScroll: true });// a run starting or ending changes what the GPU pill should saydiff --git a/web/js/util.js b/web/js/util.jsindex 75710d8..3ca5af2 100644--- a/web/js/util.js+++ b/web/js/util.js@@ -47,6 +47,7 @@ const P = {clock: "C12 12 9|M12 7v5l3 2",chip: "M7 7h10v10H7z|M10 3v4|M14 3v4|M10 17v4|M14 17v4|M3 10h4|M3 14h4|M17 10h4|M17 14h4",swap: "M7 7h12l-3-3|M17 17H5l3 3",+ send: "M4 12h13|M12 6l6 6-6 6|M20 5v14",wand: "M5 19L15 9|M13 7l4 4|M18 3v3|M16.5 4.5h3|M20 9v2|M19 10h2",ext: "M14 4h6v6|M20 4l-9 9|M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",layers: "M12 3l9 5-9 5-9-5z|M3 13l9 5 9-5",diff --git a/web/js/viewer.js b/web/js/viewer.jsindex 3e943c2..4b4d7de 100644--- a/web/js/viewer.js+++ b/web/js/viewer.js@@ -8,6 +8,7 @@ import { hooks, feed, deleteButton } from "./feed.js";import { flags, flagButton } from "./flags.js";function optionLabel(inp, v) {+ if (Array.isArray(v)) return v.map((x) => optionLabel(inp, x)).join(inp.multiple?.ordered ? " → " : ", ");const o = (inp.options || []).find((x) => String(x.value) === String(v));return o ? o.label : String(v ?? "");}@@ -50,7 +51,7 @@ export function openViewer(items, startKey) {const pi = app ? promptInput(app) : null;const prompt = pi ? String(item.values?.[pi.id] ?? "") : "";const labels = Object.fromEntries((app?.inputs || []).map((x) => [x.id, x]));- const settings = Object.entries(item.values || {}).filter(([k, v]) => labels[k] && labels[k] !== pi && labels[k].type !== "seed" && v !== "" && v !== null && v !== undefined);+ const settings = Object.entries(item.values || {}).filter(([k, v]) => labels[k] && labels[k] !== pi && labels[k].type !== "seed" && v !== "" && v !== null && v !== undefined && !(Array.isArray(v) && !v.length));const stats = [item.seconds ? [icon("clock"), t("view.gpu", { s: fmtSeconds(item.seconds) })] : null,item.total && (!item.seconds || item.total - item.seconds > 2) ? [item.seconds ? null : icon("clock"), t("view.total", { s: fmtSeconds(item.total) })] : null,@@ -78,6 +79,7 @@ export function openViewer(items, startKey) {el("div", { class: "acts" },app ? el("button", { class: "btn lime", type: "button", onclick: () => { close(); hooks.recreate?.(item); } }, icon("redo"), t("act.recreate")) : null,url ? el("a", { class: "btn ghost", href: url, download: downloadName(item, url) }, icon("download"), t("act.download")) : null,+ url && output.type !== "audio" && hooks.useIn ? el("button", { class: "btn ghost", type: "button", onclick: (ev) => hooks.useIn(ev.currentTarget, { ...item, full: url, type: output.type }, close) }, icon("send"), t("act.usein")) : null,el("button", { class: "btn ghost", type: "button", onclick: () => { close(); hooks.compare?.({ ...item, full: url, type: output.type }); } }, icon("compare"), t("act.compare")),item.kind === "example" && app ? flagButton(flags.key(app.id)) : null,item.kind === "history" ? deleteButton(async () => {diff --git a/web/js/workspace.js b/web/js/workspace.jsindex d455a6e..36cc6dd 100644--- a/web/js/workspace.js+++ b/web/js/workspace.js@@ -14,6 +14,11 @@ import { openPainter, maskPreview } from "./paint.js";// ------------------------------------------------------------------ form state (per app, kept while the page is open)const forms = new Map();+/** A multiple select's value from older saves or examples, where it was one string. */+function asPicks(inp, v) {+ return inp.multiple && !Array.isArray(v) && v !== undefined && v !== null ? (v === "" ? [] : [v]) : v;+}+function validValue(inp, v) {if (v === undefined || v === null) return false;if (inp.multiple) return Array.isArray(v) && v.length <= (inp.multiple.max ?? Infinity) && v.every((x) => (inp.options || []).some((o) => String(o.value) === String(x)));@@ -30,7 +35,7 @@ export function formFor(app) {for (const inp of app.inputs) {if (isMedia(inp.type)) continue;const fallback = inp.type === "textarea" || inp.type === "text" ? "" : inp.type === "seed" ? -1 : inp.multiple ? [...(inp.default ?? [])] : inp.default ?? "";- values[inp.id] = validValue(inp, saved[inp.id]) ? saved[inp.id] : fallback;+ values[inp.id] = validValue(inp, asPicks(inp, saved[inp.id])) ? asPicks(inp, saved[inp.id]) : fallback;}f = { values, files: {}, preset: (app.presets || []).some((p) => p.id === saved.__preset) ? saved.__preset : "", count: 1 };forms.set(app.id, f);@@ -161,7 +166,7 @@ export async function recreate(item, { run = false } = {}) {const f = formFor(app);for (const inp of app.inputs) {if (isMedia(inp.type)) continue;- if (item.values?.[inp.id] !== undefined) f.values[inp.id] = item.values[inp.id];+ if (item.values?.[inp.id] !== undefined && validValue(inp, asPicks(inp, item.values[inp.id]))) f.values[inp.id] = asPicks(inp, item.values[inp.id]);if (inp.type === "seed" && item.seed !== null && item.seed !== undefined) f.values[inp.id] = item.seed;}f.preset = item.preset || "";@@ -183,6 +188,37 @@ export async function recreate(item, { run = false } = {}) {else toast(t("toast.loaded", { app: app.name }));}+/** Where a result usually goes next, by the kind of file it is (the rest of the apps that take it follow). */+const NEXT = {+ image: ["video", "motion-transfer", "h3-photo", "relight", "upscale", "inpaint", "edit", "expand-image", "character", "remove-bg"],+ video: ["upscale-video", "extend-video", "reframe", "mixed-media", "video-remove-bg", "smooth", "sdr-hdr"],+};++/** "Use in…": put a result (an image or a video) into the first slot of that kind in another app, and open that app. */+export function useIn(anchor, item, done) {+ const type = item.type;+ const slotOf = (a) => a.inputs.find((i) => i.type === type && !i.paint);+ const first = (NEXT[type] || []).map((id) => byId.get(id)).filter((a) => a && slotOf(a));+ const rest = apps.filter((a) => slotOf(a) && !first.includes(a)).sort((x, y) => x.name.localeCompare(y.name));+ const go = async (a) => {+ closePopover();+ done?.();+ try {+ const ext = extOf(item.full) || (type === "video" ? "mp4" : "png");+ if (!setFile(a, slotOf(a), await fileFromUrl(item.full, `${item.app || "result"}.${ext}`))) return;+ if (location.hash !== `#/app/${a.id}`) location.hash = `#/app/${a.id}`;+ else hooks.rerender?.();+ toast(t("toast.sent", { app: a.name }));+ } catch (err) {+ toast(err.message, { error: true });+ }+ };+ const row = (a) => el("button", { class: "opt", type: "button", onclick: () => go(a) },+ el("span", { class: "thumb" }, appThumb(a)), el("span", { class: "two" }, el("b", {}, a.name), el("small", {}, tagline(a))));+ popover(anchor, el("div", { class: "usein" }, el("h4", {}, t("act.usein")), ...first.map(row),+ rest.length ? el("details", {}, el("summary", {}, t("usein.more", { n: rest.length })), ...rest.map(row)) : null), { width: 340 });+}+// ------------------------------------------------------------------ small partsfunction appThumb(a) {const ex = a.example?.full ? a.example : null;@@ -238,7 +274,8 @@ function modeSwitch(app) {if (!app.modes) return null;return el("div", { class: "seg modes", role: "group", "aria-label": app.name }, ...app.modes.map((id) => byId.get(id)).filter(Boolean).map((a) =>el("button", { type: "button", "aria-pressed": String(a.id === app.id), onclick: () => { if (a.id !== app.id) location.hash = `#/app/${a.id}`; } },- icon(a.section === "video" ? "video" : "image"), t(`nav.${a.section}`))));+ icon(a.mode_label ? (a.inputs.some((i) => i.type === "image") ? "user" : "spark") : a.section === "video" ? "video" : "image"),+ a.mode_label || t(`nav.${a.section}`))));}/** A select marked "gallery" (the effects picker): cards with each option's lab example, and the chosen one playing. */