Upload folder using huggingface_hub
Browse files- backup_sessao_2026-08-06/apex_edit.json +1 -0
- backup_sessao_2026-08-06/configs/apex_bat_rand.json +1 -0
- backup_sessao_2026-08-06/configs/apex_bat_ref.json +1 -0
- backup_sessao_2026-08-06/configs/apex_ctx_512.toml +66 -0
- backup_sessao_2026-08-06/configs/apex_ctx_dataset.toml +23 -0
- backup_sessao_2026-08-06/configs/apex_ctx_smoke.toml +66 -0
- backup_sessao_2026-08-06/configs/apex_ctx_smoke_resume.toml +66 -0
- backup_sessao_2026-08-06/configs/armA_frame.toml +62 -0
- backup_sessao_2026-08-06/configs/armB_global.toml +62 -0
- backup_sessao_2026-08-06/configs/armC_v2.toml +62 -0
- backup_sessao_2026-08-06/configs/arms_ds4_384_dataset.toml +13 -0
- backup_sessao_2026-08-06/configs/arms_ds4_768_dataset.toml +13 -0
- backup_sessao_2026-08-06/configs/k2_proximacena_smoke.toml +57 -0
- backup_sessao_2026-08-06/configs/k2_proximacena_v2.toml +57 -0
- backup_sessao_2026-08-06/configs/konrad_k2.yaml +42 -0
- backup_sessao_2026-08-06/configs/konrad_k2_arm2.yaml +46 -0
- backup_sessao_2026-08-06/configs/konrad_orig_samples.json +47 -0
- backup_sessao_2026-08-06/configs/konrad_smoke.yaml +42 -0
- backup_sessao_2026-08-06/configs/nk2e_bat2_prompts_json.txt +3 -0
- backup_sessao_2026-08-06/configs/nk2e_bat2_txt_originais.txt +3 -0
- backup_sessao_2026-08-06/configs/nk2e_ctx_samples.txt +3 -0
- backup_sessao_2026-08-06/configs/nk2e_ctx_samples_11.txt +11 -0
- backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples11.txt +11 -0
- backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples11_shufref.txt +11 -0
- backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples3.txt +3 -0
- backup_sessao_2026-08-06/configs/nk2e_orig_samples11.txt +11 -0
- backup_sessao_2026-08-06/configs/nk2e_orig_samples11_shufref.txt +11 -0
- backup_sessao_2026-08-06/configs/nk2e_orig_samples14.txt +14 -0
- backup_sessao_2026-08-06/configs/nk2e_orig_samples3.txt +3 -0
- backup_sessao_2026-08-06/configs/nk2e_orig_samples6.txt +6 -0
- backup_sessao_2026-08-06/configs/omini_sauce_1.toml +55 -0
- backup_sessao_2026-08-06/configs/omini_sauce_dataset.toml +26 -0
- backup_sessao_2026-08-06/configs/proximacena_dataset.toml +29 -0
- backup_sessao_2026-08-06/configs/proximacena_samples.json +26 -0
- backup_sessao_2026-08-06/configs/proximacena_smoke_dataset.toml +11 -0
- backup_sessao_2026-08-06/configs/saga512_dataset.toml +36 -0
- backup_sessao_2026-08-06/configs/saga512_samples.json +47 -0
- backup_sessao_2026-08-06/configs/saga512_smoke.toml +62 -0
- backup_sessao_2026-08-06/configs/saga512_train.toml +62 -0
- backup_sessao_2026-08-06/nk2e_arquivos_novos.tgz +3 -0
- backup_sessao_2026-08-06/nk2e_patches.diff +395 -0
- backup_sessao_2026-08-06/tools_konrad/comfy_sample.py +89 -0
- backup_sessao_2026-08-06/workflow_13k.json +913 -0
backup_sessao_2026-08-06/apex_edit.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"id": "krea2-identity-edit-unified", "revision": 0, "last_node_id": 108, "last_link_id": 28, "nodes": [{"id": 29, "type": "SaveImage", "pos": [3180, -160], "size": [760, 860], "flags": {}, "order": 23, "mode": 0, "inputs": [{"name": "images", "type": "IMAGE", "link": 26}], "outputs": [{"name": "images", "type": "IMAGE", "links": null}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "SaveImage"}, "widgets_values": ["krea2_identity_edit"]}, {"id": 53, "type": "KSampler", "pos": [2800, -160], "size": [320, 560], "flags": {}, "order": 21, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 3}, {"name": "positive", "type": "CONDITIONING", "link": 22}, {"name": "negative", "type": "CONDITIONING", "link": 23}, {"name": "latent_image", "type": "LATENT", "link": 24}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [25]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "KSampler"}, "widgets_values": [1088049369132323, "randomize", 8, 1, "euler", "simple", 1]}, {"id": 54, "type": "VAEDecode", "pos": [2810, 440], "size": [225, 8], "flags": {"collapsed": true}, "order": 22, "mode": 0, "inputs": [{"name": "samples", "type": "LATENT", "link": 25}, {"name": "vae", "type": "VAE", "link": 6}], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [26]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "VAEDecode"}, "widgets_values": []}, {"id": 55, "type": "UNETLoader", "pos": [60, -160], "size": [480, 130], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [1]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "UNETLoader", "models": [{"name": "krea2_turbo_fp8_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors", "directory": "diffusion_models"}]}, "widgets_values": ["krea2_raw_fp8_scaled.safetensors", "default"]}, {"id": 56, "type": "CLIPLoader", "pos": [60, 30], "size": [480, 140], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [{"name": "CLIP", "type": "CLIP", "links": [4, 5]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "CLIPLoader", "models": [{"name": "qwen3vl_4b_fp8_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors", "directory": "text_encoders"}]}, "widgets_values": ["qwen3vl_4b_bf16.safetensors", "krea2", "default"]}, {"id": 57, "type": "VAELoader", "pos": [60, 220], "size": [480, 90], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [{"name": "VAE", "type": "VAE", "links": [6, 7, 8, 16]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "VAELoader", "models": [{"name": "qwen_image_vae.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors", "directory": "vae"}]}, "widgets_values": ["qwen_image_vae.safetensors"]}, {"id": 71, "type": "LoraLoaderModelOnly", "pos": [60, 370], "size": [480, 120], "flags": {}, "order": 14, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 1}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [28]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "LoraLoaderModelOnly"}, "widgets_values": ["krea2_turbo_lora_rank_64_bf16.safetensors", 1.0]}, {"id": 72, "type": "LoadImage", "pos": [640, -160], "size": [520, 440], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [11, 12, 13, 14]}, {"name": "MASK", "type": "MASK", "links": null}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "LoadImage"}, "widgets_values": ["example.png", "image"]}, {"id": 73, "type": "VAEEncode", "pos": [1260, 60], "size": [225, 8], "flags": {"collapsed": true}, "order": 15, "mode": 0, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 11}, {"name": "vae", "type": "VAE", "link": 7}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [15]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "VAEEncode"}, "widgets_values": []}, {"id": 79, "type": "Krea2EditModelPatch", "pos": [2320, -160], "size": [420, 350], "flags": {}, "order": 20, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 2}, {"name": "source_latent", "type": "LATENT", "link": 15}, {"name": "source_latent_b", "shape": 7, "type": "LATENT", "link": 21}, {"name": "ref_boost_mask", "shape": 7, "type": "MASK", "link": null}, {"name": "vae", "shape": 7, "type": "VAE", "link": 16}, {"name": "source_image", "shape": 7, "type": "IMAGE", "link": 14}, {"name": "source_image_b", "shape": 7, "type": "IMAGE", "link": 20}, {"name": "target_latent", "shape": 7, "type": "LATENT", "link": 27}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [3]}], "properties": {"Node name for S&R": "Krea2EditModelPatch"}, "widgets_values": [1.0, 1, "fit"]}, {"id": 82, "type": "EmptySD3LatentImage", "pos": [1260, 410], "size": [270, 150], "flags": {}, "order": 16, "mode": 0, "inputs": [{"name": "width", "type": "INT", "widget": {"name": "width"}, "link": 9}, {"name": "height", "type": "INT", "widget": {"name": "height"}, "link": 10}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [24, 27]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "EmptySD3LatentImage"}, "widgets_values": [1024, 1024, 1]}, {"id": 83, "type": "ResolutionSelector", "pos": [1250, 150], "size": [270, 190], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [{"name": "width", "type": "INT", "links": [9]}, {"name": "height", "type": "INT", "links": [10]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "ResolutionSelector"}, "widgets_values": ["1:1 (Square)", 1, 8]}, {"id": 84, "type": "Krea2EditGroundedEncode", "pos": [1620, -160], "size": [620, 330], "flags": {}, "order": 18, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 4}, {"name": "image", "shape": 7, "type": "IMAGE", "link": 12}, {"name": "image_b", "shape": 7, "type": "IMAGE", "link": 18}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [22]}], "properties": {"Node name for S&R": "Krea2EditGroundedEncode"}, "widgets_values": ["Change her outfit to a red raincoat.", 768, ""]}, {"id": 85, "type": "Krea2EditGroundedEncode", "pos": [1620, 250], "size": [225, 8], "flags": {"collapsed": true}, "order": 19, "mode": 0, "inputs": [{"name": "clip", "type": "CLIP", "link": 5}, {"name": "image", "shape": 7, "type": "IMAGE", "link": 13}, {"name": "image_b", "shape": 7, "type": "IMAGE", "link": 19}], "outputs": [{"name": "CONDITIONING", "type": "CONDITIONING", "links": [23]}], "title": "negative (leave empty)", "properties": {"Node name for S&R": "Krea2EditGroundedEncode"}, "widgets_values": ["", 768, ""]}, {"id": 90, "type": "LoadImage", "pos": [640, 640], "size": [520, 440], "flags": {}, "order": 5, "mode": 4, "inputs": [], "outputs": [{"name": "IMAGE", "type": "IMAGE", "links": [17, 18, 19, 20]}, {"name": "MASK", "type": "MASK", "links": null}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "LoadImage"}, "widgets_values": ["example_person.png", "image"]}, {"id": 92, "type": "VAEEncode", "pos": [1250, 970], "size": [228.75, 8], "flags": {"collapsed": true}, "order": 17, "mode": 4, "inputs": [{"name": "pixels", "type": "IMAGE", "link": 17}, {"name": "vae", "type": "VAE", "link": 8}], "outputs": [{"name": "LATENT", "type": "LATENT", "links": [21]}], "properties": {"cnr_id": "comfy-core", "ver": "0.26.0", "Node name for S&R": "VAEEncode"}, "widgets_values": []}, {"id": 100, "type": "Note", "pos": [60, 540], "size": [480, 150], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "title": "Model files", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["Files (auto-downloadable via the manager links):\n- krea2_turbo_fp8_scaled (or krea2_raw_bf16 - see GENERATE note)\n- qwen3vl_4b_fp8_scaled text encoder, type 'krea2'\n- qwen_image_vae\n- krea2_identity_edit_v1_2.safetensors LoRA (this model)"], "color": "#432", "bgcolor": "#653"}, {"id": 101, "type": "Note", "pos": [640, 330], "size": [520, 190], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [], "title": "How inputs work", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["YOUR IMAGE - the image being edited (your character, the photo to\nrestyle, the scene...).\n\nTwo-image mode (group 2 enabled): THIS slot is always the SCENE\n(image 1). The person always goes in group 2 (image 2).\nInputs around 1MP work best. Two-person images: stay at/below ~1.5MP."], "color": "#432", "bgcolor": "#653"}, {"id": 102, "type": "Note", "pos": [640, 1130], "size": [520, 210], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [], "title": "Enable for two-image edits", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["OPTIONAL second reference - the PERSON for insert-into-scene edits\n('place this person at the table').\n\nThis group ships DISABLED (purple = bypassed) - the workflow is a\nplain single-image editor until you need it.\nEnable: right-click this group's title bar -> toggle Bypass off.\nOrder rule: scene = image 1 (group 1), person = image 2 (here)."], "color": "#432", "bgcolor": "#653"}, {"id": 103, "type": "Note", "pos": [1620, 360], "size": [620, 300], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [], "title": "Writing instructions", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["Write the edit in plain English:\n 'Relight the scene with warm golden hour sunlight.'\n 'Place this person at the cafe table, holding a coffee.'\n 'Change her outfit to a red raincoat.'\n\nUnique face coming out generic? Append:\n 'Preserve the exact facial identity - distinguishing features: ...'\nand describe what makes the face distinctive.\n\ngrounding_px: how large the model 'sees' the input while reading your\ninstruction. 384-768 is the trained range. Getting doubled/split\ncompositions? LOWER it. The collapsed node below is the negative -\nonly used at CFG > 1; keep its prompt empty."], "color": "#432", "bgcolor": "#653"}, {"id": 104, "type": "Note", "pos": [2320, 230], "size": [420, 420], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "title": "Fidelity dial", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["THE FIDELITY DIAL (ref_boost) - how hard the model looks at your\nreference. New in this release.\n\n 1.0 = classic v1.1 behavior\n 4.0 = recommended (pre-set): much stronger face + body likeness,\n more reliable edits\n >10 = over-copy: removals/replacements start failing\n <1 = suppress the reference (creative freedom)\n\nref_boost_a: the scene dial (image 1) in two-image mode -\nleave at 1.0 unless you are exploring. ref_boost applies to the\nperson (image 2) when group 2 is enabled, else to your image.\n\nfit_mode: how inputs fit a different output aspect\nratio. fit = resample to the output shape (default, recommended); crop (legacy) = center-crop\nonly for v1/v1.1 weights."], "color": "#432", "bgcolor": "#653"}, {"id": 105, "type": "Note", "pos": [2800, 490], "size": [320, 280], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [], "title": "Sampling", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["Turbo model: 10 steps, cfg 1.\n\nStep dial:\n 8 = stronger composition/instruction adherence\n 12 = more face detail\n 10 = balanced\n\nUsing krea2_raw instead of turbo:\n40 steps, cfg 3-4 (negative then matters)."], "color": "#432", "bgcolor": "#653"}, {"id": 106, "type": "Note", "pos": [620, -600], "size": [1600, 330], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [], "title": "README", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["KREA 2 IDENTITY EDIT - v1.2 (Fidelity update)\nUse an image like a LoRA: your character/scene goes in as a reference, plain-English\ninstructions do the rest.\n\nQUICK START: 1) load your image in group 1 2) write the instruction in group 3 3) Queue.\nThe Fidelity dial (group 4) ships at 4 = strong likeness. Two-image person-into-scene: enable\ngroup 2 (right-click its title -> toggle Bypass).\n\nRequires the comfyui-krea2edit nodes from this release or newer.\ngithub.com/lbouaraba/comfyui-krea2edit - huggingface.co/conradlocke/krea2-identity-edit"], "color": "#232", "bgcolor": "#353"}, {"id": 107, "type": "Note", "pos": [1250, -140], "size": [270, 110], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [], "title": "Resolution", "properties": {"Node name for S&R": "Note"}, "widgets_values": ["Output resolution. 1MP is the\nsweet spot; go higher only for\nsingle-person edits."], "color": "#432", "bgcolor": "#653"}, {"id": 108, "type": "LoraLoaderModelOnly", "pos": [360, 410], "size": [315, 82], "flags": {}, "order": 99, "mode": 0, "inputs": [{"name": "model", "type": "MODEL", "link": 28}], "outputs": [{"name": "MODEL", "type": "MODEL", "links": [2]}], "properties": {"Node name for S&R": "LoraLoaderModelOnly"}, "widgets_values": ["apex_step2000.safetensors", 1.0]}], "links": [[1, 55, 0, 71, 0, "MODEL"], [2, 108, 0, 79, 0, "MODEL"], [3, 79, 0, 53, 0, "MODEL"], [4, 56, 0, 84, 0, "CLIP"], [5, 56, 0, 85, 0, "CLIP"], [6, 57, 0, 54, 1, "VAE"], [7, 57, 0, 73, 1, "VAE"], [8, 57, 0, 92, 1, "VAE"], [9, 83, 0, 82, 0, "INT"], [10, 83, 1, 82, 1, "INT"], [11, 72, 0, 73, 0, "IMAGE"], [12, 72, 0, 84, 1, "IMAGE"], [13, 72, 0, 85, 1, "IMAGE"], [14, 72, 0, 79, 5, "IMAGE"], [15, 73, 0, 79, 1, "LATENT"], [16, 57, 0, 79, 4, "VAE"], [17, 90, 0, 92, 0, "IMAGE"], [18, 90, 0, 84, 2, "IMAGE"], [19, 90, 0, 85, 2, "IMAGE"], [20, 90, 0, 79, 6, "IMAGE"], [21, 92, 0, 79, 2, "LATENT"], [22, 84, 0, 53, 1, "CONDITIONING"], [23, 85, 0, 53, 2, "CONDITIONING"], [24, 82, 0, 53, 3, "LATENT"], [25, 53, 0, 54, 0, "LATENT"], [26, 54, 0, 29, 0, "IMAGE"], [27, 82, 0, 79, 7, "LATENT"], [28, 71, 0, 108, 0, "MODEL"]], "groups": [{"id": 1, "title": "MODELS", "bounding": [40, -240, 540, 950], "color": "#3f789e", "flags": {}}, {"id": 2, "title": "1 \u00b7 IMAGE TO EDIT", "bounding": [620, -240, 580, 790], "color": "#8A8", "flags": {}}, {"id": 3, "title": "2 \u00b7 SECOND REFERENCE (optional \u2014 bypassed)", "bounding": [620, 560, 580, 810], "color": "#a1309b", "flags": {}}, {"id": 4, "title": "3 \u00b7 INSTRUCTION", "bounding": [1600, -240, 680, 930], "color": "#b58b2a", "flags": {}}, {"id": 5, "title": "4 \u00b7 FIDELITY", "bounding": [2300, -240, 460, 910], "color": "#c15f3c", "flags": {}}, {"id": 6, "title": "5 \u00b7 GENERATE", "bounding": [2780, -240, 1200, 1030], "color": "#3f789e", "flags": {}}], "config": {}, "extra": {"frontendVersion": "1.45.19", "ds": {"scale": 0.8264462809917354, "offset": [69.76703364204093, 382.9680133228499]}, "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true}, "version": 0.4}
|
backup_sessao_2026-08-06/configs/apex_bat_rand.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"samples": [{"name": "imagem000836", "reference": "/workspace/datasets/ctx_original/input_A/imagem000836.jpg", "prompt": "A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem001768", "reference": "/workspace/datasets/ctx_original/input_A/imagem001768.jpg", "prompt": "A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text \"ALIENS! ABDUCT ME!!!\" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000294", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg", "prompt": "A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000075", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg", "prompt": "A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.", "width": 1024, "height": 1024}, {"name": "imagem000759", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg", "prompt": "A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000663", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg", "prompt": "A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000611", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg", "prompt": "A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text \"BIOS AUMENTAN A VELOCIDAD ALARMANTE\" and \"AN MANIFESTACIONES CONTRA LEY MARCIAL\". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.", "width": 1024, "height": 1024}, {"name": "imagem000374", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg", "prompt": "A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000273", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg", "prompt": "A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem001519", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg", "prompt": "A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000001", "reference": "/workspace/datasets/ctx_original/input_A/imagem000001.jpg", "prompt": "A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}]}
|
backup_sessao_2026-08-06/configs/apex_bat_ref.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"samples": [{"name": "imagem000001", "reference": "/workspace/datasets/ctx_original/input_A/imagem000001.jpg", "prompt": "A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000836", "reference": "/workspace/datasets/ctx_original/input_A/imagem000836.jpg", "prompt": "A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text \"ALIENS! ABDUCT ME!!!\" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem001768", "reference": "/workspace/datasets/ctx_original/input_A/imagem001768.jpg", "prompt": "A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000294", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg", "prompt": "A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.", "width": 1024, "height": 1024}, {"name": "imagem000075", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg", "prompt": "A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000759", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg", "prompt": "A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000663", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg", "prompt": "A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text \"BIOS AUMENTAN A VELOCIDAD ALARMANTE\" and \"AN MANIFESTACIONES CONTRA LEY MARCIAL\". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.", "width": 1024, "height": 1024}, {"name": "imagem000611", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg", "prompt": "A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000374", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg", "prompt": "A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem000273", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg", "prompt": "A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}, {"name": "imagem001519", "reference": "/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg", "prompt": "A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.", "width": 1024, "height": 1024}]}
|
backup_sessao_2026-08-06/configs/apex_ctx_512.toml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# krea2_apex @512 — CTX (docs/KREA2_APEX_SPEC.md §2.7).
|
| 2 |
+
#
|
| 3 |
+
# Contrato (o que difere de todo braço anterior):
|
| 4 |
+
# - geometria frame_fit: ref no eixo de frame (pos[...,0]=1) e CENTRADA no
|
| 5 |
+
# grid do alvo com offsets FRACIONÁRIOS; sem width_shift, sem reescala
|
| 6 |
+
# - ref preprocessada com o ramo `fit` do comfyui-krea2edit (CROP_TOL 0.08,
|
| 7 |
+
# /16 floor com cap, crop-to-grid, bicubic+antialias)
|
| 8 |
+
# - reference_timestep='target' (o node calcula UM tvec para toda a sequência;
|
| 9 |
+
# um LoRA t=0 degrada lá em silêncio)
|
| 10 |
+
# - timestep_law='krea2_apex': t = sigmoid(s(N)·z + m(N)), peso da loss ≡ 1,
|
| 11 |
+
# amostragem estratificada golden-ratio. MUTUAMENTE EXCLUSIVO com flux_shift
|
| 12 |
+
# - LoRA em blocks + txtfusion + txtmlp (258 módulos)
|
| 13 |
+
# - live_text_encoding: sem cache de texto; jitter de grounding e clause
|
| 14 |
+
# dropout re-sorteados POR STEP
|
| 15 |
+
|
| 16 |
+
output_dir = '/workspace/checkpoints/k2_apex_ctx'
|
| 17 |
+
dataset = '/workspace/configs/apex_ctx_dataset.toml'
|
| 18 |
+
epochs = 1000
|
| 19 |
+
max_steps = 5000
|
| 20 |
+
micro_batch_size_per_gpu = 1
|
| 21 |
+
gradient_accumulation_steps = 1
|
| 22 |
+
pipeline_stages = 1
|
| 23 |
+
gradient_clipping = 1.0
|
| 24 |
+
warmup_steps = 250
|
| 25 |
+
save_every_n_steps = 250
|
| 26 |
+
checkpoint_every_n_minutes = 120
|
| 27 |
+
activation_checkpointing = true
|
| 28 |
+
save_dtype = 'bfloat16'
|
| 29 |
+
caching_batch_size = 1 # OBRIGATÓRIO: o fit dá refs de shapes diferentes
|
| 30 |
+
blocks_to_swap = 0
|
| 31 |
+
|
| 32 |
+
[model]
|
| 33 |
+
type = 'krea2_apex'
|
| 34 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 35 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 36 |
+
text_encoders = [
|
| 37 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 38 |
+
]
|
| 39 |
+
dtype = 'bfloat16'
|
| 40 |
+
diffusion_model_dtype = 'float8'
|
| 41 |
+
timestep_sample_method = 'logit_normal'
|
| 42 |
+
timestep_law = 'krea2_apex' # NÃO usar flux_shift/shift junto
|
| 43 |
+
live_text_encoding = true
|
| 44 |
+
|
| 45 |
+
[krea2_apex]
|
| 46 |
+
reference_timestep = 'target'
|
| 47 |
+
vl_prompt_style = 'plain'
|
| 48 |
+
vl_longest_side = 768
|
| 49 |
+
vl_grounding_jitter = [384, 768] # agora POR STEP
|
| 50 |
+
caption_dropout = 0.05
|
| 51 |
+
clause_dropout_prob = 0.40
|
| 52 |
+
clause_dropout_rate = 0.60
|
| 53 |
+
keep_clauses = 1
|
| 54 |
+
|
| 55 |
+
[adapter]
|
| 56 |
+
type = 'lora'
|
| 57 |
+
rank = 64
|
| 58 |
+
# alpha: o trainer força alpha = rank (scaling 1). Não declarar.
|
| 59 |
+
dtype = 'bfloat16'
|
| 60 |
+
|
| 61 |
+
[optimizer]
|
| 62 |
+
type = 'AdamW8bitKahan'
|
| 63 |
+
lr = 1e-4
|
| 64 |
+
betas = [0.9, 0.99]
|
| 65 |
+
weight_decay = 0.01
|
| 66 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/apex_ctx_dataset.toml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# krea2_apex — dataset CTX (1.247 pares A->B).
|
| 2 |
+
#
|
| 3 |
+
# resolutions=[512] com AR buckets: a lei de timestep do apex
|
| 4 |
+
# (m/s dependentes de N) se auto-ajusta por bucket, então não há razão para
|
| 5 |
+
# forçar quadrado. min/max AR 0.5..2.0 cobre o material do CTX.
|
| 6 |
+
#
|
| 7 |
+
# control_path = sources: a referência é pré-processada com o fit do node
|
| 8 |
+
# (AR-preservado, crop-to-grid /16, bicubic+antialias), NÃO com
|
| 9 |
+
# ImageOps.fit. As dimensões A<->B do CTX são iguais em ~100% dos pares, então
|
| 10 |
+
# na prática o fit é no-op aqui — ele existe para comprar o contrato de
|
| 11 |
+
# inferência.
|
| 12 |
+
|
| 13 |
+
resolutions = [512]
|
| 14 |
+
enable_ar_bucket = true
|
| 15 |
+
min_ar = 0.5
|
| 16 |
+
max_ar = 2.0
|
| 17 |
+
num_ar_buckets = 7
|
| 18 |
+
frame_buckets = [1]
|
| 19 |
+
|
| 20 |
+
[[directory]]
|
| 21 |
+
path = '/workspace/datasets/konrad_orig/ctx/targets'
|
| 22 |
+
control_path = '/workspace/datasets/konrad_orig/ctx/sources'
|
| 23 |
+
num_repeats = 1
|
backup_sessao_2026-08-06/configs/apex_ctx_smoke.toml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# krea2_apex @512 — CTX (docs/KREA2_APEX_SPEC.md §2.7).
|
| 2 |
+
#
|
| 3 |
+
# Contrato (o que difere de todo braço anterior):
|
| 4 |
+
# - geometria frame_fit: ref no eixo de frame (pos[...,0]=1) e CENTRADA no
|
| 5 |
+
# grid do alvo com offsets FRACIONÁRIOS; sem width_shift, sem reescala
|
| 6 |
+
# - ref preprocessada com o ramo `fit` do comfyui-krea2edit (CROP_TOL 0.08,
|
| 7 |
+
# /16 floor com cap, crop-to-grid, bicubic+antialias)
|
| 8 |
+
# - reference_timestep='target' (o node calcula UM tvec para toda a sequência;
|
| 9 |
+
# um LoRA t=0 degrada lá em silêncio)
|
| 10 |
+
# - timestep_law='krea2_apex': t = sigmoid(s(N)·z + m(N)), peso da loss ≡ 1,
|
| 11 |
+
# amostragem estratificada golden-ratio. MUTUAMENTE EXCLUSIVO com flux_shift
|
| 12 |
+
# - LoRA em blocks + txtfusion + txtmlp (258 módulos)
|
| 13 |
+
# - live_text_encoding: sem cache de texto; jitter de grounding e clause
|
| 14 |
+
# dropout re-sorteados POR STEP
|
| 15 |
+
|
| 16 |
+
output_dir = '/workspace/checkpoints/k2_apex_smoke'
|
| 17 |
+
dataset = '/workspace/configs/apex_ctx_dataset.toml'
|
| 18 |
+
epochs = 1000
|
| 19 |
+
max_steps = 10
|
| 20 |
+
micro_batch_size_per_gpu = 1
|
| 21 |
+
gradient_accumulation_steps = 1
|
| 22 |
+
pipeline_stages = 1
|
| 23 |
+
gradient_clipping = 1.0
|
| 24 |
+
warmup_steps = 5
|
| 25 |
+
save_every_n_steps = 10
|
| 26 |
+
checkpoint_every_n_minutes = 120
|
| 27 |
+
activation_checkpointing = true
|
| 28 |
+
save_dtype = 'bfloat16'
|
| 29 |
+
caching_batch_size = 1 # OBRIGATÓRIO: o fit dá refs de shapes diferentes
|
| 30 |
+
blocks_to_swap = 0
|
| 31 |
+
|
| 32 |
+
[model]
|
| 33 |
+
type = 'krea2_apex'
|
| 34 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 35 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 36 |
+
text_encoders = [
|
| 37 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 38 |
+
]
|
| 39 |
+
dtype = 'bfloat16'
|
| 40 |
+
diffusion_model_dtype = 'float8'
|
| 41 |
+
timestep_sample_method = 'logit_normal'
|
| 42 |
+
timestep_law = 'krea2_apex' # NÃO usar flux_shift/shift junto
|
| 43 |
+
live_text_encoding = true
|
| 44 |
+
|
| 45 |
+
[krea2_apex]
|
| 46 |
+
reference_timestep = 'target'
|
| 47 |
+
vl_prompt_style = 'plain'
|
| 48 |
+
vl_longest_side = 768
|
| 49 |
+
vl_grounding_jitter = [384, 768] # agora POR STEP
|
| 50 |
+
caption_dropout = 0.05
|
| 51 |
+
clause_dropout_prob = 0.40
|
| 52 |
+
clause_dropout_rate = 0.60
|
| 53 |
+
keep_clauses = 1
|
| 54 |
+
|
| 55 |
+
[adapter]
|
| 56 |
+
type = 'lora'
|
| 57 |
+
rank = 64
|
| 58 |
+
# alpha: o trainer força alpha = rank (scaling 1). Não declarar.
|
| 59 |
+
dtype = 'bfloat16'
|
| 60 |
+
|
| 61 |
+
[optimizer]
|
| 62 |
+
type = 'AdamW8bitKahan'
|
| 63 |
+
lr = 1e-4
|
| 64 |
+
betas = [0.9, 0.99]
|
| 65 |
+
weight_decay = 0.01
|
| 66 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/apex_ctx_smoke_resume.toml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# krea2_apex @512 — CTX (docs/KREA2_APEX_SPEC.md §2.7).
|
| 2 |
+
#
|
| 3 |
+
# Contrato (o que difere de todo braço anterior):
|
| 4 |
+
# - geometria frame_fit: ref no eixo de frame (pos[...,0]=1) e CENTRADA no
|
| 5 |
+
# grid do alvo com offsets FRACIONÁRIOS; sem width_shift, sem reescala
|
| 6 |
+
# - ref preprocessada com o ramo `fit` do comfyui-krea2edit (CROP_TOL 0.08,
|
| 7 |
+
# /16 floor com cap, crop-to-grid, bicubic+antialias)
|
| 8 |
+
# - reference_timestep='target' (o node calcula UM tvec para toda a sequência;
|
| 9 |
+
# um LoRA t=0 degrada lá em silêncio)
|
| 10 |
+
# - timestep_law='krea2_apex': t = sigmoid(s(N)·z + m(N)), peso da loss ≡ 1,
|
| 11 |
+
# amostragem estratificada golden-ratio. MUTUAMENTE EXCLUSIVO com flux_shift
|
| 12 |
+
# - LoRA em blocks + txtfusion + txtmlp (258 módulos)
|
| 13 |
+
# - live_text_encoding: sem cache de texto; jitter de grounding e clause
|
| 14 |
+
# dropout re-sorteados POR STEP
|
| 15 |
+
|
| 16 |
+
output_dir = '/workspace/checkpoints/k2_apex_smoke'
|
| 17 |
+
dataset = '/workspace/configs/apex_ctx_dataset.toml'
|
| 18 |
+
epochs = 1000
|
| 19 |
+
max_steps = 20
|
| 20 |
+
micro_batch_size_per_gpu = 1
|
| 21 |
+
gradient_accumulation_steps = 1
|
| 22 |
+
pipeline_stages = 1
|
| 23 |
+
gradient_clipping = 1.0
|
| 24 |
+
warmup_steps = 5
|
| 25 |
+
save_every_n_steps = 10
|
| 26 |
+
checkpoint_every_n_minutes = 120
|
| 27 |
+
activation_checkpointing = true
|
| 28 |
+
save_dtype = 'bfloat16'
|
| 29 |
+
caching_batch_size = 1 # OBRIGATÓRIO: o fit dá refs de shapes diferentes
|
| 30 |
+
blocks_to_swap = 0
|
| 31 |
+
|
| 32 |
+
[model]
|
| 33 |
+
type = 'krea2_apex'
|
| 34 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 35 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 36 |
+
text_encoders = [
|
| 37 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 38 |
+
]
|
| 39 |
+
dtype = 'bfloat16'
|
| 40 |
+
diffusion_model_dtype = 'float8'
|
| 41 |
+
timestep_sample_method = 'logit_normal'
|
| 42 |
+
timestep_law = 'krea2_apex' # NÃO usar flux_shift/shift junto
|
| 43 |
+
live_text_encoding = true
|
| 44 |
+
|
| 45 |
+
[krea2_apex]
|
| 46 |
+
reference_timestep = 'target'
|
| 47 |
+
vl_prompt_style = 'plain'
|
| 48 |
+
vl_longest_side = 768
|
| 49 |
+
vl_grounding_jitter = [384, 768] # agora POR STEP
|
| 50 |
+
caption_dropout = 0.05
|
| 51 |
+
clause_dropout_prob = 0.40
|
| 52 |
+
clause_dropout_rate = 0.60
|
| 53 |
+
keep_clauses = 1
|
| 54 |
+
|
| 55 |
+
[adapter]
|
| 56 |
+
type = 'lora'
|
| 57 |
+
rank = 64
|
| 58 |
+
# alpha: o trainer força alpha = rank (scaling 1). Não declarar.
|
| 59 |
+
dtype = 'bfloat16'
|
| 60 |
+
|
| 61 |
+
[optimizer]
|
| 62 |
+
type = 'AdamW8bitKahan'
|
| 63 |
+
lr = 1e-4
|
| 64 |
+
betas = [0.9, 0.99]
|
| 65 |
+
weight_decay = 0.01
|
| 66 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/armA_frame.toml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KREA2 edit saga 2026-07-29 — treino principal.
|
| 2 |
+
#
|
| 3 |
+
# Base: receita validada krea2_multiref_grounded (docs/KREA2_MULTIREF_RECEITA.md),
|
| 4 |
+
# aqui com max_refs=1 (todos os datasets são pares A->B).
|
| 5 |
+
# - width_shift + refs a t=0 + LoRA condition-only routada + grounding Qwen3-VL
|
| 6 |
+
# - caption_dropout=0.1 (uncond do CFG; condition_dropout é proibido no grounded)
|
| 7 |
+
# - txtfusion_rank=128 (canal de leitura reforçado — tarefa é semântica: editar)
|
| 8 |
+
# - rank 64 (usuário pediu >32; dezenas de milhares de imagens)
|
| 9 |
+
|
| 10 |
+
output_dir = '/workspace/checkpoints/armA_frame'
|
| 11 |
+
dataset = '/workspace/configs/arms_ds4_384_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 500
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 250
|
| 20 |
+
checkpoint_every_n_minutes = 120
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1 # OBRIGATÓRIO com multi_ref
|
| 24 |
+
blocks_to_swap = 0 # usuário pediu velocidade; VRAM medida 20,1G com swap 8, cabe sem
|
| 25 |
+
|
| 26 |
+
[model]
|
| 27 |
+
type = 'krea2_multiref_grounded'
|
| 28 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 29 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 30 |
+
text_encoders = [
|
| 31 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 32 |
+
]
|
| 33 |
+
dtype = 'bfloat16'
|
| 34 |
+
diffusion_model_dtype = 'float8'
|
| 35 |
+
timestep_sample_method = 'logit_normal'
|
| 36 |
+
flux_shift = true
|
| 37 |
+
|
| 38 |
+
[krea2_multiref_grounded]
|
| 39 |
+
max_refs = 1
|
| 40 |
+
slot_axis = 'frame'
|
| 41 |
+
position_mode = 'width_shift'
|
| 42 |
+
reference_position_offset = 1.0
|
| 43 |
+
reference_timestep = 'zero'
|
| 44 |
+
condition_dropout = 0.0 # proibido no caminho grounded
|
| 45 |
+
condition_only_lora = true
|
| 46 |
+
vl_prompt_style = 'picture_n'
|
| 47 |
+
vl_image_label = 'image'
|
| 48 |
+
vl_image_max_pixels = 147456 # 384² — grounding; cache é o gargalo, medir no smoke
|
| 49 |
+
caption_dropout = 0.0
|
| 50 |
+
txtfusion_rank = 128
|
| 51 |
+
|
| 52 |
+
[adapter]
|
| 53 |
+
type = 'lora'
|
| 54 |
+
rank = 64
|
| 55 |
+
dtype = 'bfloat16'
|
| 56 |
+
|
| 57 |
+
[optimizer]
|
| 58 |
+
type = 'AdamW8bitKahan'
|
| 59 |
+
lr = 2e-4
|
| 60 |
+
betas = [0.9, 0.99]
|
| 61 |
+
weight_decay = 0.01
|
| 62 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/armB_global.toml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KREA2 edit saga 2026-07-29 — treino principal.
|
| 2 |
+
#
|
| 3 |
+
# Base: receita validada krea2_multiref_grounded (docs/KREA2_MULTIREF_RECEITA.md),
|
| 4 |
+
# aqui com max_refs=1 (todos os datasets são pares A->B).
|
| 5 |
+
# - width_shift + refs a t=0 + LoRA condition-only routada + grounding Qwen3-VL
|
| 6 |
+
# - caption_dropout=0.1 (uncond do CFG; condition_dropout é proibido no grounded)
|
| 7 |
+
# - txtfusion_rank=128 (canal de leitura reforçado — tarefa é semântica: editar)
|
| 8 |
+
# - rank 64 (usuário pediu >32; dezenas de milhares de imagens)
|
| 9 |
+
|
| 10 |
+
output_dir = '/workspace/checkpoints/armB_global'
|
| 11 |
+
dataset = '/workspace/configs/arms_ds4_384_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 500
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 250
|
| 20 |
+
checkpoint_every_n_minutes = 120
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1 # OBRIGATÓRIO com multi_ref
|
| 24 |
+
blocks_to_swap = 0 # usuário pediu velocidade; VRAM medida 20,1G com swap 8, cabe sem
|
| 25 |
+
|
| 26 |
+
[model]
|
| 27 |
+
type = 'krea2_multiref_grounded'
|
| 28 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 29 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 30 |
+
text_encoders = [
|
| 31 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 32 |
+
]
|
| 33 |
+
dtype = 'bfloat16'
|
| 34 |
+
diffusion_model_dtype = 'float8'
|
| 35 |
+
timestep_sample_method = 'logit_normal'
|
| 36 |
+
flux_shift = true
|
| 37 |
+
|
| 38 |
+
[krea2_multiref_grounded]
|
| 39 |
+
max_refs = 1
|
| 40 |
+
slot_axis = 'width'
|
| 41 |
+
position_mode = 'width_shift'
|
| 42 |
+
reference_position_offset = 1.0
|
| 43 |
+
reference_timestep = 'zero'
|
| 44 |
+
condition_dropout = 0.0 # proibido no caminho grounded
|
| 45 |
+
condition_only_lora = false
|
| 46 |
+
vl_prompt_style = 'picture_n'
|
| 47 |
+
vl_image_label = 'image'
|
| 48 |
+
vl_image_max_pixels = 147456 # 384² — grounding; cache é o gargalo, medir no smoke
|
| 49 |
+
caption_dropout = 0.0
|
| 50 |
+
txtfusion_rank = 128
|
| 51 |
+
|
| 52 |
+
[adapter]
|
| 53 |
+
type = 'lora'
|
| 54 |
+
rank = 64
|
| 55 |
+
dtype = 'bfloat16'
|
| 56 |
+
|
| 57 |
+
[optimizer]
|
| 58 |
+
type = 'AdamW8bitKahan'
|
| 59 |
+
lr = 2e-4
|
| 60 |
+
betas = [0.9, 0.99]
|
| 61 |
+
weight_decay = 0.01
|
| 62 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/armC_v2.toml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KREA2 edit saga 2026-07-29 — treino principal.
|
| 2 |
+
#
|
| 3 |
+
# Base: receita validada krea2_multiref_grounded (docs/KREA2_MULTIREF_RECEITA.md),
|
| 4 |
+
# aqui com max_refs=1 (todos os datasets são pares A->B).
|
| 5 |
+
# - width_shift + refs a t=0 + LoRA condition-only routada + grounding Qwen3-VL
|
| 6 |
+
# - caption_dropout=0.1 (uncond do CFG; condition_dropout é proibido no grounded)
|
| 7 |
+
# - txtfusion_rank=128 (canal de leitura reforçado — tarefa é semântica: editar)
|
| 8 |
+
# - rank 64 (usuário pediu >32; dezenas de milhares de imagens)
|
| 9 |
+
|
| 10 |
+
output_dir = '/workspace/checkpoints/armC_v2'
|
| 11 |
+
dataset = '/workspace/configs/arms_ds4_768_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 500
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 250
|
| 20 |
+
checkpoint_every_n_minutes = 120
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1 # OBRIGATÓRIO com multi_ref
|
| 24 |
+
blocks_to_swap = 0 # usuário pediu velocidade; VRAM medida 20,1G com swap 8, cabe sem
|
| 25 |
+
|
| 26 |
+
[model]
|
| 27 |
+
type = 'krea2_multiref_grounded'
|
| 28 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 29 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 30 |
+
text_encoders = [
|
| 31 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 32 |
+
]
|
| 33 |
+
dtype = 'bfloat16'
|
| 34 |
+
diffusion_model_dtype = 'float8'
|
| 35 |
+
timestep_sample_method = 'logit_normal'
|
| 36 |
+
flux_shift = true
|
| 37 |
+
|
| 38 |
+
[krea2_multiref_grounded]
|
| 39 |
+
max_refs = 1
|
| 40 |
+
slot_axis = 'width'
|
| 41 |
+
position_mode = 'width_shift'
|
| 42 |
+
reference_position_offset = 1.0
|
| 43 |
+
reference_timestep = 'zero'
|
| 44 |
+
condition_dropout = 0.0 # proibido no caminho grounded
|
| 45 |
+
condition_only_lora = false
|
| 46 |
+
vl_prompt_style = 'picture_n'
|
| 47 |
+
vl_image_label = 'image'
|
| 48 |
+
vl_longest_side = 768 # grounding do probe original
|
| 49 |
+
caption_dropout = 0.0
|
| 50 |
+
txtfusion_rank = 128
|
| 51 |
+
|
| 52 |
+
[adapter]
|
| 53 |
+
type = 'lora'
|
| 54 |
+
rank = 64
|
| 55 |
+
dtype = 'bfloat16'
|
| 56 |
+
|
| 57 |
+
[optimizer]
|
| 58 |
+
type = 'AdamW8bitKahan'
|
| 59 |
+
lr = 2e-4
|
| 60 |
+
betas = [0.9, 0.99]
|
| 61 |
+
weight_decay = 0.01
|
| 62 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/arms_ds4_384_dataset.toml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
resolutions = [512]
|
| 2 |
+
enable_ar_bucket = true
|
| 3 |
+
min_ar = 0.5
|
| 4 |
+
max_ar = 2.0
|
| 5 |
+
num_ar_buckets = 7
|
| 6 |
+
frame_buckets = [1]
|
| 7 |
+
|
| 8 |
+
[[directory]]
|
| 9 |
+
path = '/workspace/datasets/arms_ds4_384/target'
|
| 10 |
+
control_path = '/workspace/datasets/arms_ds4_384/refs'
|
| 11 |
+
multi_ref = true
|
| 12 |
+
max_refs = 1
|
| 13 |
+
num_repeats = 1
|
backup_sessao_2026-08-06/configs/arms_ds4_768_dataset.toml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
resolutions = [512]
|
| 2 |
+
enable_ar_bucket = true
|
| 3 |
+
min_ar = 0.5
|
| 4 |
+
max_ar = 2.0
|
| 5 |
+
num_ar_buckets = 7
|
| 6 |
+
frame_buckets = [1]
|
| 7 |
+
|
| 8 |
+
[[directory]]
|
| 9 |
+
path = '/workspace/datasets/arms_ds4_768/target'
|
| 10 |
+
control_path = '/workspace/datasets/arms_ds4_768/refs'
|
| 11 |
+
multi_ref = true
|
| 12 |
+
max_refs = 1
|
| 13 |
+
num_repeats = 1
|
backup_sessao_2026-08-06/configs/k2_proximacena_smoke.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# K2-PROXIMACENA-GROUNDED-V2 — retreino longo do krea2_omini_grounded com
|
| 2 |
+
# captions de descrição pura (o contrato do probe original que funcionou).
|
| 3 |
+
# Desvios do probe validado, com motivo:
|
| 4 |
+
# - caption_dropout 0.1 (melhoria §9 do OMINI_GROUNDED_SEGREDO: treina o uncond do CFG)
|
| 5 |
+
# - vl_image_max_pixels 384² (cache de texto: 768 custaria >700 GB p/ ~18k pares;
|
| 6 |
+
# 384² é o desvio já validado no multiref)
|
| 7 |
+
# - sem vl_grounding_jitter (custo de cache; grounding fixo em 384²)
|
| 8 |
+
# - gradient_accumulation_steps 1 (pedido do usuário: sem batch fingido)
|
| 9 |
+
# - resolução 1024 com AR buckets (pedido do usuário)
|
| 10 |
+
output_dir = '/workspace/checkpoints/k2_proximacena_smoke'
|
| 11 |
+
dataset = '/workspace/configs/proximacena_smoke_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 12
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 2
|
| 19 |
+
save_every_n_steps = 5
|
| 20 |
+
checkpoint_every_n_minutes = 60
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1
|
| 24 |
+
|
| 25 |
+
[model]
|
| 26 |
+
type = 'krea2_omini_grounded'
|
| 27 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 28 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 29 |
+
text_encoders = [
|
| 30 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 31 |
+
]
|
| 32 |
+
dtype = 'bfloat16'
|
| 33 |
+
diffusion_model_dtype = 'float8'
|
| 34 |
+
timestep_sample_method = 'logit_normal'
|
| 35 |
+
flux_shift = true
|
| 36 |
+
|
| 37 |
+
[krea2_omini_grounded]
|
| 38 |
+
position_mode = 'width_shift'
|
| 39 |
+
reference_position_offset = 1.0
|
| 40 |
+
reference_timestep = 'zero'
|
| 41 |
+
condition_dropout = 0.0
|
| 42 |
+
condition_only_lora = true
|
| 43 |
+
vl_prompt_style = 'plain'
|
| 44 |
+
vl_image_max_pixels = 147456
|
| 45 |
+
caption_dropout = 0.1
|
| 46 |
+
|
| 47 |
+
[adapter]
|
| 48 |
+
type = 'lora'
|
| 49 |
+
rank = 64
|
| 50 |
+
dtype = 'bfloat16'
|
| 51 |
+
|
| 52 |
+
[optimizer]
|
| 53 |
+
type = 'AdamW8bitKahan'
|
| 54 |
+
lr = 1e-4
|
| 55 |
+
betas = [0.9, 0.99]
|
| 56 |
+
weight_decay = 0.01
|
| 57 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/k2_proximacena_v2.toml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# K2-PROXIMACENA-GROUNDED-V2 — retreino longo do krea2_omini_grounded com
|
| 2 |
+
# captions de descrição pura (o contrato do probe original que funcionou).
|
| 3 |
+
# Desvios do probe validado, com motivo:
|
| 4 |
+
# - caption_dropout 0.1 (melhoria §9 do OMINI_GROUNDED_SEGREDO: treina o uncond do CFG)
|
| 5 |
+
# - vl_image_max_pixels 384² (cache de texto: 768 custaria >700 GB p/ ~18k pares;
|
| 6 |
+
# 384² é o desvio já validado no multiref)
|
| 7 |
+
# - sem vl_grounding_jitter (custo de cache; grounding fixo em 384²)
|
| 8 |
+
# - gradient_accumulation_steps 1 (pedido do usuário: sem batch fingido)
|
| 9 |
+
# - resolução 1024 com AR buckets (pedido do usuário)
|
| 10 |
+
output_dir = '/workspace/checkpoints/k2_proximacena_v2'
|
| 11 |
+
dataset = '/workspace/configs/proximacena_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 15000
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 250
|
| 20 |
+
checkpoint_every_n_minutes = 60
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1
|
| 24 |
+
|
| 25 |
+
[model]
|
| 26 |
+
type = 'krea2_omini_grounded'
|
| 27 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 28 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 29 |
+
text_encoders = [
|
| 30 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 31 |
+
]
|
| 32 |
+
dtype = 'bfloat16'
|
| 33 |
+
diffusion_model_dtype = 'float8'
|
| 34 |
+
timestep_sample_method = 'logit_normal'
|
| 35 |
+
flux_shift = true
|
| 36 |
+
|
| 37 |
+
[krea2_omini_grounded]
|
| 38 |
+
position_mode = 'width_shift'
|
| 39 |
+
reference_position_offset = 1.0
|
| 40 |
+
reference_timestep = 'zero'
|
| 41 |
+
condition_dropout = 0.0
|
| 42 |
+
condition_only_lora = true
|
| 43 |
+
vl_prompt_style = 'plain'
|
| 44 |
+
vl_image_max_pixels = 147456
|
| 45 |
+
caption_dropout = 0.1
|
| 46 |
+
|
| 47 |
+
[adapter]
|
| 48 |
+
type = 'lora'
|
| 49 |
+
rank = 64
|
| 50 |
+
dtype = 'bfloat16'
|
| 51 |
+
|
| 52 |
+
[optimizer]
|
| 53 |
+
type = 'AdamW8bitKahan'
|
| 54 |
+
lr = 1e-4
|
| 55 |
+
betas = [0.9, 0.99]
|
| 56 |
+
weight_decay = 0.01
|
| 57 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/konrad_k2.yaml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# konrad-k2-test1real — receita do krea2edit-trainer (conradlocke) COMO ELA É,
|
| 2 |
+
# no dataset recaptionado (10.991 pares + ds4 curado com peso extra).
|
| 3 |
+
# Único desvio da receita: nossas captions são DESCRIÇÕES da imagem B, não
|
| 4 |
+
# instruções de edição (decisão do usuário: mesmo dataset de agora).
|
| 5 |
+
job: extension
|
| 6 |
+
config:
|
| 7 |
+
name: "konrad_k2_test1real"
|
| 8 |
+
process:
|
| 9 |
+
- type: "sd_trainer"
|
| 10 |
+
training_folder: "/workspace/checkpoints/konrad"
|
| 11 |
+
device: cuda:0
|
| 12 |
+
logging: { use_wandb: false }
|
| 13 |
+
network: { type: "lora", linear: 64, linear_alpha: 64 }
|
| 14 |
+
save: { dtype: float16, save_every: 250, max_step_saves_to_keep: 8 }
|
| 15 |
+
datasets:
|
| 16 |
+
- folder_path: "/workspace/datasets/konrad/targets"
|
| 17 |
+
control_path: ["/workspace/datasets/konrad/sources"]
|
| 18 |
+
num_repeats: 1
|
| 19 |
+
caption_ext: "txt"
|
| 20 |
+
caption_dropout_rate: 0.0
|
| 21 |
+
resolution: [512]
|
| 22 |
+
buckets: true
|
| 23 |
+
cache_latents_to_disk: true
|
| 24 |
+
cache_text_embeddings: false
|
| 25 |
+
- folder_path: "/workspace/datasets/konrad_ds4/targets"
|
| 26 |
+
control_path: ["/workspace/datasets/konrad_ds4/sources"]
|
| 27 |
+
num_repeats: 2
|
| 28 |
+
caption_ext: "txt"
|
| 29 |
+
caption_dropout_rate: 0.0
|
| 30 |
+
resolution: [512]
|
| 31 |
+
buckets: true
|
| 32 |
+
cache_latents_to_disk: true
|
| 33 |
+
cache_text_embeddings: false
|
| 34 |
+
train: { batch_size: 1, steps: 15000, gradient_accumulation: 1, train_unet: true,
|
| 35 |
+
train_text_encoder: false, gradient_checkpointing: true, disable_sampling: true,
|
| 36 |
+
noise_scheduler: "flowmatch", timestep_type: "weighted", optimizer: "adamw8bit",
|
| 37 |
+
lr: 0.0001, lr_scheduler: "constant", dtype: bf16 }
|
| 38 |
+
model: { name_or_path: "/workspace/models/krea2/raw_oficial/raw.safetensors", arch: "krea2_edit",
|
| 39 |
+
quantize: true, quantize_te: true,
|
| 40 |
+
model_kwargs: { text_encoder_path: "Qwen/Qwen3-VL-4B-Instruct", fit_refs: true } }
|
| 41 |
+
sample: { sample_every: 100000, samples: [] }
|
| 42 |
+
meta: { name: "konrad_k2_test1real", version: "1.0" }
|
backup_sessao_2026-08-06/configs/konrad_k2_arm2.yaml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# konrad-k2-test1real — receita do krea2edit-trainer (conradlocke) COMO ELA É,
|
| 2 |
+
# no dataset recaptionado (10.991 pares + ds4 curado com peso extra).
|
| 3 |
+
# Único desvio da receita: nossas captions são DESCRIÇÕES da imagem B, não
|
| 4 |
+
# instruções de edição (decisão do usuário: mesmo dataset de agora).
|
| 5 |
+
job: extension
|
| 6 |
+
config:
|
| 7 |
+
name: "konrad_k2_arm2"
|
| 8 |
+
process:
|
| 9 |
+
- type: "sd_trainer"
|
| 10 |
+
training_folder: "/workspace/checkpoints/konrad"
|
| 11 |
+
device: cuda:0
|
| 12 |
+
logging: { use_wandb: false }
|
| 13 |
+
network: { type: "lora", linear: 64, linear_alpha: 64 }
|
| 14 |
+
save: { dtype: float16, save_every: 250, max_step_saves_to_keep: 8 }
|
| 15 |
+
datasets:
|
| 16 |
+
- folder_path: "/workspace/datasets/konrad/targets"
|
| 17 |
+
control_path: ["/workspace/datasets/konrad/sources"]
|
| 18 |
+
num_repeats: 1
|
| 19 |
+
caption_ext: "txt"
|
| 20 |
+
caption_dropout_rate: 0.05
|
| 21 |
+
token_dropout_rate: 0.5
|
| 22 |
+
keep_tokens: 1
|
| 23 |
+
resolution: [512]
|
| 24 |
+
buckets: true
|
| 25 |
+
cache_latents_to_disk: true
|
| 26 |
+
cache_text_embeddings: false
|
| 27 |
+
- folder_path: "/workspace/datasets/konrad_ds4/targets"
|
| 28 |
+
control_path: ["/workspace/datasets/konrad_ds4/sources"]
|
| 29 |
+
num_repeats: 2
|
| 30 |
+
caption_ext: "txt"
|
| 31 |
+
caption_dropout_rate: 0.05
|
| 32 |
+
token_dropout_rate: 0.5
|
| 33 |
+
keep_tokens: 1
|
| 34 |
+
resolution: [512]
|
| 35 |
+
buckets: true
|
| 36 |
+
cache_latents_to_disk: true
|
| 37 |
+
cache_text_embeddings: false
|
| 38 |
+
train: { batch_size: 1, steps: 15000, gradient_accumulation: 1, train_unet: true,
|
| 39 |
+
train_text_encoder: false, gradient_checkpointing: true, disable_sampling: true,
|
| 40 |
+
noise_scheduler: "flowmatch", timestep_type: "weighted", optimizer: "adamw8bit",
|
| 41 |
+
lr: 0.0001, lr_scheduler: "constant", dtype: bf16 }
|
| 42 |
+
model: { name_or_path: "/workspace/models/krea2/nk2e/raw_bf16.safetensors", arch: "krea2_edit",
|
| 43 |
+
quantize: true, quantize_te: true,
|
| 44 |
+
model_kwargs: { text_encoder_path: "Qwen/Qwen3-VL-4B-Instruct", fit_refs: true } }
|
| 45 |
+
sample: { sample_every: 100000, samples: [] }
|
| 46 |
+
meta: { name: "konrad_k2_arm2", version: "1.0" }
|
backup_sessao_2026-08-06/configs/konrad_orig_samples.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"comment": "6 samples fixos do run konrad_orig (captions ORIGINAIS de instrução): 3 pares ctx + 3 selecionados pelo usuario",
|
| 3 |
+
"samples": [
|
| 4 |
+
{
|
| 5 |
+
"name": "ctx_imagem000001",
|
| 6 |
+
"reference": "/workspace/datasets/ctx_original/input_A/imagem000001.jpg",
|
| 7 |
+
"prompt": "A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.",
|
| 8 |
+
"width": 512,
|
| 9 |
+
"height": 512
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"name": "ctx_imagem000836",
|
| 13 |
+
"reference": "/workspace/datasets/ctx_original/input_A/imagem000836.jpg",
|
| 14 |
+
"prompt": "A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text \"ALIENS! ABDUCT ME!!!\" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.",
|
| 15 |
+
"width": 704,
|
| 16 |
+
"height": 384
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "ctx_imagem001768",
|
| 20 |
+
"reference": "/workspace/datasets/ctx_original/input_A/imagem001768.jpg",
|
| 21 |
+
"prompt": "A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.",
|
| 22 |
+
"width": 768,
|
| 23 |
+
"height": 768
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "goblin_fight",
|
| 27 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg",
|
| 28 |
+
"prompt": "dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone",
|
| 29 |
+
"width": 1152,
|
| 30 |
+
"height": 896
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "pov_bandaged_hands",
|
| 34 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg",
|
| 35 |
+
"prompt": "medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams",
|
| 36 |
+
"width": 1024,
|
| 37 |
+
"height": 1024
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"name": "orc_hug_cloud",
|
| 41 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp",
|
| 42 |
+
"prompt": "wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above",
|
| 43 |
+
"width": 896,
|
| 44 |
+
"height": 512
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
backup_sessao_2026-08-06/configs/konrad_smoke.yaml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# konrad-k2-test1real — receita do krea2edit-trainer (conradlocke) COMO ELA É,
|
| 2 |
+
# no dataset recaptionado (10.991 pares + ds4 curado com peso extra).
|
| 3 |
+
# Único desvio da receita: nossas captions são DESCRIÇÕES da imagem B, não
|
| 4 |
+
# instruções de edição (decisão do usuário: mesmo dataset de agora).
|
| 5 |
+
job: extension
|
| 6 |
+
config:
|
| 7 |
+
name: "konrad_smoke"
|
| 8 |
+
process:
|
| 9 |
+
- type: "sd_trainer"
|
| 10 |
+
training_folder: "/workspace/checkpoints/konrad"
|
| 11 |
+
device: cuda:0
|
| 12 |
+
logging: { use_wandb: false }
|
| 13 |
+
network: { type: "lora", linear: 64, linear_alpha: 64 }
|
| 14 |
+
save: { dtype: float16, save_every: 10, max_step_saves_to_keep: 8 }
|
| 15 |
+
datasets:
|
| 16 |
+
- folder_path: "/workspace/datasets/konrad/targets"
|
| 17 |
+
control_path: ["/workspace/datasets/konrad/sources"]
|
| 18 |
+
num_repeats: 1
|
| 19 |
+
caption_ext: "txt"
|
| 20 |
+
caption_dropout_rate: 0.0
|
| 21 |
+
resolution: [512]
|
| 22 |
+
buckets: true
|
| 23 |
+
cache_latents_to_disk: true
|
| 24 |
+
cache_text_embeddings: false
|
| 25 |
+
- folder_path: "/workspace/datasets/konrad_ds4/targets"
|
| 26 |
+
control_path: ["/workspace/datasets/konrad_ds4/sources"]
|
| 27 |
+
num_repeats: 2
|
| 28 |
+
caption_ext: "txt"
|
| 29 |
+
caption_dropout_rate: 0.0
|
| 30 |
+
resolution: [512]
|
| 31 |
+
buckets: true
|
| 32 |
+
cache_latents_to_disk: true
|
| 33 |
+
cache_text_embeddings: false
|
| 34 |
+
train: { batch_size: 1, steps: 12, gradient_accumulation: 1, train_unet: true,
|
| 35 |
+
train_text_encoder: false, gradient_checkpointing: true, disable_sampling: true,
|
| 36 |
+
noise_scheduler: "flowmatch", timestep_type: "weighted", optimizer: "adamw8bit",
|
| 37 |
+
lr: 0.0001, lr_scheduler: "constant", dtype: bf16 }
|
| 38 |
+
model: { name_or_path: "/workspace/models/krea2/nk2e/raw_bf16.safetensors", arch: "krea2_edit",
|
| 39 |
+
quantize: true, quantize_te: true,
|
| 40 |
+
model_kwargs: { text_encoder_path: "Qwen/Qwen3-VL-4B-Instruct", fit_refs: true } }
|
| 41 |
+
sample: { sample_every: 100000, samples: [] }
|
| 42 |
+
meta: { name: "konrad_smoke", version: "1.0" }
|
backup_sessao_2026-08-06/configs/nk2e_bat2_prompts_json.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg | dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone
|
| 2 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg | medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams
|
| 3 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp | wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above
|
backup_sessao_2026-08-06/configs/nk2e_bat2_txt_originais.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg | Essa personagem lutando contra um gobling grande e musculoso, ela ta no mesmo envirorment, segurando uma espada e pronta para luta, num shot maneiro cinematico
|
| 2 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg | foco na garota de cabelo azul, medium close-up, podemos ver no pov da garota de cabelo vermelho ou algo assim. podemos ver no pov as mãos enfaixadas de curativos e etc.
|
| 3 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp | essa garota sorrindo dando um abraço em um ogro/orc, a visão é de lado, podemos ver a cena inteira, eles estão em cima de uma nuvem, felizes como se estivessemos a dias sem se verem, dando um abraço fofo
|
backup_sessao_2026-08-06/configs/nk2e_ctx_samples.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
backup_sessao_2026-08-06/configs/nk2e_ctx_samples_11.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
| 4 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg | A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.
|
| 5 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg | A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.
|
| 6 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg | A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.
|
| 7 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg | A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.
|
| 8 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg | A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.
|
| 9 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg | A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text "BIOS AUMENTAN A VELOCIDAD ALARMANTE" and "AN MANIFESTACIONES CONTRA LEY MARCIAL". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.
|
| 10 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg | A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.
|
| 11 |
+
/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg | A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.
|
backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples11.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000001.jpg | eye-level medium shot at a professional hockey rink during a face-off, the referee in a black and white striped jersey stands in the center ready to drop the puck, flanked by two young players in blue and mint-green jerseys crouching with their hockey sticks on the ice, two smaller teammates wait in the background on either side of the referee, stadium seating filled with spectators is visible in the darkened background under bright spotlights, the foreground is framed by the blurred silhouettes of two other players facing the scene from the sides
|
| 2 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000836.jpg | high-angle long shot looking down at a flat expanse of sand, a small child with a light tan complexion in a green t-shirt, dark shorts, and a white sun hat lying flat on their back in the center, arms and legs spread out, one hand holding a green snack, a small teal container placed near their legs, surrounding the child is a large, intricate geometric design drawn in the sand featuring lines, circles, and arrows, with the words aliens, and abduct me, etched in a circle, bright daylight illuminating the sandy landscape
|
| 3 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001768.jpg | medium shot at eye-level, a woman with blonde hair in a ponytail wearing a white shirt and green apron sits at a long wooden table, her body angled away from the camera, a person in a bright purple hooded sweatshirt stands opposite her, bowing deeply with their head down and long black hair covering their face, hands held together in a prayer-like gesture gripping a thin stick, a wooden table between them holds a stack of wooden bowls and a goblet, stone walls with a large wooden door and a window provide the background, rustic interior with wooden barrels on the floor
|
| 4 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000294.jpg | close-up from a low angle, a character with messy black hair and wide brown eyes screaming in distress, tears welling and spilling from the eyes, mouth wide open showing teeth, pale skin rendered with purple shadows, positioned on the left, a large hand or claw-like appendage with splayed fingers reaching in from the right, the hand colored in vibrant shades of purple and pink, abstract background filled with motion streaks and light flares, the entire frame dominated by intense facial expression and the approaching hand, vibrant violet and magenta light casting across the figures
|
| 5 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000075.jpg | medium shot at a slightly low angle, a large white and metallic robot with a spherical head and glowing cyan eyes stands against a backdrop of heavy, grey, storm-filled clouds, a motion-blurred seagull flies directly across the robot's face, the robot keeps its left arm bent, hand held open and palm upward to cradle a tiny, bright blue crab-like creature with prominent red pincers, the robot's chest and segmented shoulder plates are smooth and light-colored, the lighting is diffuse and cool-toned, capturing the contrast between the massive, immobile machine and the fleeting movement of the bird
|
| 6 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000759.jpg | medium shot at a straight-on view, a pale man with short white hair and eyes closed resting inside a wooden coffin, wearing a dark green high-collared coat with gold trim over a light blue collared shirt with a star pendant, hands crossed neatly over his chest in white gloves, scattered pink flower petals resting on his coat and the rumpled dark grey fabric lining the coffin, several hands in gloves visible at the far left and right edges of the frame gripping vertical wooden coffin bars, soft ambient lighting reflecting off his face and the wood grain
|
| 7 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000663.jpg | medium shot from behind the shoulder of a person watching a television, a dark silhouette of a figure visible in the left foreground, the television screen showing a grainy night broadcast of a large crowd protesting in a city street, tall illuminated buildings and glowing streetlights in the background, a red circular traffic sign perched on a pole on the right side, wet asphalt reflecting blue and white light, scrolling news text at the bottom of the screen reporting on martial law protests, screen glow illuminating the edges of the room in cool blue tones
|
| 8 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000611.jpg | medium close-up from a low angle, a mysterious figure draped in a heavy, dark, structured cloak sits amidst a vast, barren desert of orange-hued, wind-swept sand dunes, the figure's face obscured by a stiff, angular hood that reveals a recessed mechanical circular grate deep inside, a strap hanging from the side of the garment, warm dim lighting casting long shadows across the sandy floor, the scene bathed in a deep amber glow, the horizon line blurred in the soft, dark background, the overall atmosphere quiet, desolate, and arid
|
| 9 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000374.jpg | close-up, eye-level side view of a bare foot with fair skin standing vertically against a tall stack of purple and white poker chips on a green felt table, the heel of the foot resting directly on the felt surface, a person's forearm clad in a crisp white long-sleeved shirt sleeve entering from the right, the arm resting flat on the green table near the stacks, other stacks of green, orange, and blue poker chips arranged nearby, soft directional lighting casting subtle shadows on the white shirt fabric and the felt table surface
|
| 10 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000273.jpg | extreme close-up on a metallic surface, a thick and viscous splash of bright red blood flows downward over a dark circular gear-like component, bright droplets of blood splattered across adjacent grey armor plating in the dark environment, a sharp white jagged edge visible in the upper left corner partially stained with blood, the lighting is muted and dim emphasizing the high contrast of the vivid red fluid against the cool tones of the dark machine parts, a concentrated focus on the visceral pooling of liquid against the textured industrial surface
|
| 11 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001519.jpg | wide shot at eye-level, a small black chibi-style creature with large yellow eyes and tiny wings stands on a vibrant red carpet in the foreground, facing the viewer with a neutral expression, positioned in a grand, airy hall with beige paneled walls, a row of black wooden wheeled carts with glass display cases holds a silver sword, multiple glowing jewels, and a framed painting, tall green plants stand near the carts and beside a dark wooden double door in the back, all illuminated by bright, soft indoor lighting, the floor is polished and clean
|
backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples11_shufref.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000836.jpg | eye-level medium shot at a professional hockey rink during a face-off, the referee in a black and white striped jersey stands in the center ready to drop the puck, flanked by two young players in blue and mint-green jerseys crouching with their hockey sticks on the ice, two smaller teammates wait in the background on either side of the referee, stadium seating filled with spectators is visible in the darkened background under bright spotlights, the foreground is framed by the blurred silhouettes of two other players facing the scene from the sides
|
| 2 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001768.jpg | high-angle long shot looking down at a flat expanse of sand, a small child with a light tan complexion in a green t-shirt, dark shorts, and a white sun hat lying flat on their back in the center, arms and legs spread out, one hand holding a green snack, a small teal container placed near their legs, surrounding the child is a large, intricate geometric design drawn in the sand featuring lines, circles, and arrows, with the words aliens, and abduct me, etched in a circle, bright daylight illuminating the sandy landscape
|
| 3 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000294.jpg | medium shot at eye-level, a woman with blonde hair in a ponytail wearing a white shirt and green apron sits at a long wooden table, her body angled away from the camera, a person in a bright purple hooded sweatshirt stands opposite her, bowing deeply with their head down and long black hair covering their face, hands held together in a prayer-like gesture gripping a thin stick, a wooden table between them holds a stack of wooden bowls and a goblet, stone walls with a large wooden door and a window provide the background, rustic interior with wooden barrels on the floor
|
| 4 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000075.jpg | close-up from a low angle, a character with messy black hair and wide brown eyes screaming in distress, tears welling and spilling from the eyes, mouth wide open showing teeth, pale skin rendered with purple shadows, positioned on the left, a large hand or claw-like appendage with splayed fingers reaching in from the right, the hand colored in vibrant shades of purple and pink, abstract background filled with motion streaks and light flares, the entire frame dominated by intense facial expression and the approaching hand, vibrant violet and magenta light casting across the figures
|
| 5 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000759.jpg | medium shot at a slightly low angle, a large white and metallic robot with a spherical head and glowing cyan eyes stands against a backdrop of heavy, grey, storm-filled clouds, a motion-blurred seagull flies directly across the robot's face, the robot keeps its left arm bent, hand held open and palm upward to cradle a tiny, bright blue crab-like creature with prominent red pincers, the robot's chest and segmented shoulder plates are smooth and light-colored, the lighting is diffuse and cool-toned, capturing the contrast between the massive, immobile machine and the fleeting movement of the bird
|
| 6 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000663.jpg | medium shot at a straight-on view, a pale man with short white hair and eyes closed resting inside a wooden coffin, wearing a dark green high-collared coat with gold trim over a light blue collared shirt with a star pendant, hands crossed neatly over his chest in white gloves, scattered pink flower petals resting on his coat and the rumpled dark grey fabric lining the coffin, several hands in gloves visible at the far left and right edges of the frame gripping vertical wooden coffin bars, soft ambient lighting reflecting off his face and the wood grain
|
| 7 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000611.jpg | medium shot from behind the shoulder of a person watching a television, a dark silhouette of a figure visible in the left foreground, the television screen showing a grainy night broadcast of a large crowd protesting in a city street, tall illuminated buildings and glowing streetlights in the background, a red circular traffic sign perched on a pole on the right side, wet asphalt reflecting blue and white light, scrolling news text at the bottom of the screen reporting on martial law protests, screen glow illuminating the edges of the room in cool blue tones
|
| 8 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000374.jpg | medium close-up from a low angle, a mysterious figure draped in a heavy, dark, structured cloak sits amidst a vast, barren desert of orange-hued, wind-swept sand dunes, the figure's face obscured by a stiff, angular hood that reveals a recessed mechanical circular grate deep inside, a strap hanging from the side of the garment, warm dim lighting casting long shadows across the sandy floor, the scene bathed in a deep amber glow, the horizon line blurred in the soft, dark background, the overall atmosphere quiet, desolate, and arid
|
| 9 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000273.jpg | close-up, eye-level side view of a bare foot with fair skin standing vertically against a tall stack of purple and white poker chips on a green felt table, the heel of the foot resting directly on the felt surface, a person's forearm clad in a crisp white long-sleeved shirt sleeve entering from the right, the arm resting flat on the green table near the stacks, other stacks of green, orange, and blue poker chips arranged nearby, soft directional lighting casting subtle shadows on the white shirt fabric and the felt table surface
|
| 10 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001519.jpg | extreme close-up on a metallic surface, a thick and viscous splash of bright red blood flows downward over a dark circular gear-like component, bright droplets of blood splattered across adjacent grey armor plating in the dark environment, a sharp white jagged edge visible in the upper left corner partially stained with blood, the lighting is muted and dim emphasizing the high contrast of the vivid red fluid against the cool tones of the dark machine parts, a concentrated focus on the visceral pooling of liquid against the textured industrial surface
|
| 11 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000001.jpg | wide shot at eye-level, a small black chibi-style creature with large yellow eyes and tiny wings stands on a vibrant red carpet in the foreground, facing the viewer with a neutral expression, positioned in a grand, airy hall with beige paneled walls, a row of black wooden wheeled carts with glass display cases holds a silver sword, multiple glowing jewels, and a framed painting, tall green plants stand near the carts and beside a dark wooden double door in the back, all illuminated by bright, soft indoor lighting, the floor is polished and clean
|
backup_sessao_2026-08-06/configs/nk2e_ds4novo_samples3.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000001.jpg | eye-level medium shot at a professional hockey rink during a face-off, the referee in a black and white striped jersey stands in the center ready to drop the puck, flanked by two young players in blue and mint-green jerseys crouching with their hockey sticks on the ice, two smaller teammates wait in the background on either side of the referee, stadium seating filled with spectators is visible in the darkened background under bright spotlights, the foreground is framed by the blurred silhouettes of two other players facing the scene from the sides
|
| 2 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000836.jpg | high-angle long shot looking down at a flat expanse of sand, a small child with a light tan complexion in a green t-shirt, dark shorts, and a white sun hat lying flat on their back in the center, arms and legs spread out, one hand holding a green snack, a small teal container placed near their legs, surrounding the child is a large, intricate geometric design drawn in the sand featuring lines, circles, and arrows, with the words aliens, and abduct me, etched in a circle, bright daylight illuminating the sandy landscape
|
| 3 |
+
/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001768.jpg | medium shot at eye-level, a woman with blonde hair in a ponytail wearing a white shirt and green apron sits at a long wooden table, her body angled away from the camera, a person in a bright purple hooded sweatshirt stands opposite her, bowing deeply with their head down and long black hair covering their face, hands held together in a prayer-like gesture gripping a thin stick, a wooden table between them holds a stack of wooden bowls and a goblet, stone walls with a large wooden door and a window provide the background, rustic interior with wooden barrels on the floor
|
backup_sessao_2026-08-06/configs/nk2e_orig_samples11.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
| 4 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg | A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.
|
| 5 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg | A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.
|
| 6 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg | A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.
|
| 7 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg | A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text "BIOS AUMENTAN A VELOCIDAD ALARMANTE" and "AN MANIFESTACIONES CONTRA LEY MARCIAL". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.
|
| 8 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg | A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.
|
| 9 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg | A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.
|
| 10 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg | A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.
|
| 11 |
+
/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg | A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.
|
backup_sessao_2026-08-06/configs/nk2e_orig_samples11_shufref.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
| 4 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg | A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.
|
| 5 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg | A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.
|
| 6 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg | A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.
|
| 7 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg | A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text "BIOS AUMENTAN A VELOCIDAD ALARMANTE" and "AN MANIFESTACIONES CONTRA LEY MARCIAL". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.
|
| 8 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg | A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.
|
| 9 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg | A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.
|
| 10 |
+
/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg | A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.
|
| 11 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.
|
backup_sessao_2026-08-06/configs/nk2e_orig_samples14.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
| 4 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000294.jpg | A tight close-up shot of a young person with dark hair, their face contorted in an intense expression of distress. Their mouth is wide open in a cry, and large, glistening tears stream from their wide, light-colored eyes. The character is positioned on the left side of the frame, with their head tilted slightly. A large, pale, hand-like appendage with multiple fingers extends from the right side of the frame, reaching toward the character's face. The background is a blurred, abstract blend of deep purple and bright magenta light, suggesting a high-energy or supernatural environment. Character continuity: same character. Background continuity: new background.
|
| 5 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000075.jpg | A medium shot of a white and grey robotic figure with a spherical head and glowing cyan circular eyes, set against a cloudy grey sky. The robot holds a small, translucent blue crab with red-tipped claws on its palm. A seagull is captured in motion, flying directly in front of the robot's face, creating a slight motion blur. The robot has segmented arms and a smooth, rounded torso. The background is an overcast sky with soft, diffused light. Character continuity: same character. Background continuity: new view of the same background.
|
| 6 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000759.jpg | A high-angle, close-up shot looking down into an open stone sarcophagus. A man with short, light-colored hair lies peacefully inside with his eyes closed, his hands folded over his chest. He wears a dark blue, high-collared military-style jacket with gold trim and a star-shaped pendant. The interior of the sarcophagus is lined with brown, padded fabric. On either side of the frame, the gloved hands of two individuals are visible, gripping the edges of the sarcophagus. Several small, light-colored flower petals are scattered across the man and the interior of the coffin. Character continuity: same character. Background continuity: new view of the same background.
|
| 7 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000663.jpg | A close-up, slightly angled view of an old television screen displaying a live news broadcast of a night protest in a city street. The screen shows a large crowd of people gathered on a dark asphalt road at night, illuminated by streetlights and green traffic signals. A circular traffic sign with an upward arrow is visible on the right side of the screen. A news ticker at the bottom of the screen displays the text "BIOS AUMENTAN A VELOCIDAD ALARMANTE" and "AN MANIFESTACIONES CONTRA LEY MARCIAL". The television is viewed from the side, with the blurred silhouette of a person's head and shoulder visible in the foreground on the left. Character continuity: same character. Background continuity: same background view.
|
| 8 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000611.jpg | A close-up, rear-view shot of a person wearing a dark, tactical-style hooded garment or backpack with a prominent circular vent or mechanical detail on the back. The person is positioned in a desert environment with orange-toned sand dunes visible in the background. The lighting is warm and dim, casting deep shadows across the scene. The person is oriented away from the camera, with a portion of a strap or equipment visible on the left side of the frame. Character continuity: same character. Background continuity: new view of the same background.
|
| 9 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000374.jpg | A close-up shot focusing on a person's hand resting on a green felt gaming table. The person is wearing a white long-sleeved shirt with the cuff visible. Next to the hand, there are several tall stacks of circular casino chips in various colors, including purple, white, green, and orange. The lighting is warm and focused on the table surface. Character continuity: same character. Background continuity: new view of the same background.
|
| 10 |
+
/workspace/datasets/ctx_heldout/input_A/imagem000273.jpg | A close-up, high-angle shot focusing on a person's torso and arm. The individual wears a white jacket with a dark-colored garment underneath. A large, jagged, dark red bloodstain is visible on the chest area of the white jacket, with droplets of blood splattered across the fabric. The person's arm is partially visible, and the scene is set against a dark, indistinct background. Character continuity: same character. Background continuity: new view of the same background.
|
| 11 |
+
/workspace/datasets/ctx_heldout/input_A/imagem001519.jpg | A wide shot of a spacious, high-ceilinged hall with light-colored stone walls. A row of black, wheeled display carts with glass cases sits on a red carpet, containing various artifacts including a sword and colorful gemstones. A small, black, winged creature with large yellow eyes and a grey belly stands on the red carpet in the foreground, facing the viewer. Two potted plants flank a set of double doors in the background. Character continuity: same character. Background continuity: new view of the same background.
|
| 12 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg | dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone
|
| 13 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg | medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams
|
| 14 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp | wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above
|
backup_sessao_2026-08-06/configs/nk2e_orig_samples3.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
backup_sessao_2026-08-06/configs/nk2e_orig_samples6.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/workspace/datasets/ctx_original/input_A/imagem000001.jpg | A wide shot of a youth ice hockey face-off at center ice. A referee in a black and white striped jersey stands in the middle, holding a puck. To the left, a player in a blue jersey with a team logo and a blue helmet leans over their stick. To the right, a player in a mint green jersey with a team logo and a green helmet leans over their stick. Two other players in matching team jerseys are positioned slightly behind them. The background shows a crowded arena with spectators in the stands. The ice surface features a red center line and a red face-off circle. Character continuity: same character. Background continuity: new view of the same background.
|
| 2 |
+
/workspace/datasets/ctx_original/input_A/imagem000836.jpg | A high-angle, wide shot of a young boy lying on his back in the middle of a large, circular design etched into the sand. The boy wears a green shirt, shorts, and a metallic colander on his head. The sand art features a large circle surrounding him with the text "ALIENS! ABDUCT ME!!!" written inside, accompanied by various geometric patterns, concentric circles, and arrows pointing toward the center. A small green box sits on the sand next to the boy. The surrounding area is vast, flat, and sandy. Character continuity: same character. Background continuity: new view of the same background.
|
| 3 |
+
/workspace/datasets/ctx_original/input_A/imagem001768.jpg | A medium shot inside a rustic tavern. A person with long, straight black hair wearing a purple hooded sweatshirt stands on the right, holding a black and gold rectangular object with both hands near their chest. Facing them on the left, a person with blonde hair tied in a low ponytail, wearing a white shirt and a dark green apron, sits at a long wooden table. On the table between them are several wooden bowls and a small goblet. The background features a stone wall, a wooden door, and a window with a grid pattern. Character continuity: same character. Background continuity: new view of the same background.
|
| 4 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg | dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone
|
| 5 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg | medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams
|
| 6 |
+
/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp | wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above
|
backup_sessao_2026-08-06/configs/omini_sauce_1.toml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GROUNDEDSECRET — treino sério do krea2_omini_grounded (7000 steps).
|
| 2 |
+
# Método validado no probe 250 + melhorias mapeadas em docs/OMINI_GROUNDED_SEGREDO.md:
|
| 3 |
+
# - caption_dropout 0.1 (treina o uncond grounded do CFG)
|
| 4 |
+
# - vl_grounding_jitter 384-768 (dial de inferência robusto)
|
| 5 |
+
# - multi-resolução 512/768/1024 (dataset é 1080p nativo)
|
| 6 |
+
output_dir = '/workspace/checkpoints/omini_sauce_1'
|
| 7 |
+
dataset = '/workspace/configs/omini_sauce_dataset.toml'
|
| 8 |
+
epochs = 1000
|
| 9 |
+
max_steps = 20000
|
| 10 |
+
micro_batch_size_per_gpu = 1
|
| 11 |
+
gradient_accumulation_steps = 1
|
| 12 |
+
pipeline_stages = 1
|
| 13 |
+
gradient_clipping = 1.0
|
| 14 |
+
warmup_steps = 100
|
| 15 |
+
save_every_n_steps = 250
|
| 16 |
+
checkpoint_every_n_minutes = 60
|
| 17 |
+
activation_checkpointing = true
|
| 18 |
+
save_dtype = 'bfloat16'
|
| 19 |
+
caching_batch_size = 1
|
| 20 |
+
blocks_to_swap = 8
|
| 21 |
+
|
| 22 |
+
[model]
|
| 23 |
+
type = 'krea2_omini_grounded'
|
| 24 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 25 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 26 |
+
text_encoders = [
|
| 27 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 28 |
+
]
|
| 29 |
+
dtype = 'bfloat16'
|
| 30 |
+
diffusion_model_dtype = 'float8'
|
| 31 |
+
timestep_sample_method = 'logit_normal'
|
| 32 |
+
flux_shift = true
|
| 33 |
+
|
| 34 |
+
[krea2_omini_grounded]
|
| 35 |
+
position_mode = 'width_shift'
|
| 36 |
+
reference_position_offset = 1.0
|
| 37 |
+
reference_timestep = 'zero'
|
| 38 |
+
condition_dropout = 0.0
|
| 39 |
+
condition_only_lora = true
|
| 40 |
+
vl_prompt_style = 'plain'
|
| 41 |
+
vl_longest_side = 768
|
| 42 |
+
vl_grounding_jitter = [384, 768]
|
| 43 |
+
caption_dropout = 0.1
|
| 44 |
+
|
| 45 |
+
[adapter]
|
| 46 |
+
type = 'lora'
|
| 47 |
+
rank = 64
|
| 48 |
+
dtype = 'bfloat16'
|
| 49 |
+
|
| 50 |
+
[optimizer]
|
| 51 |
+
type = 'AdamW8bitKahan'
|
| 52 |
+
lr = 1e-4
|
| 53 |
+
betas = [0.9, 0.99]
|
| 54 |
+
weight_decay = 0.01
|
| 55 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/omini_sauce_dataset.toml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
resolutions = [1024]
|
| 2 |
+
enable_ar_bucket = true
|
| 3 |
+
min_ar = 0.5
|
| 4 |
+
max_ar = 2.0
|
| 5 |
+
num_ar_buckets = 9
|
| 6 |
+
frame_buckets = [1]
|
| 7 |
+
|
| 8 |
+
[[directory]]
|
| 9 |
+
path = '/workspace/datasets/sauce9k/ds1_recortados/images_B'
|
| 10 |
+
control_path = '/workspace/datasets/sauce9k/ds1_recortados/images_A'
|
| 11 |
+
num_repeats = 1
|
| 12 |
+
|
| 13 |
+
[[directory]]
|
| 14 |
+
path = '/workspace/datasets/sauce9k/ds2_poxima_v2/images_B'
|
| 15 |
+
control_path = '/workspace/datasets/sauce9k/ds2_poxima_v2/images_A'
|
| 16 |
+
num_repeats = 1
|
| 17 |
+
|
| 18 |
+
[[directory]]
|
| 19 |
+
path = '/workspace/datasets/sauce9k/ds3_comikontext/images_B'
|
| 20 |
+
control_path = '/workspace/datasets/sauce9k/ds3_comikontext/images_A'
|
| 21 |
+
num_repeats = 1
|
| 22 |
+
|
| 23 |
+
[[directory]]
|
| 24 |
+
path = '/workspace/datasets/sauce9k/ds4_contexto_curado/images_B'
|
| 25 |
+
control_path = '/workspace/datasets/sauce9k/ds4_contexto_curado/images_A'
|
| 26 |
+
num_repeats = 3
|
backup_sessao_2026-08-06/configs/proximacena_dataset.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dataset do run k2_proximacena_v2 — 4 fontes, pareadas por stem.
|
| 2 |
+
# Captions: descrição pura e detalhada da imagem B (vidcap preset grounded-scene).
|
| 3 |
+
# ds4 = contexto_rush curado a mão pelo usuário -> ênfase 3x via num_repeats.
|
| 4 |
+
resolutions = [1024]
|
| 5 |
+
enable_ar_bucket = true
|
| 6 |
+
min_ar = 0.5
|
| 7 |
+
max_ar = 2.0
|
| 8 |
+
num_ar_buckets = 9
|
| 9 |
+
frame_buckets = [1]
|
| 10 |
+
|
| 11 |
+
[[directory]]
|
| 12 |
+
path = '/workspace/datasets/proxima_cena/ds1_recortados/images_B'
|
| 13 |
+
control_path = '/workspace/datasets/proxima_cena/ds1_recortados/images_A'
|
| 14 |
+
num_repeats = 1
|
| 15 |
+
|
| 16 |
+
[[directory]]
|
| 17 |
+
path = '/workspace/datasets/proxima_cena/ds2_poxima_v2/images_B'
|
| 18 |
+
control_path = '/workspace/datasets/proxima_cena/ds2_poxima_v2/images_A'
|
| 19 |
+
num_repeats = 1
|
| 20 |
+
|
| 21 |
+
[[directory]]
|
| 22 |
+
path = '/workspace/datasets/proxima_cena/ds3_comikontext/images_B'
|
| 23 |
+
control_path = '/workspace/datasets/proxima_cena/ds3_comikontext/images_A'
|
| 24 |
+
num_repeats = 1
|
| 25 |
+
|
| 26 |
+
[[directory]]
|
| 27 |
+
path = '/workspace/datasets/proxima_cena/ds4_contexto_curado/images_B'
|
| 28 |
+
control_path = '/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A'
|
| 29 |
+
num_repeats = 3
|
backup_sessao_2026-08-06/configs/proximacena_samples.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"comment": "3 fixed sampling examples for the k2_proximacena_v2 run. Prompts written in the grounded-scene caption dialect (pure target description, framing first, no style words). Only 'reference', 'prompt', 'width' and 'height' are consumed by the supervisor.",
|
| 3 |
+
"samples": [
|
| 4 |
+
{
|
| 5 |
+
"name": "goblin_fight",
|
| 6 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg",
|
| 7 |
+
"prompt": "dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone",
|
| 8 |
+
"width": 1152,
|
| 9 |
+
"height": 896
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"name": "pov_bandaged_hands",
|
| 13 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg",
|
| 14 |
+
"prompt": "medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams",
|
| 15 |
+
"width": 1152,
|
| 16 |
+
"height": 896
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "orc_hug_cloud",
|
| 20 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp",
|
| 21 |
+
"prompt": "wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above",
|
| 22 |
+
"width": 1152,
|
| 23 |
+
"height": 896
|
| 24 |
+
}
|
| 25 |
+
]
|
| 26 |
+
}
|
backup_sessao_2026-08-06/configs/proximacena_smoke_dataset.toml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
resolutions = [1024]
|
| 2 |
+
enable_ar_bucket = true
|
| 3 |
+
min_ar = 0.5
|
| 4 |
+
max_ar = 2.0
|
| 5 |
+
num_ar_buckets = 9
|
| 6 |
+
frame_buckets = [1]
|
| 7 |
+
|
| 8 |
+
[[directory]]
|
| 9 |
+
path = '/workspace/datasets/proxima_cena_smoke/images_B'
|
| 10 |
+
control_path = '/workspace/datasets/proxima_cena_smoke/images_A'
|
| 11 |
+
num_repeats = 1
|
backup_sessao_2026-08-06/configs/saga512_dataset.toml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# saga512 — dataset completo recaptionado (Gemini grounded-scene), corte p/ disco
|
| 2 |
+
# autorizado: 10.991 pares (ds1 2172, ds2 5400 integral, ds3 2172, ds4 1247 s/ held-out).
|
| 3 |
+
resolutions = [512]
|
| 4 |
+
enable_ar_bucket = true
|
| 5 |
+
min_ar = 0.5
|
| 6 |
+
max_ar = 2.0
|
| 7 |
+
num_ar_buckets = 7
|
| 8 |
+
frame_buckets = [1]
|
| 9 |
+
|
| 10 |
+
[[directory]]
|
| 11 |
+
path = '/workspace/datasets/saga512/ds1_recortados/target'
|
| 12 |
+
control_path = '/workspace/datasets/saga512/ds1_recortados/refs'
|
| 13 |
+
multi_ref = true
|
| 14 |
+
max_refs = 1
|
| 15 |
+
num_repeats = 1
|
| 16 |
+
|
| 17 |
+
[[directory]]
|
| 18 |
+
path = '/workspace/datasets/saga512/ds2_poxima_v2/target'
|
| 19 |
+
control_path = '/workspace/datasets/saga512/ds2_poxima_v2/refs'
|
| 20 |
+
multi_ref = true
|
| 21 |
+
max_refs = 1
|
| 22 |
+
num_repeats = 1
|
| 23 |
+
|
| 24 |
+
[[directory]]
|
| 25 |
+
path = '/workspace/datasets/saga512/ds3_comikontext/target'
|
| 26 |
+
control_path = '/workspace/datasets/saga512/ds3_comikontext/refs'
|
| 27 |
+
multi_ref = true
|
| 28 |
+
max_refs = 1
|
| 29 |
+
num_repeats = 1
|
| 30 |
+
|
| 31 |
+
[[directory]]
|
| 32 |
+
path = '/workspace/datasets/saga512/ds4_contexto_curado/target'
|
| 33 |
+
control_path = '/workspace/datasets/saga512/ds4_contexto_curado/refs'
|
| 34 |
+
multi_ref = true
|
| 35 |
+
max_refs = 1
|
| 36 |
+
num_repeats = 3
|
backup_sessao_2026-08-06/configs/saga512_samples.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"comment": "6 samples fixos do run saga512: 3 pares do dataset (captions novas) + 3 selecionados pelo usuario",
|
| 3 |
+
"samples": [
|
| 4 |
+
{
|
| 5 |
+
"name": "ds4_imagem000001",
|
| 6 |
+
"reference": "/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000001.jpg",
|
| 7 |
+
"prompt": "eye-level medium shot at a professional hockey rink during a face-off, the referee in a black and white striped jersey stands in the center ready to drop the puck, flanked by two young players in blue and mint-green jerseys crouching with their hockey sticks on the ice, two smaller teammates wait in the background on either side of the referee, stadium seating filled with spectators is visible in the darkened background under bright spotlights, the foreground is framed by the blurred silhouettes of two other players facing the scene from the sides",
|
| 8 |
+
"width": 704,
|
| 9 |
+
"height": 384
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"name": "ds4_imagem000836",
|
| 13 |
+
"reference": "/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem000836.jpg",
|
| 14 |
+
"prompt": "high-angle long shot looking down at a flat expanse of sand, a small child with a light tan complexion in a green t-shirt, dark shorts, and a white sun hat lying flat on their back in the center, arms and legs spread out, one hand holding a green snack, a small teal container placed near their legs, surrounding the child is a large, intricate geometric design drawn in the sand featuring lines, circles, and arrows, with the words aliens, and abduct me, etched in a circle, bright daylight illuminating the sandy landscape",
|
| 15 |
+
"width": 704,
|
| 16 |
+
"height": 384
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "ds4_imagem001768",
|
| 20 |
+
"reference": "/workspace/datasets/proxima_cena/ds4_contexto_curado/images_A/ds4_imagem001768.jpg",
|
| 21 |
+
"prompt": "medium shot at eye-level, a woman with blonde hair in a ponytail wearing a white shirt and green apron sits at a long wooden table, her body angled away from the camera, a person in a bright purple hooded sweatshirt stands opposite her, bowing deeply with their head down and long black hair covering their face, hands held together in a prayer-like gesture gripping a thin stick, a wooden table between them holds a stack of wooden bowls and a goblet, stone walls with a large wooden door and a window provide the background, rustic interior with wooden barrels on the floor",
|
| 22 |
+
"width": 704,
|
| 23 |
+
"height": 384
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "goblin_fight",
|
| 27 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image1.jpg",
|
| 28 |
+
"prompt": "dynamic wide shot from a low angle, a young woman with long wavy blonde hair and amber eyes standing in a fighting stance, both hands gripping the hilt of a raised steel sword angled across her body, knees bent and one foot slid back, furrowed brows and fierce gaze locked on her opponent, wearing a cream off-shoulder blouse with a laced blue corset, facing a hulking muscular goblin with mottled green skin, pointed ears and bared tusks, its clawed fists raised mid-charge, dust kicked up between them, weathered stone wall and a wooden pillar with hanging ivy behind them, warm sunlight raking across the stone",
|
| 29 |
+
"width": 1152,
|
| 30 |
+
"height": 896
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "pov_bandaged_hands",
|
| 34 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image2.jpg",
|
| 35 |
+
"prompt": "medium close-up from a first-person viewpoint, a girl with short choppy blue hair and small braids looking up toward the camera with a soft concerned expression, lips slightly parted, wearing a teal short-sleeved shirt over a pink striped undershirt, seated cross-legged on a patched mattress, in the lower frame two forearms wrapped in stained white bandages reaching toward her, the bandaged hands open with palms up, a dim wooden attic room around them lit by warm orange light from a round window, small trinkets dangling from the beams",
|
| 36 |
+
"width": 1152,
|
| 37 |
+
"height": 896
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"name": "orc_hug_cloud",
|
| 41 |
+
"reference": "/workspace/datasets/raw/sampling_ref/imagens_geracao_samples/image3.webp",
|
| 42 |
+
"prompt": "wide shot from the side at eye level, a young woman with a curly pink bob, blue eyes, clear angular goggles pushed up on her face and ornate white and gold armor, on her tiptoes with both arms wrapped tightly around the neck of a towering broad-shouldered orc with weathered green skin and small tusks, her cheek pressed against his chest, eyes closed in a wide open-mouth smile, the orc's thick arms folded gently around her back, both standing on the rounded top of a dense white cloud, more clouds drifting below against a deep blue sky, bright sunlight from above",
|
| 43 |
+
"width": 1152,
|
| 44 |
+
"height": 896
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
backup_sessao_2026-08-06/configs/saga512_smoke.toml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KREA2 edit saga 2026-07-29 — treino principal.
|
| 2 |
+
#
|
| 3 |
+
# Base: receita validada krea2_multiref_grounded (docs/KREA2_MULTIREF_RECEITA.md),
|
| 4 |
+
# aqui com max_refs=1 (todos os datasets são pares A->B).
|
| 5 |
+
# - width_shift + refs a t=0 + LoRA condition-only routada + grounding Qwen3-VL
|
| 6 |
+
# - caption_dropout=0.1 (uncond do CFG; condition_dropout é proibido no grounded)
|
| 7 |
+
# - txtfusion_rank=128 (canal de leitura reforçado — tarefa é semântica: editar)
|
| 8 |
+
# - rank 64 (usuário pediu >32; dezenas de milhares de imagens)
|
| 9 |
+
|
| 10 |
+
output_dir = '/workspace/checkpoints/saga512_smoke'
|
| 11 |
+
dataset = '/workspace/configs/saga512_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 10
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 10
|
| 20 |
+
checkpoint_every_n_minutes = 120
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1 # OBRIGATÓRIO com multi_ref
|
| 24 |
+
blocks_to_swap = 0 # usuário pediu velocidade; VRAM medida 20,1G com swap 8, cabe sem
|
| 25 |
+
|
| 26 |
+
[model]
|
| 27 |
+
type = 'krea2_multiref_grounded'
|
| 28 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 29 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 30 |
+
text_encoders = [
|
| 31 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 32 |
+
]
|
| 33 |
+
dtype = 'bfloat16'
|
| 34 |
+
diffusion_model_dtype = 'float8'
|
| 35 |
+
timestep_sample_method = 'logit_normal'
|
| 36 |
+
flux_shift = true
|
| 37 |
+
|
| 38 |
+
[krea2_multiref_grounded]
|
| 39 |
+
max_refs = 1
|
| 40 |
+
slot_axis = 'width'
|
| 41 |
+
position_mode = 'width_shift'
|
| 42 |
+
reference_position_offset = 1.0
|
| 43 |
+
reference_timestep = 'zero'
|
| 44 |
+
condition_dropout = 0.0 # proibido no caminho grounded
|
| 45 |
+
condition_only_lora = true
|
| 46 |
+
vl_prompt_style = 'picture_n'
|
| 47 |
+
vl_image_label = 'image'
|
| 48 |
+
vl_image_max_pixels = 147456 # 384² — grounding; cache é o gargalo, medir no smoke
|
| 49 |
+
caption_dropout = 0.1
|
| 50 |
+
txtfusion_rank = 128
|
| 51 |
+
|
| 52 |
+
[adapter]
|
| 53 |
+
type = 'lora'
|
| 54 |
+
rank = 64
|
| 55 |
+
dtype = 'bfloat16'
|
| 56 |
+
|
| 57 |
+
[optimizer]
|
| 58 |
+
type = 'AdamW8bitKahan'
|
| 59 |
+
lr = 1e-4
|
| 60 |
+
betas = [0.9, 0.99]
|
| 61 |
+
weight_decay = 0.01
|
| 62 |
+
stabilize = false
|
backup_sessao_2026-08-06/configs/saga512_train.toml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# KREA2 edit saga 2026-07-29 — treino principal.
|
| 2 |
+
#
|
| 3 |
+
# Base: receita validada krea2_multiref_grounded (docs/KREA2_MULTIREF_RECEITA.md),
|
| 4 |
+
# aqui com max_refs=1 (todos os datasets são pares A->B).
|
| 5 |
+
# - width_shift + refs a t=0 + LoRA condition-only routada + grounding Qwen3-VL
|
| 6 |
+
# - caption_dropout=0.1 (uncond do CFG; condition_dropout é proibido no grounded)
|
| 7 |
+
# - txtfusion_rank=128 (canal de leitura reforçado — tarefa é semântica: editar)
|
| 8 |
+
# - rank 64 (usuário pediu >32; dezenas de milhares de imagens)
|
| 9 |
+
|
| 10 |
+
output_dir = '/workspace/checkpoints/saga512'
|
| 11 |
+
dataset = '/workspace/configs/saga512_dataset.toml'
|
| 12 |
+
epochs = 1000
|
| 13 |
+
max_steps = 15000
|
| 14 |
+
micro_batch_size_per_gpu = 1
|
| 15 |
+
gradient_accumulation_steps = 1
|
| 16 |
+
pipeline_stages = 1
|
| 17 |
+
gradient_clipping = 1.0
|
| 18 |
+
warmup_steps = 100
|
| 19 |
+
save_every_n_steps = 250
|
| 20 |
+
checkpoint_every_n_minutes = 120
|
| 21 |
+
activation_checkpointing = true
|
| 22 |
+
save_dtype = 'bfloat16'
|
| 23 |
+
caching_batch_size = 1 # OBRIGATÓRIO com multi_ref
|
| 24 |
+
blocks_to_swap = 0 # usuário pediu velocidade; VRAM medida 20,1G com swap 8, cabe sem
|
| 25 |
+
|
| 26 |
+
[model]
|
| 27 |
+
type = 'krea2_multiref_grounded'
|
| 28 |
+
diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
|
| 29 |
+
vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
|
| 30 |
+
text_encoders = [
|
| 31 |
+
{path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
|
| 32 |
+
]
|
| 33 |
+
dtype = 'bfloat16'
|
| 34 |
+
diffusion_model_dtype = 'float8'
|
| 35 |
+
timestep_sample_method = 'logit_normal'
|
| 36 |
+
flux_shift = true
|
| 37 |
+
|
| 38 |
+
[krea2_multiref_grounded]
|
| 39 |
+
max_refs = 1
|
| 40 |
+
slot_axis = 'width'
|
| 41 |
+
position_mode = 'width_shift'
|
| 42 |
+
reference_position_offset = 1.0
|
| 43 |
+
reference_timestep = 'zero'
|
| 44 |
+
condition_dropout = 0.0 # proibido no caminho grounded
|
| 45 |
+
condition_only_lora = true
|
| 46 |
+
vl_prompt_style = 'picture_n'
|
| 47 |
+
vl_image_label = 'image'
|
| 48 |
+
vl_image_max_pixels = 147456 # 384² — grounding; cache é o gargalo, medir no smoke
|
| 49 |
+
caption_dropout = 0.1
|
| 50 |
+
txtfusion_rank = 128
|
| 51 |
+
|
| 52 |
+
[adapter]
|
| 53 |
+
type = 'lora'
|
| 54 |
+
rank = 64
|
| 55 |
+
dtype = 'bfloat16'
|
| 56 |
+
|
| 57 |
+
[optimizer]
|
| 58 |
+
type = 'AdamW8bitKahan'
|
| 59 |
+
lr = 2e-4
|
| 60 |
+
betas = [0.9, 0.99]
|
| 61 |
+
weight_decay = 0.01
|
| 62 |
+
stabilize = false
|
backup_sessao_2026-08-06/nk2e_arquivos_novos.tgz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05213e2e79e311ac7c2523961d03e35ce71e3a782ced24aab78e4f0573a5ac06
|
| 3 |
+
size 20953
|
backup_sessao_2026-08-06/nk2e_patches.diff
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/kreaedit/data.py b/kreaedit/data.py
|
| 2 |
+
index 778445b..c25b3bb 100644
|
| 3 |
+
--- a/kreaedit/data.py
|
| 4 |
+
+++ b/kreaedit/data.py
|
| 5 |
+
@@ -92,16 +92,22 @@ class EditTripletDataset(Dataset):
|
| 6 |
+
|
| 7 |
+
def __getitem__(self, i):
|
| 8 |
+
d = torch.load(self.files[i], map_location="cpu", weights_only=False)
|
| 9 |
+
- return {
|
| 10 |
+
+ item = {
|
| 11 |
+
"source_lat": d["source_lat"].float(),
|
| 12 |
+
"target_lat": d["target_lat"].float(),
|
| 13 |
+
"instruction": d["instruction"],
|
| 14 |
+
}
|
| 15 |
+
+ if "ref_vl" in d:
|
| 16 |
+
+ item["ref_vl"] = d["ref_vl"] # uint8 (H, W, 3), for grounded encoding
|
| 17 |
+
+ return item
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def collate(batch):
|
| 21 |
+
- return {
|
| 22 |
+
+ out = {
|
| 23 |
+
"source_lat": torch.stack([b["source_lat"] for b in batch]),
|
| 24 |
+
"target_lat": torch.stack([b["target_lat"] for b in batch]),
|
| 25 |
+
"instruction": [b["instruction"] for b in batch],
|
| 26 |
+
}
|
| 27 |
+
+ if "ref_vl" in batch[0]:
|
| 28 |
+
+ out["ref_vl"] = [b["ref_vl"] for b in batch] # variable sizes -> list
|
| 29 |
+
+ return out
|
| 30 |
+
diff --git a/kreaedit/incontext.py b/kreaedit/incontext.py
|
| 31 |
+
index 40dcfc2..d94c840 100644
|
| 32 |
+
--- a/kreaedit/incontext.py
|
| 33 |
+
+++ b/kreaedit/incontext.py
|
| 34 |
+
@@ -69,7 +69,7 @@ def sample_logitnorm_t(b: int, device, mean: float, std: float) -> torch.Tensor:
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def flow_loss_incontext(model, target_lat, ref_lat, txt, txtmask, patch,
|
| 38 |
+
- t_mean=0.0, t_std=1.0):
|
| 39 |
+
+ t_mean=0.0, t_std=1.0, ref_t_zero=False):
|
| 40 |
+
"""One in-context flow-matching training step. Returns scalar MSE loss."""
|
| 41 |
+
b = target_lat.shape[0]
|
| 42 |
+
t = sample_logitnorm_t(b, target_lat.device, t_mean, t_std).to(target_lat.dtype)
|
| 43 |
+
@@ -79,7 +79,9 @@ def flow_loss_incontext(model, target_lat, ref_lat, txt, txtmask, patch,
|
| 44 |
+
v_target = noise - target_lat
|
| 45 |
+
|
| 46 |
+
img, pos, mask, n_target = build_incontext_tokens(x_t, ref_lat, txtmask, patch)
|
| 47 |
+
- pred = model(img=img, context=txt, t=t, pos=pos, mask=mask)
|
| 48 |
+
+ n_ref = img.shape[1] - n_target
|
| 49 |
+
+ extra = {"ref_len": n_ref, "ref_timestep": 0.0} if ref_t_zero else {}
|
| 50 |
+
+ pred = model(img=img, context=txt, t=t, pos=pos, mask=mask, **extra)
|
| 51 |
+
pred_target = pred[:, :n_target]
|
| 52 |
+
v_tok, _ = patchify(v_target, patch)
|
| 53 |
+
return F.mse_loss(pred_target.float(), v_tok.float())
|
| 54 |
+
@@ -112,7 +114,7 @@ def flow_loss_diptych(model, source_lat, target_lat, txt, txtmask, patch,
|
| 55 |
+
|
| 56 |
+
@torch.no_grad()
|
| 57 |
+
def edit_incontext(model, ref_lat, txt, txtmask, ts, patch, guidance=0.0,
|
| 58 |
+
- untxt=None, unmask=None, seed=0):
|
| 59 |
+
+ untxt=None, unmask=None, seed=0, ref_t_zero=False):
|
| 60 |
+
"""Sample an edited target latent given a reference latent + instruction.
|
| 61 |
+
|
| 62 |
+
ts: list of timesteps from sampling.timesteps (1 -> 0). Returns (B,C,H,W).
|
| 63 |
+
@@ -125,11 +127,12 @@ def edit_incontext(model, ref_lat, txt, txtmask, ts, patch, guidance=0.0,
|
| 64 |
+
|
| 65 |
+
for tcurr, tprev in zip(ts[:-1], ts[1:]):
|
| 66 |
+
img, pos, mask, n_target = build_incontext_tokens(x, ref_lat, txtmask, patch)
|
| 67 |
+
+ extra = {"ref_len": img.shape[1] - n_target, "ref_timestep": 0.0} if ref_t_zero else {}
|
| 68 |
+
t = torch.full((b,), tcurr, device=device, dtype=x.dtype)
|
| 69 |
+
- v = model(img=img, context=txt, t=t, pos=pos, mask=mask)[:, :n_target]
|
| 70 |
+
+ v = model(img=img, context=txt, t=t, pos=pos, mask=mask, **extra)[:, :n_target]
|
| 71 |
+
if cfg:
|
| 72 |
+
imgu, posu, masku, _ = build_incontext_tokens(x, ref_lat, unmask, patch)
|
| 73 |
+
- vu = model(img=imgu, context=untxt, t=t, pos=posu, mask=masku)[:, :n_target]
|
| 74 |
+
+ vu = model(img=imgu, context=untxt, t=t, pos=posu, mask=masku, **extra)[:, :n_target]
|
| 75 |
+
v = vu + guidance * (v - vu)
|
| 76 |
+
h_, w_ = h // patch, w // patch
|
| 77 |
+
v_lat = unpatchify(v, patch, h_, w_, c)
|
| 78 |
+
diff --git a/scripts/edit_repl.py b/scripts/edit_repl.py
|
| 79 |
+
index 52580d2..6cef39e 100644
|
| 80 |
+
--- a/scripts/edit_repl.py
|
| 81 |
+
+++ b/scripts/edit_repl.py
|
| 82 |
+
@@ -75,7 +75,12 @@ def detect_rank(lora_path):
|
| 83 |
+
help="turbo=OSS_TURBO (8 steps, cfg 0, mu 1.15); raw=OSS_RAW (28 steps + cfg)")
|
| 84 |
+
@click.option("--mu", default=None, type=float, help="timestep-shift; default 1.15(turbo)/auto(raw)")
|
| 85 |
+
@click.option("--manifest", default=None, type=click.Path(exists=True), help="read lines from a file instead of stdin")
|
| 86 |
+
-def main(lora_path, out_dir, side, keep_ar, steps, cfg, rank, alpha, precision, seed, strength, checkpoint, mu, manifest):
|
| 87 |
+
+@click.option("--template", default=None, help="instruction template with {instruction}; must match training")
|
| 88 |
+
+@click.option("--width", default=None, type=int, help="force output width (with --height); overrides --side/--keep-ar")
|
| 89 |
+
+@click.option("--height", default=None, type=int, help="force output height (with --width)")
|
| 90 |
+
+@click.option("--grounded", is_flag=True, help="encode the instruction TOGETHER with the reference image (must match training)")
|
| 91 |
+
+@click.option("--ref-t-zero", is_flag=True, help="modulate reference rows at t=0 (must match training)")
|
| 92 |
+
+def main(lora_path, out_dir, side, keep_ar, steps, cfg, rank, alpha, precision, seed, strength, checkpoint, mu, manifest, template, width, height, grounded, ref_t_zero):
|
| 93 |
+
os.makedirs(out_dir, exist_ok=True)
|
| 94 |
+
device = "cuda"
|
| 95 |
+
patch = single_mmdit_large_wide.patch
|
| 96 |
+
@@ -91,8 +96,13 @@ def main(lora_path, out_dir, side, keep_ar, steps, cfg, rank, alpha, precision,
|
| 97 |
+
print(f"[edit] LoRA rank={rank} alpha={alpha}", flush=True)
|
| 98 |
+
|
| 99 |
+
print("[edit] loading encoder + backbone (~2 min)…", flush=True)
|
| 100 |
+
- encoder = Qwen3VLConditioner(qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 101 |
+
- select_layers=qwen3_vl_4b.select_layers)
|
| 102 |
+
+ if grounded:
|
| 103 |
+
+ from kreaedit.grounding import GroundedQwen3VLConditioner
|
| 104 |
+
+ encoder = GroundedQwen3VLConditioner(qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 105 |
+
+ select_layers=qwen3_vl_4b.select_layers)
|
| 106 |
+
+ else:
|
| 107 |
+
+ encoder = Qwen3VLConditioner(qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 108 |
+
+ select_layers=qwen3_vl_4b.select_layers)
|
| 109 |
+
encoder = encoder.to(device, torch.bfloat16).eval().requires_grad_(False)
|
| 110 |
+
|
| 111 |
+
with torch.device("meta"):
|
| 112 |
+
@@ -116,7 +126,11 @@ def main(lora_path, out_dir, side, keep_ar, steps, cfg, rank, alpha, precision,
|
| 113 |
+
@torch.no_grad()
|
| 114 |
+
def run_one(img_path, instruction, guidance, lora_strength):
|
| 115 |
+
lora.set_lora_strength(model, lora_strength)
|
| 116 |
+
- if keep_ar:
|
| 117 |
+
+ if width and height:
|
| 118 |
+
+ im = Image.open(img_path).convert("RGB").resize((width, height), Image.BICUBIC)
|
| 119 |
+
+ ref = torch.from_numpy(np.asarray(im).copy()).permute(2, 0, 1).float() / 255.0 * 2 - 1
|
| 120 |
+
+ tw, th = width, height
|
| 121 |
+
+ elif keep_ar:
|
| 122 |
+
ref, (tw, th) = load_image_ar(img_path, side)
|
| 123 |
+
else:
|
| 124 |
+
ref, (tw, th) = load_image(img_path, side), (side, side)
|
| 125 |
+
@@ -124,15 +138,36 @@ def main(lora_path, out_dir, side, keep_ar, steps, cfg, rank, alpha, precision,
|
| 126 |
+
ref_lat = vae.encode(ref).to(torch.bfloat16)
|
| 127 |
+
n_tokens = (th // (8 * patch)) * (tw // (8 * patch))
|
| 128 |
+
ts = sampling.timesteps(n_tokens, steps, x1, x2, mu=mu)
|
| 129 |
+
- txt, txtmask = encoder([wrap_instruction(instruction)])
|
| 130 |
+
+ wrapped = (wrap_instruction(instruction, template) if template
|
| 131 |
+
+ else wrap_instruction(instruction))
|
| 132 |
+
+ if grounded:
|
| 133 |
+
+ ref_pil = Image.open(img_path).convert("RGB")
|
| 134 |
+
+ txt, txtmask = encoder([wrapped], [ref_pil])
|
| 135 |
+
+ else:
|
| 136 |
+
+ txt, txtmask = encoder([wrapped])
|
| 137 |
+
+ # Drop padded text tokens (batch 1): text RoPE positions are all zero and
|
| 138 |
+
+ # masked tokens contribute nothing, so this is exact — and with an
|
| 139 |
+
+ # all-ones mask SDPA can take the flash path instead of materializing
|
| 140 |
+
+ # the full attention matrix (13.5 GiB at 1024px).
|
| 141 |
+
+ keep = txtmask[0].bool()
|
| 142 |
+
+ txt, txtmask = txt[:, keep], txtmask[:, keep]
|
| 143 |
+
untxt = unmask = None
|
| 144 |
+
if guidance > 0:
|
| 145 |
+
- untxt, unmask = encoder([""])
|
| 146 |
+
+ untxt, unmask = encoder([""], [ref_pil]) if grounded else encoder([""])
|
| 147 |
+
+ ukeep = unmask[0].bool()
|
| 148 |
+
+ untxt, unmask = untxt[:, ukeep], unmask[:, ukeep]
|
| 149 |
+
untxt = untxt.to(torch.bfloat16)
|
| 150 |
+
- out_lat = incontext.edit_incontext(model, ref_lat, txt.to(torch.bfloat16), txtmask,
|
| 151 |
+
- ts, patch, guidance=guidance, untxt=untxt,
|
| 152 |
+
- unmask=unmask, seed=seed)
|
| 153 |
+
- edited = to_pil(vae.decode(out_lat), tw, th)
|
| 154 |
+
+ # Offload the resident encoder during sampling: at 1024px the joint
|
| 155 |
+
+ # attention needs >13 GiB and does not fit alongside the 8 GiB encoder.
|
| 156 |
+
+ encoder.to("cpu")
|
| 157 |
+
+ torch.cuda.empty_cache()
|
| 158 |
+
+ try:
|
| 159 |
+
+ out_lat = incontext.edit_incontext(model, ref_lat, txt.to(torch.bfloat16), txtmask,
|
| 160 |
+
+ ts, patch, guidance=guidance, untxt=untxt,
|
| 161 |
+
+ unmask=unmask, seed=seed, ref_t_zero=ref_t_zero)
|
| 162 |
+
+ edited = to_pil(vae.decode(out_lat), tw, th)
|
| 163 |
+
+ finally:
|
| 164 |
+
+ encoder.to(device)
|
| 165 |
+
src_pil = to_pil(ref.to(device), tw, th)
|
| 166 |
+
stem = os.path.splitext(os.path.basename(img_path))[0]
|
| 167 |
+
base = os.path.join(out_dir, f"{stem}__{slug(instruction)}_cfg{guidance}_s{lora_strength}")
|
| 168 |
+
diff --git a/scripts/pairs_to_cache.py b/scripts/pairs_to_cache.py
|
| 169 |
+
index ec4bca0..3892f3e 100644
|
| 170 |
+
--- a/scripts/pairs_to_cache.py
|
| 171 |
+
+++ b/scripts/pairs_to_cache.py
|
| 172 |
+
@@ -77,8 +77,10 @@ def _iter_manifest(manifest):
|
| 173 |
+
@click.option("--filter", "do_filter", is_flag=True, help="drop pairs that changed too little / too much")
|
| 174 |
+
@click.option("--min-change", default=0.004, show_default=True, help="min mean pixel diff (0..1)")
|
| 175 |
+
@click.option("--max-change", default=0.6, show_default=True, help="max mean pixel diff (0..1)")
|
| 176 |
+
+@click.option("--with-vl", is_flag=True, help="also store the source image (aspect-preserved, <=147456 px, uint8) for grounded training")
|
| 177 |
+
+@click.option("--keep-ar", is_flag=True, help="preserve aspect ratio (area ~= size^2) instead of square squash")
|
| 178 |
+
def main(out_dir, source_dir, target_dir, instruction, instruction_from_txt, instruction_dir,
|
| 179 |
+
- manifest, size, do_filter, min_change, max_change):
|
| 180 |
+
+ manifest, size, do_filter, min_change, max_change, with_vl, keep_ar):
|
| 181 |
+
out_dir.mkdir(parents=True, exist_ok=True)
|
| 182 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 183 |
+
vae = VaeWrapper(QwenAutoencoder(), device=device, dtype=torch.bfloat16)
|
| 184 |
+
@@ -103,8 +105,16 @@ def main(out_dir, source_dir, target_dir, instruction, instruction_from_txt, ins
|
| 185 |
+
dropped += 1
|
| 186 |
+
continue
|
| 187 |
+
try:
|
| 188 |
+
- s = load_image(src, size).unsqueeze(0)
|
| 189 |
+
- t = load_image(tgt, size).unsqueeze(0)
|
| 190 |
+
+ if keep_ar:
|
| 191 |
+
+ from kreaedit.data import load_image_ar
|
| 192 |
+
+ s = load_image_ar(src, size)[0].unsqueeze(0)
|
| 193 |
+
+ t = load_image_ar(tgt, size)[0].unsqueeze(0)
|
| 194 |
+
+ if s.shape != t.shape: # pairs must share dims for the filter/concat
|
| 195 |
+
+ dropped += 1
|
| 196 |
+
+ continue
|
| 197 |
+
+ else:
|
| 198 |
+
+ s = load_image(src, size).unsqueeze(0)
|
| 199 |
+
+ t = load_image(tgt, size).unsqueeze(0)
|
| 200 |
+
except Exception: # unreadable image
|
| 201 |
+
dropped += 1
|
| 202 |
+
continue
|
| 203 |
+
@@ -115,7 +125,14 @@ def main(out_dir, source_dir, target_dir, instruction, instruction_from_txt, ins
|
| 204 |
+
continue
|
| 205 |
+
s_lat = vae.encode(s)[0].to(torch.float16).cpu()
|
| 206 |
+
t_lat = vae.encode(t)[0].to(torch.float16).cpu()
|
| 207 |
+
- torch.save({"source_lat": s_lat, "target_lat": t_lat, "instruction": instr}, out_path)
|
| 208 |
+
+ item = {"source_lat": s_lat, "target_lat": t_lat, "instruction": instr}
|
| 209 |
+
+ if with_vl:
|
| 210 |
+
+ import numpy as np
|
| 211 |
+
+ from PIL import Image as PILImage
|
| 212 |
+
+ from kreaedit.grounding import fit_vl_image
|
| 213 |
+
+ im = fit_vl_image(PILImage.open(src).convert("RGB"))
|
| 214 |
+
+ item["ref_vl"] = torch.from_numpy(np.asarray(im).copy())
|
| 215 |
+
+ torch.save(item, out_path)
|
| 216 |
+
kept += 1
|
| 217 |
+
|
| 218 |
+
total = len(list(out_dir.glob("*.pt")))
|
| 219 |
+
diff --git a/scripts/train.py b/scripts/train.py
|
| 220 |
+
index a32a52d..6adab8b 100644
|
| 221 |
+
--- a/scripts/train.py
|
| 222 |
+
+++ b/scripts/train.py
|
| 223 |
+
@@ -31,7 +31,7 @@ from safetensors.torch import load_file
|
| 224 |
+
compat.relax_attention()
|
| 225 |
+
|
| 226 |
+
from kreaedit import incontext, lora
|
| 227 |
+
-from kreaedit.data import EditTripletDataset, collate, wrap_instruction
|
| 228 |
+
+from kreaedit.data import DEFAULT_TEMPLATE, EditTripletDataset, collate, wrap_instruction
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
# Set by SIGINT/SIGTERM so we can save a clean resume point and stop at a step boundary.
|
| 232 |
+
@@ -190,9 +190,18 @@ def main(config_path, resume, resume_state, fresh):
|
| 233 |
+
print(f"[train] LoRA on {n} linears; trainable params {trainable/1e6:.1f}M")
|
| 234 |
+
|
| 235 |
+
# --- resident text encoder (frozen) ---
|
| 236 |
+
- print("[train] loading Qwen3-VL text encoder")
|
| 237 |
+
- encoder = Qwen3VLConditioner(qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 238 |
+
- select_layers=qwen3_vl_4b.select_layers)
|
| 239 |
+
+ grounded = bool(cfg.get("grounded", False))
|
| 240 |
+
+ if grounded:
|
| 241 |
+
+ from kreaedit.grounding import GroundedQwen3VLConditioner
|
| 242 |
+
+ print("[train] loading Qwen3-VL GROUNDED conditioner (vision tower active)")
|
| 243 |
+
+ encoder = GroundedQwen3VLConditioner(
|
| 244 |
+
+ qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 245 |
+
+ select_layers=qwen3_vl_4b.select_layers,
|
| 246 |
+
+ max_pixels=int(cfg.get("vl_max_pixels", 147456)))
|
| 247 |
+
+ else:
|
| 248 |
+
+ print("[train] loading Qwen3-VL text encoder")
|
| 249 |
+
+ encoder = Qwen3VLConditioner(qwen3_vl_4b.model_id, qwen3_vl_4b.max_length,
|
| 250 |
+
+ select_layers=qwen3_vl_4b.select_layers)
|
| 251 |
+
encoder = encoder.to(device=device, dtype=torch.bfloat16).eval().requires_grad_(False)
|
| 252 |
+
|
| 253 |
+
# --- data ---
|
| 254 |
+
@@ -215,7 +224,11 @@ def main(config_path, resume, resume_state, fresh):
|
| 255 |
+
step = 0
|
| 256 |
+
if state_path:
|
| 257 |
+
step = load_state(state_path, model, opt)
|
| 258 |
+
- print(f"[train] RESUMED full state from {state_path} at step {step}")
|
| 259 |
+
+ # load_state restores the saved optimizer param_groups (including lr),
|
| 260 |
+
+ # silently ignoring the config value — force the config lr back.
|
| 261 |
+
+ for g in opt.param_groups:
|
| 262 |
+
+ g["lr"] = cfg["lr"]
|
| 263 |
+
+ print(f"[train] RESUMED full state from {state_path} at step {step} (lr={cfg['lr']})")
|
| 264 |
+
else:
|
| 265 |
+
print("[train] starting fresh at step 0")
|
| 266 |
+
|
| 267 |
+
@@ -229,19 +242,29 @@ def main(config_path, resume, resume_state, fresh):
|
| 268 |
+
# Instruction dropout -> teaches an unconditional (empty-instruction)
|
| 269 |
+
# prediction so inference-time CFG is in-distribution and clean.
|
| 270 |
+
drop = cfg.get("prompt_dropout", 0.0)
|
| 271 |
+
+ tmpl = cfg.get("instruction_template", DEFAULT_TEMPLATE)
|
| 272 |
+
with torch.no_grad():
|
| 273 |
+
prompts = [
|
| 274 |
+
"" if (drop > 0 and torch.rand(1).item() < drop)
|
| 275 |
+
- else wrap_instruction(i)
|
| 276 |
+
+ else wrap_instruction(i, tmpl)
|
| 277 |
+
for i in batch["instruction"]
|
| 278 |
+
]
|
| 279 |
+
- txt, txtmask = encoder(prompts)
|
| 280 |
+
+ if grounded:
|
| 281 |
+
+ # grounded contract: dropout empties the caption but the
|
| 282 |
+
+ # reference image stays in BOTH branches (fork convention)
|
| 283 |
+
+ from PIL import Image as _Image
|
| 284 |
+
+ imgs = [_Image.fromarray(v.numpy()) for v in batch["ref_vl"]]
|
| 285 |
+
+ txt, txtmask = encoder(prompts, imgs)
|
| 286 |
+
+ else:
|
| 287 |
+
+ txt, txtmask = encoder(prompts)
|
| 288 |
+
txt = txt.to(torch.bfloat16)
|
| 289 |
+
|
| 290 |
+
+ ref_t_zero = bool(cfg.get("ref_timestep_zero", False))
|
| 291 |
+
if method == "diptych":
|
| 292 |
+
loss = incontext.flow_loss_diptych(model, src, tgt, txt, txtmask, patch, t_mean, t_std)
|
| 293 |
+
else:
|
| 294 |
+
- loss = incontext.flow_loss_incontext(model, tgt, src, txt, txtmask, patch, t_mean, t_std)
|
| 295 |
+
+ loss = incontext.flow_loss_incontext(model, tgt, src, txt, txtmask, patch,
|
| 296 |
+
+ t_mean, t_std, ref_t_zero=ref_t_zero)
|
| 297 |
+
(loss / accum).backward()
|
| 298 |
+
|
| 299 |
+
if (step + 1) % accum == 0:
|
| 300 |
+
diff --git a/vendor/krea2/mmdit.py b/vendor/krea2/mmdit.py
|
| 301 |
+
index 6ba9609..59375ec 100644
|
| 302 |
+
--- a/vendor/krea2/mmdit.py
|
| 303 |
+
+++ b/vendor/krea2/mmdit.py
|
| 304 |
+
@@ -309,6 +309,26 @@ class SingleStreamBlock(nn.Module):
|
| 305 |
+
def forward(
|
| 306 |
+
self, x: Tensor, vec: Tensor, freqs: Tensor, mask: Tensor | None = None
|
| 307 |
+
) -> Tensor:
|
| 308 |
+
+ if isinstance(vec, tuple):
|
| 309 |
+
+ # Per-token timestep with two segments: rows [:split] modulated by
|
| 310 |
+
+ # vec_main (sampled t), rows [split:] (the clean reference) by
|
| 311 |
+
+ # vec_ref (t=0). Exactly equivalent to a per-token tvec that takes
|
| 312 |
+
+ # two distinct values; attention itself stays joint.
|
| 313 |
+
+ vec_main, vec_ref, split = vec
|
| 314 |
+
+ m = self.mod(vec_main)
|
| 315 |
+
+ r = self.mod(vec_ref)
|
| 316 |
+
+ h = self.prenorm(x)
|
| 317 |
+
+ pre = torch.cat([(1 + m[0]) * h[:, :split] + m[1],
|
| 318 |
+
+ (1 + r[0]) * h[:, split:] + r[1]], dim=1)
|
| 319 |
+
+ a = self.attn(pre, freqs, mask)
|
| 320 |
+
+ x = x + torch.cat([m[2] * a[:, :split], r[2] * a[:, split:]], dim=1)
|
| 321 |
+
+ h2 = self.postnorm(x)
|
| 322 |
+
+ post = torch.cat([(1 + m[3]) * h2[:, :split] + m[4],
|
| 323 |
+
+ (1 + r[3]) * h2[:, split:] + r[4]], dim=1)
|
| 324 |
+
+ mo = self.mlp(post)
|
| 325 |
+
+ x = x + torch.cat([m[5] * mo[:, :split], r[5] * mo[:, split:]], dim=1)
|
| 326 |
+
+ return x
|
| 327 |
+
+
|
| 328 |
+
prescale, preshift, pregate, postscale, postshift, postgate = self.mod(vec)
|
| 329 |
+
x = x + pregate * self.attn(
|
| 330 |
+
(1 + prescale) * self.prenorm(x) + preshift, freqs, mask
|
| 331 |
+
@@ -383,10 +403,18 @@ class SingleStreamDiT(nn.Module):
|
| 332 |
+
t: Tensor,
|
| 333 |
+
pos: Tensor,
|
| 334 |
+
mask: Tensor | None = None,
|
| 335 |
+
+ ref_len: int = 0,
|
| 336 |
+
+ ref_timestep: float | None = None,
|
| 337 |
+
) -> Tensor:
|
| 338 |
+
img = self.first(img)
|
| 339 |
+
t = self.tmlp(temb(t, self.config.tdim, device=img.device, dtype=img.dtype))
|
| 340 |
+
tvec = self.tproj(t)
|
| 341 |
+
+ tvec_ref = None
|
| 342 |
+
+ if ref_len > 0 and ref_timestep is not None:
|
| 343 |
+
+ t_ref = torch.full((img.shape[0],), float(ref_timestep),
|
| 344 |
+
+ device=img.device, dtype=img.dtype)
|
| 345 |
+
+ t_ref = self.tmlp(temb(t_ref, self.config.tdim, device=img.device, dtype=img.dtype))
|
| 346 |
+
+ tvec_ref = self.tproj(t_ref)
|
| 347 |
+
|
| 348 |
+
txtmask = _mask(mask[:, : context.shape[1]])
|
| 349 |
+
|
| 350 |
+
@@ -395,21 +423,34 @@ class SingleStreamDiT(nn.Module):
|
| 351 |
+
|
| 352 |
+
txtlen, imglen = context.shape[1], img.shape[1]
|
| 353 |
+
combined = torch.cat((context, img), dim=1)
|
| 354 |
+
-
|
| 355 |
+
- # Pad combined sequence to a multiple of 256 to stabilize compiled kernel shapes.
|
| 356 |
+
- fulllen = combined.shape[1]
|
| 357 |
+
- _padlen = (-fulllen) % 256
|
| 358 |
+
- if _padlen > 0:
|
| 359 |
+
- combined = F.pad(combined, (0, 0, 0, _padlen))
|
| 360 |
+
- mask = F.pad(mask, (0, _padlen), value=False)
|
| 361 |
+
- pos = F.pad(pos, (0, 0, 0, _padlen))
|
| 362 |
+
-
|
| 363 |
+
- mask = _mask(mask)
|
| 364 |
+
+ ref_split = combined.shape[1] - ref_len # before any pad rows are appended
|
| 365 |
+
+
|
| 366 |
+
+ if bool(mask.all()):
|
| 367 |
+
+ # No padded tokens: skip the compile-shape padding (compile is
|
| 368 |
+
+ # disabled here) and hand SDPA a None mask so it can use the
|
| 369 |
+
+ # flash path instead of materializing the (H, L, L) matrix.
|
| 370 |
+
+ mask = None
|
| 371 |
+
+ else:
|
| 372 |
+
+ # Pad combined sequence to a multiple of 256 to stabilize compiled kernel shapes.
|
| 373 |
+
+ fulllen = combined.shape[1]
|
| 374 |
+
+ _padlen = (-fulllen) % 256
|
| 375 |
+
+ if _padlen > 0:
|
| 376 |
+
+ combined = F.pad(combined, (0, 0, 0, _padlen))
|
| 377 |
+
+ mask = F.pad(mask, (0, _padlen), value=False)
|
| 378 |
+
+ pos = F.pad(pos, (0, 0, 0, _padlen))
|
| 379 |
+
+
|
| 380 |
+
+ mask = _mask(mask)
|
| 381 |
+
|
| 382 |
+
freqs = self.posemb(pos)
|
| 383 |
+
|
| 384 |
+
+ blockvec = tvec
|
| 385 |
+
+ if tvec_ref is not None:
|
| 386 |
+
+ # reference rows sit at the tail of the sequence (before any pad,
|
| 387 |
+
+ # which only exists in the masked branch where pad rows are inert)
|
| 388 |
+
+ blockvec = (tvec, tvec_ref, ref_split)
|
| 389 |
+
+
|
| 390 |
+
for block in self.blocks:
|
| 391 |
+
- combined = block(combined, tvec, freqs, mask)
|
| 392 |
+
+ combined = block(combined, blockvec, freqs, mask)
|
| 393 |
+
|
| 394 |
+
final = self.last(combined, t)
|
| 395 |
+
output = final[:, txtlen : txtlen + imglen, :]
|
backup_sessao_2026-08-06/tools_konrad/comfy_sample.py
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Generate the 6 fixed samples through headless ComfyUI with the official
|
| 2 |
+
comfyui-krea2edit nodes (v1.2.4+ geometry): turbo fp8, grounded 768, fit,
|
| 3 |
+
ref_boost 4, 10 steps cfg 1, seed fixed.
|
| 4 |
+
|
| 5 |
+
Usage: comfy_sample.py --lora konrad/atual.safetensors --out <dir> [--tag step2000]
|
| 6 |
+
"""
|
| 7 |
+
import argparse
|
| 8 |
+
import json
|
| 9 |
+
import shutil
|
| 10 |
+
import time
|
| 11 |
+
import urllib.request
|
| 12 |
+
from pathlib import Path
|
| 13 |
+
|
| 14 |
+
API = 'http://127.0.0.1:8288'
|
| 15 |
+
SAMPLES = '/workspace/configs/saga512_samples.json'
|
| 16 |
+
COMFY_IN = Path('/workspace/comfy/ComfyUI/input')
|
| 17 |
+
COMFY_OUT = Path('/workspace/comfy/ComfyUI/output')
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def post(path, payload):
|
| 21 |
+
req = urllib.request.Request(API + path, json.dumps(payload).encode(),
|
| 22 |
+
{'Content-Type': 'application/json'})
|
| 23 |
+
return json.load(urllib.request.urlopen(req))
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def graph(ref_name, caption, w, h, lora, seed, prefix):
|
| 27 |
+
return {
|
| 28 |
+
"1": {"class_type": "UNETLoader", "inputs": {"unet_name": "krea2_raw_fp8_scaled.safetensors", "weight_dtype": "default"}},
|
| 29 |
+
"1t": {"class_type": "LoraLoaderModelOnly", "inputs": {"model": ["1", 0], "lora_name": "krea2_turbo_lora_rank_64_bf16.safetensors", "strength_model": 1.0}},
|
| 30 |
+
"2": {"class_type": "LoraLoaderModelOnly", "inputs": {"model": ["1t", 0], "lora_name": lora, "strength_model": 1.0}},
|
| 31 |
+
"3": {"class_type": "CLIPLoader", "inputs": {"clip_name": "qwen3vl_4b_bf16.safetensors", "type": "krea2", "device": "default"}},
|
| 32 |
+
"4": {"class_type": "VAELoader", "inputs": {"vae_name": "qwen_image_vae.safetensors"}},
|
| 33 |
+
"5": {"class_type": "LoadImage", "inputs": {"image": ref_name}},
|
| 34 |
+
"6": {"class_type": "VAEEncode", "inputs": {"pixels": ["5", 0], "vae": ["4", 0]}},
|
| 35 |
+
"7": {"class_type": "EmptySD3LatentImage", "inputs": {"width": w, "height": h, "batch_size": 1}},
|
| 36 |
+
"8": {"class_type": "Krea2EditGroundedEncode", "inputs": {"clip": ["3", 0], "prompt": caption, "image": ["5", 0], "grounding_px": 768, "system_prompt": ""}},
|
| 37 |
+
"9": {"class_type": "Krea2EditGroundedEncode", "inputs": {"clip": ["3", 0], "prompt": "", "image": ["5", 0], "grounding_px": 768, "system_prompt": ""}},
|
| 38 |
+
"10": {"class_type": "Krea2EditModelPatch", "inputs": {"model": ["2", 0], "source_latent": ["6", 0], "ref_boost": 4.0, "ref_boost_a": 1.0, "fit_mode": "fit", "vae": ["4", 0], "source_image": ["5", 0], "target_latent": ["7", 0]}},
|
| 39 |
+
"11": {"class_type": "KSampler", "inputs": {"model": ["10", 0], "positive": ["8", 0], "negative": ["9", 0], "latent_image": ["7", 0], "seed": seed, "steps": 10, "cfg": 1.0, "sampler_name": "euler", "scheduler": "simple", "denoise": 1.0}},
|
| 40 |
+
"12": {"class_type": "VAEDecode", "inputs": {"samples": ["11", 0], "vae": ["4", 0]}},
|
| 41 |
+
"13": {"class_type": "SaveImage", "inputs": {"images": ["12", 0], "filename_prefix": prefix}},
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def main():
|
| 46 |
+
ap = argparse.ArgumentParser()
|
| 47 |
+
ap.add_argument('--lora', required=True)
|
| 48 |
+
ap.add_argument('--out', required=True, type=Path)
|
| 49 |
+
ap.add_argument('--tag', default='sample')
|
| 50 |
+
ap.add_argument('--seed', type=int, default=76)
|
| 51 |
+
ap.add_argument('--ref-boost', type=float, default=4.0)
|
| 52 |
+
ap.add_argument('--samples', default=SAMPLES)
|
| 53 |
+
ap.add_argument('--area', type=int, default=0,
|
| 54 |
+
help='rescale each sample W/H to this area (AR kept, /16); 0 = manifest dims')
|
| 55 |
+
args = ap.parse_args()
|
| 56 |
+
args.out.mkdir(parents=True, exist_ok=True)
|
| 57 |
+
samples = json.load(open(args.samples))['samples']
|
| 58 |
+
ok = 0
|
| 59 |
+
for s in samples:
|
| 60 |
+
ref = Path(s['reference'])
|
| 61 |
+
dest = COMFY_IN / ref.name
|
| 62 |
+
if not dest.exists():
|
| 63 |
+
shutil.copy2(ref, dest)
|
| 64 |
+
prefix = f"{args.tag}_{s.get('name', ref.stem)}"
|
| 65 |
+
w, h = s['width'], s['height']
|
| 66 |
+
if args.area:
|
| 67 |
+
scale = (args.area / (w * h)) ** 0.5
|
| 68 |
+
w = max(16, round(w * scale / 16) * 16)
|
| 69 |
+
h = max(16, round(h * scale / 16) * 16)
|
| 70 |
+
g = graph(ref.name, s['prompt'], w, h, args.lora, args.seed, prefix)
|
| 71 |
+
g["10"]["inputs"]["ref_boost"] = args.ref_boost
|
| 72 |
+
pid = post('/prompt', {'prompt': g})['prompt_id']
|
| 73 |
+
while True:
|
| 74 |
+
h = json.load(urllib.request.urlopen(f'{API}/history/{pid}'))
|
| 75 |
+
if pid in h and h[pid].get('status', {}).get('completed'):
|
| 76 |
+
break
|
| 77 |
+
if pid in h and h[pid].get('status', {}).get('status_str') == 'error':
|
| 78 |
+
print(f'[comfy_sample] ERRO em {prefix}:', json.dumps(h[pid]['status'])[:400])
|
| 79 |
+
break
|
| 80 |
+
time.sleep(2)
|
| 81 |
+
for f in sorted(COMFY_OUT.glob(f'{prefix}_*.png')):
|
| 82 |
+
shutil.move(str(f), args.out / f.name)
|
| 83 |
+
ok += 1
|
| 84 |
+
print(f'[comfy_sample] {prefix} done')
|
| 85 |
+
print(f'[comfy_sample] {ok} imagens -> {args.out}')
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
if __name__ == '__main__':
|
| 89 |
+
main()
|
backup_sessao_2026-08-06/workflow_13k.json
ADDED
|
@@ -0,0 +1,913 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "43b76607-370d-49b8-ac78-edf8c807a51c",
|
| 3 |
+
"revision": 0,
|
| 4 |
+
"last_node_id": 40,
|
| 5 |
+
"last_link_id": 69,
|
| 6 |
+
"nodes": [
|
| 7 |
+
{
|
| 8 |
+
"id": 1,
|
| 9 |
+
"type": "UNETLoader",
|
| 10 |
+
"pos": [
|
| 11 |
+
100,
|
| 12 |
+
130
|
| 13 |
+
],
|
| 14 |
+
"size": [
|
| 15 |
+
287.1021484375,
|
| 16 |
+
82
|
| 17 |
+
],
|
| 18 |
+
"flags": {},
|
| 19 |
+
"order": 0,
|
| 20 |
+
"mode": 0,
|
| 21 |
+
"inputs": [],
|
| 22 |
+
"outputs": [
|
| 23 |
+
{
|
| 24 |
+
"name": "MODEL",
|
| 25 |
+
"type": "MODEL",
|
| 26 |
+
"links": [
|
| 27 |
+
25
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"properties": {
|
| 32 |
+
"cnr_id": "comfy-core",
|
| 33 |
+
"ver": "0.29.0",
|
| 34 |
+
"Node name for S&R": "UNETLoader"
|
| 35 |
+
},
|
| 36 |
+
"widgets_values": [
|
| 37 |
+
"krea2_raw_fp8_scaled.safetensors",
|
| 38 |
+
"default"
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"id": 2,
|
| 43 |
+
"type": "CLIPLoader",
|
| 44 |
+
"pos": [
|
| 45 |
+
100,
|
| 46 |
+
342
|
| 47 |
+
],
|
| 48 |
+
"size": [
|
| 49 |
+
270,
|
| 50 |
+
106
|
| 51 |
+
],
|
| 52 |
+
"flags": {},
|
| 53 |
+
"order": 1,
|
| 54 |
+
"mode": 0,
|
| 55 |
+
"inputs": [],
|
| 56 |
+
"outputs": [
|
| 57 |
+
{
|
| 58 |
+
"name": "CLIP",
|
| 59 |
+
"type": "CLIP",
|
| 60 |
+
"links": [
|
| 61 |
+
38
|
| 62 |
+
]
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"properties": {
|
| 66 |
+
"cnr_id": "comfy-core",
|
| 67 |
+
"ver": "0.29.0",
|
| 68 |
+
"Node name for S&R": "CLIPLoader"
|
| 69 |
+
},
|
| 70 |
+
"widgets_values": [
|
| 71 |
+
"qwen3vl_4b_bf16.safetensors",
|
| 72 |
+
"krea2",
|
| 73 |
+
"default"
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"id": 3,
|
| 78 |
+
"type": "VAELoader",
|
| 79 |
+
"pos": [
|
| 80 |
+
100,
|
| 81 |
+
578
|
| 82 |
+
],
|
| 83 |
+
"size": [
|
| 84 |
+
270,
|
| 85 |
+
58
|
| 86 |
+
],
|
| 87 |
+
"flags": {},
|
| 88 |
+
"order": 2,
|
| 89 |
+
"mode": 0,
|
| 90 |
+
"inputs": [],
|
| 91 |
+
"outputs": [
|
| 92 |
+
{
|
| 93 |
+
"name": "VAE",
|
| 94 |
+
"type": "VAE",
|
| 95 |
+
"links": [
|
| 96 |
+
23,
|
| 97 |
+
39
|
| 98 |
+
]
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"properties": {
|
| 102 |
+
"cnr_id": "comfy-core",
|
| 103 |
+
"ver": "0.29.0",
|
| 104 |
+
"Node name for S&R": "VAELoader"
|
| 105 |
+
},
|
| 106 |
+
"widgets_values": [
|
| 107 |
+
"qwen_image_vae.safetensors"
|
| 108 |
+
]
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"id": 12,
|
| 112 |
+
"type": "VAEDecode",
|
| 113 |
+
"pos": [
|
| 114 |
+
2268.833203125,
|
| 115 |
+
130
|
| 116 |
+
],
|
| 117 |
+
"size": [
|
| 118 |
+
147.073828125,
|
| 119 |
+
46
|
| 120 |
+
],
|
| 121 |
+
"flags": {},
|
| 122 |
+
"order": 13,
|
| 123 |
+
"mode": 0,
|
| 124 |
+
"inputs": [
|
| 125 |
+
{
|
| 126 |
+
"name": "samples",
|
| 127 |
+
"type": "LATENT",
|
| 128 |
+
"link": 51
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "vae",
|
| 132 |
+
"type": "VAE",
|
| 133 |
+
"link": 23
|
| 134 |
+
}
|
| 135 |
+
],
|
| 136 |
+
"outputs": [
|
| 137 |
+
{
|
| 138 |
+
"name": "IMAGE",
|
| 139 |
+
"type": "IMAGE",
|
| 140 |
+
"links": [
|
| 141 |
+
24
|
| 142 |
+
]
|
| 143 |
+
}
|
| 144 |
+
],
|
| 145 |
+
"properties": {
|
| 146 |
+
"cnr_id": "comfy-core",
|
| 147 |
+
"ver": "0.29.0",
|
| 148 |
+
"Node name for S&R": "VAEDecode"
|
| 149 |
+
},
|
| 150 |
+
"widgets_values": []
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"id": 20,
|
| 154 |
+
"type": "K2TrainingBase",
|
| 155 |
+
"pos": [
|
| 156 |
+
428.8625507857853,
|
| 157 |
+
126.49836759784185
|
| 158 |
+
],
|
| 159 |
+
"size": [
|
| 160 |
+
363.1177734375,
|
| 161 |
+
130
|
| 162 |
+
],
|
| 163 |
+
"flags": {
|
| 164 |
+
"collapsed": false
|
| 165 |
+
},
|
| 166 |
+
"order": 7,
|
| 167 |
+
"mode": 0,
|
| 168 |
+
"inputs": [
|
| 169 |
+
{
|
| 170 |
+
"name": "model",
|
| 171 |
+
"type": "MODEL",
|
| 172 |
+
"link": 25
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"outputs": [
|
| 176 |
+
{
|
| 177 |
+
"name": "MODEL",
|
| 178 |
+
"type": "MODEL",
|
| 179 |
+
"links": [
|
| 180 |
+
31
|
| 181 |
+
]
|
| 182 |
+
}
|
| 183 |
+
],
|
| 184 |
+
"properties": {
|
| 185 |
+
"aux_id": "adbrasi/ctxrush-edit",
|
| 186 |
+
"ver": "a84d6ed8cbc7d8d8af0042b4548f5cf450adca65",
|
| 187 |
+
"Node name for S&R": "K2TrainingBase"
|
| 188 |
+
},
|
| 189 |
+
"widgets_values": [
|
| 190 |
+
true,
|
| 191 |
+
"krea2_turbo_lora_rank_64_bf16.safetensors",
|
| 192 |
+
1,
|
| 193 |
+
true
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"id": 31,
|
| 198 |
+
"type": "KSamplerSelect",
|
| 199 |
+
"pos": [
|
| 200 |
+
2024.4547149072016,
|
| 201 |
+
-357.1668585163058
|
| 202 |
+
],
|
| 203 |
+
"size": [
|
| 204 |
+
270,
|
| 205 |
+
58
|
| 206 |
+
],
|
| 207 |
+
"flags": {},
|
| 208 |
+
"order": 3,
|
| 209 |
+
"mode": 0,
|
| 210 |
+
"inputs": [],
|
| 211 |
+
"outputs": [
|
| 212 |
+
{
|
| 213 |
+
"name": "SAMPLER",
|
| 214 |
+
"type": "SAMPLER",
|
| 215 |
+
"links": [
|
| 216 |
+
46
|
| 217 |
+
]
|
| 218 |
+
}
|
| 219 |
+
],
|
| 220 |
+
"properties": {
|
| 221 |
+
"cnr_id": "comfy-core",
|
| 222 |
+
"ver": "0.29.0",
|
| 223 |
+
"Node name for S&R": "KSamplerSelect"
|
| 224 |
+
},
|
| 225 |
+
"widgets_values": [
|
| 226 |
+
"euler"
|
| 227 |
+
]
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"id": 32,
|
| 231 |
+
"type": "BasicScheduler",
|
| 232 |
+
"pos": [
|
| 233 |
+
2025.918814907203,
|
| 234 |
+
-238.5747585163061
|
| 235 |
+
],
|
| 236 |
+
"size": [
|
| 237 |
+
270,
|
| 238 |
+
106
|
| 239 |
+
],
|
| 240 |
+
"flags": {},
|
| 241 |
+
"order": 11,
|
| 242 |
+
"mode": 0,
|
| 243 |
+
"inputs": [
|
| 244 |
+
{
|
| 245 |
+
"name": "model",
|
| 246 |
+
"type": "MODEL",
|
| 247 |
+
"link": 48
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"name": "steps",
|
| 251 |
+
"type": "INT",
|
| 252 |
+
"widget": {
|
| 253 |
+
"name": "steps"
|
| 254 |
+
},
|
| 255 |
+
"link": 49
|
| 256 |
+
}
|
| 257 |
+
],
|
| 258 |
+
"outputs": [
|
| 259 |
+
{
|
| 260 |
+
"name": "SIGMAS",
|
| 261 |
+
"type": "SIGMAS",
|
| 262 |
+
"links": [
|
| 263 |
+
47
|
| 264 |
+
]
|
| 265 |
+
}
|
| 266 |
+
],
|
| 267 |
+
"properties": {
|
| 268 |
+
"cnr_id": "comfy-core",
|
| 269 |
+
"ver": "0.29.0",
|
| 270 |
+
"Node name for S&R": "BasicScheduler"
|
| 271 |
+
},
|
| 272 |
+
"widgets_values": [
|
| 273 |
+
"simple",
|
| 274 |
+
20,
|
| 275 |
+
1
|
| 276 |
+
]
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"id": 29,
|
| 280 |
+
"type": "SamplerCustomAdvanced",
|
| 281 |
+
"pos": [
|
| 282 |
+
2406.852931313454,
|
| 283 |
+
-605.3318085163054
|
| 284 |
+
],
|
| 285 |
+
"size": [
|
| 286 |
+
412.01386718750007,
|
| 287 |
+
550.9390000000001
|
| 288 |
+
],
|
| 289 |
+
"flags": {},
|
| 290 |
+
"order": 12,
|
| 291 |
+
"mode": 0,
|
| 292 |
+
"inputs": [
|
| 293 |
+
{
|
| 294 |
+
"name": "noise",
|
| 295 |
+
"type": "NOISE",
|
| 296 |
+
"link": 45
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"name": "guider",
|
| 300 |
+
"type": "GUIDER",
|
| 301 |
+
"link": 44
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"name": "sampler",
|
| 305 |
+
"type": "SAMPLER",
|
| 306 |
+
"link": 46
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"name": "sigmas",
|
| 310 |
+
"type": "SIGMAS",
|
| 311 |
+
"link": 47
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"name": "latent_image",
|
| 315 |
+
"type": "LATENT",
|
| 316 |
+
"link": 50
|
| 317 |
+
}
|
| 318 |
+
],
|
| 319 |
+
"outputs": [
|
| 320 |
+
{
|
| 321 |
+
"name": "output",
|
| 322 |
+
"type": "LATENT",
|
| 323 |
+
"links": [
|
| 324 |
+
51
|
| 325 |
+
]
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"name": "denoised_output",
|
| 329 |
+
"type": "LATENT",
|
| 330 |
+
"links": null
|
| 331 |
+
}
|
| 332 |
+
],
|
| 333 |
+
"properties": {
|
| 334 |
+
"cnr_id": "comfy-core",
|
| 335 |
+
"ver": "0.29.0",
|
| 336 |
+
"Node name for S&R": "SamplerCustomAdvanced"
|
| 337 |
+
},
|
| 338 |
+
"widgets_values": []
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"id": 28,
|
| 342 |
+
"type": "K2ReferenceGuider",
|
| 343 |
+
"pos": [
|
| 344 |
+
2002.9657430322022,
|
| 345 |
+
-613.4074585163063
|
| 346 |
+
],
|
| 347 |
+
"size": [
|
| 348 |
+
333.55234375,
|
| 349 |
+
170
|
| 350 |
+
],
|
| 351 |
+
"flags": {},
|
| 352 |
+
"order": 10,
|
| 353 |
+
"mode": 0,
|
| 354 |
+
"inputs": [
|
| 355 |
+
{
|
| 356 |
+
"name": "model",
|
| 357 |
+
"type": "MODEL",
|
| 358 |
+
"link": 43
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"name": "reference_conditioning",
|
| 362 |
+
"type": "K2_REF_CONDITIONING",
|
| 363 |
+
"link": 42
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"name": "reference_mask",
|
| 367 |
+
"shape": 7,
|
| 368 |
+
"type": "K2_REF_MASK",
|
| 369 |
+
"link": null
|
| 370 |
+
}
|
| 371 |
+
],
|
| 372 |
+
"outputs": [
|
| 373 |
+
{
|
| 374 |
+
"name": "GUIDER",
|
| 375 |
+
"type": "GUIDER",
|
| 376 |
+
"links": [
|
| 377 |
+
44
|
| 378 |
+
]
|
| 379 |
+
}
|
| 380 |
+
],
|
| 381 |
+
"properties": {
|
| 382 |
+
"aux_id": "adbrasi/ctxrush-edit",
|
| 383 |
+
"ver": "a84d6ed8cbc7d8d8af0042b4548f5cf450adca65",
|
| 384 |
+
"Node name for S&R": "K2ReferenceGuider"
|
| 385 |
+
},
|
| 386 |
+
"widgets_values": [
|
| 387 |
+
1,
|
| 388 |
+
1,
|
| 389 |
+
"full_off",
|
| 390 |
+
false
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"id": 30,
|
| 395 |
+
"type": "RandomNoise",
|
| 396 |
+
"pos": [
|
| 397 |
+
1993.120312907202,
|
| 398 |
+
-908.7572165163064
|
| 399 |
+
],
|
| 400 |
+
"size": [
|
| 401 |
+
270,
|
| 402 |
+
82
|
| 403 |
+
],
|
| 404 |
+
"flags": {},
|
| 405 |
+
"order": 4,
|
| 406 |
+
"mode": 0,
|
| 407 |
+
"inputs": [],
|
| 408 |
+
"outputs": [
|
| 409 |
+
{
|
| 410 |
+
"name": "NOISE",
|
| 411 |
+
"type": "NOISE",
|
| 412 |
+
"links": [
|
| 413 |
+
45
|
| 414 |
+
]
|
| 415 |
+
}
|
| 416 |
+
],
|
| 417 |
+
"properties": {
|
| 418 |
+
"cnr_id": "comfy-core",
|
| 419 |
+
"ver": "0.29.0",
|
| 420 |
+
"Node name for S&R": "RandomNoise"
|
| 421 |
+
},
|
| 422 |
+
"widgets_values": [
|
| 423 |
+
76524150451214,
|
| 424 |
+
"randomize"
|
| 425 |
+
]
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"id": 13,
|
| 429 |
+
"type": "SaveImage",
|
| 430 |
+
"pos": [
|
| 431 |
+
2865.2437165706397,
|
| 432 |
+
-566.3339474665232
|
| 433 |
+
],
|
| 434 |
+
"size": [
|
| 435 |
+
638.4859374999996,
|
| 436 |
+
470.1999999999998
|
| 437 |
+
],
|
| 438 |
+
"flags": {},
|
| 439 |
+
"order": 14,
|
| 440 |
+
"mode": 0,
|
| 441 |
+
"inputs": [
|
| 442 |
+
{
|
| 443 |
+
"name": "images",
|
| 444 |
+
"type": "IMAGE",
|
| 445 |
+
"link": 24
|
| 446 |
+
}
|
| 447 |
+
],
|
| 448 |
+
"outputs": [
|
| 449 |
+
{
|
| 450 |
+
"name": "images",
|
| 451 |
+
"type": "IMAGE",
|
| 452 |
+
"links": null
|
| 453 |
+
}
|
| 454 |
+
],
|
| 455 |
+
"properties": {
|
| 456 |
+
"cnr_id": "comfy-core",
|
| 457 |
+
"ver": "0.29.0",
|
| 458 |
+
"Node name for S&R": "SaveImage"
|
| 459 |
+
},
|
| 460 |
+
"widgets_values": [
|
| 461 |
+
"asdasdasd"
|
| 462 |
+
]
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"id": 26,
|
| 466 |
+
"type": "ResolutionSelector",
|
| 467 |
+
"pos": [
|
| 468 |
+
3255.244359849422,
|
| 469 |
+
-779.8743729490525
|
| 470 |
+
],
|
| 471 |
+
"size": [
|
| 472 |
+
270,
|
| 473 |
+
126
|
| 474 |
+
],
|
| 475 |
+
"flags": {},
|
| 476 |
+
"order": 5,
|
| 477 |
+
"mode": 0,
|
| 478 |
+
"inputs": [],
|
| 479 |
+
"outputs": [
|
| 480 |
+
{
|
| 481 |
+
"name": "width",
|
| 482 |
+
"type": "INT",
|
| 483 |
+
"links": [
|
| 484 |
+
55
|
| 485 |
+
]
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"name": "height",
|
| 489 |
+
"type": "INT",
|
| 490 |
+
"links": [
|
| 491 |
+
56
|
| 492 |
+
]
|
| 493 |
+
}
|
| 494 |
+
],
|
| 495 |
+
"properties": {
|
| 496 |
+
"cnr_id": "comfy-core",
|
| 497 |
+
"ver": "0.29.0",
|
| 498 |
+
"Node name for S&R": "ResolutionSelector"
|
| 499 |
+
},
|
| 500 |
+
"widgets_values": [
|
| 501 |
+
"16:9 (Widescreen)",
|
| 502 |
+
0.7,
|
| 503 |
+
16
|
| 504 |
+
]
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"id": 21,
|
| 508 |
+
"type": "K2LoadReferencePIL",
|
| 509 |
+
"pos": [
|
| 510 |
+
2857.767272385095,
|
| 511 |
+
-950.0849861754249
|
| 512 |
+
],
|
| 513 |
+
"size": [
|
| 514 |
+
365.7154296875,
|
| 515 |
+
318
|
| 516 |
+
],
|
| 517 |
+
"flags": {},
|
| 518 |
+
"order": 6,
|
| 519 |
+
"mode": 0,
|
| 520 |
+
"inputs": [],
|
| 521 |
+
"outputs": [
|
| 522 |
+
{
|
| 523 |
+
"name": "IMAGE",
|
| 524 |
+
"type": "IMAGE",
|
| 525 |
+
"links": [
|
| 526 |
+
54
|
| 527 |
+
]
|
| 528 |
+
}
|
| 529 |
+
],
|
| 530 |
+
"properties": {
|
| 531 |
+
"aux_id": "adbrasi/ctxrush-edit",
|
| 532 |
+
"ver": "a84d6ed8cbc7d8d8af0042b4548f5cf450adca65",
|
| 533 |
+
"Node name for S&R": "K2LoadReferencePIL"
|
| 534 |
+
},
|
| 535 |
+
"widgets_values": [
|
| 536 |
+
"image1.jpg",
|
| 537 |
+
"",
|
| 538 |
+
"image"
|
| 539 |
+
]
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"id": 27,
|
| 543 |
+
"type": "CtxRushKrea2MultiRefControlledApply",
|
| 544 |
+
"pos": [
|
| 545 |
+
1541.6502914526575,
|
| 546 |
+
-843.364572152671
|
| 547 |
+
],
|
| 548 |
+
"size": [
|
| 549 |
+
400,
|
| 550 |
+
686
|
| 551 |
+
],
|
| 552 |
+
"flags": {},
|
| 553 |
+
"order": 9,
|
| 554 |
+
"mode": 0,
|
| 555 |
+
"inputs": [
|
| 556 |
+
{
|
| 557 |
+
"name": "model",
|
| 558 |
+
"type": "MODEL",
|
| 559 |
+
"link": 69
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"name": "clip",
|
| 563 |
+
"type": "CLIP",
|
| 564 |
+
"link": 38
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"name": "vae",
|
| 568 |
+
"type": "VAE",
|
| 569 |
+
"link": 39
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"name": "image_1",
|
| 573 |
+
"type": "IMAGE",
|
| 574 |
+
"link": 54
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"name": "image_2",
|
| 578 |
+
"shape": 7,
|
| 579 |
+
"type": "IMAGE",
|
| 580 |
+
"link": null
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"name": "image_3",
|
| 584 |
+
"shape": 7,
|
| 585 |
+
"type": "IMAGE",
|
| 586 |
+
"link": null
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"name": "image_4",
|
| 590 |
+
"shape": 7,
|
| 591 |
+
"type": "IMAGE",
|
| 592 |
+
"link": null
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"name": "width",
|
| 596 |
+
"type": "INT",
|
| 597 |
+
"widget": {
|
| 598 |
+
"name": "width"
|
| 599 |
+
},
|
| 600 |
+
"link": 55
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"name": "height",
|
| 604 |
+
"type": "INT",
|
| 605 |
+
"widget": {
|
| 606 |
+
"name": "height"
|
| 607 |
+
},
|
| 608 |
+
"link": 56
|
| 609 |
+
}
|
| 610 |
+
],
|
| 611 |
+
"outputs": [
|
| 612 |
+
{
|
| 613 |
+
"name": "model",
|
| 614 |
+
"type": "MODEL",
|
| 615 |
+
"links": [
|
| 616 |
+
43,
|
| 617 |
+
48
|
| 618 |
+
]
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"name": "reference_conditioning",
|
| 622 |
+
"type": "K2_REF_CONDITIONING",
|
| 623 |
+
"links": [
|
| 624 |
+
42
|
| 625 |
+
]
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"name": "positive_with_reference",
|
| 629 |
+
"type": "CONDITIONING",
|
| 630 |
+
"links": null
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"name": "negative_with_reference",
|
| 634 |
+
"type": "CONDITIONING",
|
| 635 |
+
"links": null
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"name": "positive_no_reference",
|
| 639 |
+
"type": "CONDITIONING",
|
| 640 |
+
"links": null
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"name": "negative_no_reference",
|
| 644 |
+
"type": "CONDITIONING",
|
| 645 |
+
"links": null
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"name": "latent",
|
| 649 |
+
"type": "LATENT",
|
| 650 |
+
"links": [
|
| 651 |
+
50
|
| 652 |
+
]
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"name": "steps",
|
| 656 |
+
"type": "INT",
|
| 657 |
+
"links": [
|
| 658 |
+
49
|
| 659 |
+
]
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"name": "cfg",
|
| 663 |
+
"type": "FLOAT",
|
| 664 |
+
"links": null
|
| 665 |
+
}
|
| 666 |
+
],
|
| 667 |
+
"properties": {
|
| 668 |
+
"aux_id": "adbrasi/ctxrush-edit",
|
| 669 |
+
"ver": "a84d6ed8cbc7d8d8af0042b4548f5cf450adca65",
|
| 670 |
+
"Node name for S&R": "CtxRushKrea2MultiRefControlledApply"
|
| 671 |
+
},
|
| 672 |
+
"widgets_values": [
|
| 673 |
+
"extreme close-up on the lower face of a new person, tongue extended outward from parted lips, thick yellow liquid coating the mouth and dripping down the chin, neutral flat gray background",
|
| 674 |
+
"",
|
| 675 |
+
"krea2_multiref_grounded_13250.safetensors",
|
| 676 |
+
1,
|
| 677 |
+
1,
|
| 678 |
+
"turbo",
|
| 679 |
+
768,
|
| 680 |
+
640,
|
| 681 |
+
1,
|
| 682 |
+
0,
|
| 683 |
+
"auto",
|
| 684 |
+
"auto",
|
| 685 |
+
"all",
|
| 686 |
+
"flat",
|
| 687 |
+
"runner_pil",
|
| 688 |
+
true,
|
| 689 |
+
true,
|
| 690 |
+
false
|
| 691 |
+
]
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"id": 25,
|
| 695 |
+
"type": "PathchSageAttentionKJ",
|
| 696 |
+
"pos": [
|
| 697 |
+
928.0390858213289,
|
| 698 |
+
108.19882801359584
|
| 699 |
+
],
|
| 700 |
+
"size": [
|
| 701 |
+
270,
|
| 702 |
+
82
|
| 703 |
+
],
|
| 704 |
+
"flags": {},
|
| 705 |
+
"order": 8,
|
| 706 |
+
"mode": 0,
|
| 707 |
+
"inputs": [
|
| 708 |
+
{
|
| 709 |
+
"name": "model",
|
| 710 |
+
"type": "MODEL",
|
| 711 |
+
"link": 31
|
| 712 |
+
}
|
| 713 |
+
],
|
| 714 |
+
"outputs": [
|
| 715 |
+
{
|
| 716 |
+
"name": "MODEL",
|
| 717 |
+
"type": "MODEL",
|
| 718 |
+
"links": [
|
| 719 |
+
69
|
| 720 |
+
]
|
| 721 |
+
}
|
| 722 |
+
],
|
| 723 |
+
"properties": {
|
| 724 |
+
"cnr_id": "comfyui-kjnodes",
|
| 725 |
+
"ver": "4d46ac107c33ed8a3d181b8776ede66498583380",
|
| 726 |
+
"Node name for S&R": "PathchSageAttentionKJ"
|
| 727 |
+
},
|
| 728 |
+
"widgets_values": [
|
| 729 |
+
"auto",
|
| 730 |
+
false
|
| 731 |
+
]
|
| 732 |
+
}
|
| 733 |
+
],
|
| 734 |
+
"links": [
|
| 735 |
+
[
|
| 736 |
+
23,
|
| 737 |
+
3,
|
| 738 |
+
0,
|
| 739 |
+
12,
|
| 740 |
+
1,
|
| 741 |
+
"VAE"
|
| 742 |
+
],
|
| 743 |
+
[
|
| 744 |
+
24,
|
| 745 |
+
12,
|
| 746 |
+
0,
|
| 747 |
+
13,
|
| 748 |
+
0,
|
| 749 |
+
"IMAGE"
|
| 750 |
+
],
|
| 751 |
+
[
|
| 752 |
+
25,
|
| 753 |
+
1,
|
| 754 |
+
0,
|
| 755 |
+
20,
|
| 756 |
+
0,
|
| 757 |
+
"MODEL"
|
| 758 |
+
],
|
| 759 |
+
[
|
| 760 |
+
31,
|
| 761 |
+
20,
|
| 762 |
+
0,
|
| 763 |
+
25,
|
| 764 |
+
0,
|
| 765 |
+
"MODEL"
|
| 766 |
+
],
|
| 767 |
+
[
|
| 768 |
+
38,
|
| 769 |
+
2,
|
| 770 |
+
0,
|
| 771 |
+
27,
|
| 772 |
+
1,
|
| 773 |
+
"CLIP"
|
| 774 |
+
],
|
| 775 |
+
[
|
| 776 |
+
39,
|
| 777 |
+
3,
|
| 778 |
+
0,
|
| 779 |
+
27,
|
| 780 |
+
2,
|
| 781 |
+
"VAE"
|
| 782 |
+
],
|
| 783 |
+
[
|
| 784 |
+
42,
|
| 785 |
+
27,
|
| 786 |
+
1,
|
| 787 |
+
28,
|
| 788 |
+
1,
|
| 789 |
+
"K2_REF_CONDITIONING"
|
| 790 |
+
],
|
| 791 |
+
[
|
| 792 |
+
43,
|
| 793 |
+
27,
|
| 794 |
+
0,
|
| 795 |
+
28,
|
| 796 |
+
0,
|
| 797 |
+
"MODEL"
|
| 798 |
+
],
|
| 799 |
+
[
|
| 800 |
+
44,
|
| 801 |
+
28,
|
| 802 |
+
0,
|
| 803 |
+
29,
|
| 804 |
+
1,
|
| 805 |
+
"GUIDER"
|
| 806 |
+
],
|
| 807 |
+
[
|
| 808 |
+
45,
|
| 809 |
+
30,
|
| 810 |
+
0,
|
| 811 |
+
29,
|
| 812 |
+
0,
|
| 813 |
+
"NOISE"
|
| 814 |
+
],
|
| 815 |
+
[
|
| 816 |
+
46,
|
| 817 |
+
31,
|
| 818 |
+
0,
|
| 819 |
+
29,
|
| 820 |
+
2,
|
| 821 |
+
"SAMPLER"
|
| 822 |
+
],
|
| 823 |
+
[
|
| 824 |
+
47,
|
| 825 |
+
32,
|
| 826 |
+
0,
|
| 827 |
+
29,
|
| 828 |
+
3,
|
| 829 |
+
"SIGMAS"
|
| 830 |
+
],
|
| 831 |
+
[
|
| 832 |
+
48,
|
| 833 |
+
27,
|
| 834 |
+
0,
|
| 835 |
+
32,
|
| 836 |
+
0,
|
| 837 |
+
"MODEL"
|
| 838 |
+
],
|
| 839 |
+
[
|
| 840 |
+
49,
|
| 841 |
+
27,
|
| 842 |
+
7,
|
| 843 |
+
32,
|
| 844 |
+
1,
|
| 845 |
+
"INT"
|
| 846 |
+
],
|
| 847 |
+
[
|
| 848 |
+
50,
|
| 849 |
+
27,
|
| 850 |
+
6,
|
| 851 |
+
29,
|
| 852 |
+
4,
|
| 853 |
+
"LATENT"
|
| 854 |
+
],
|
| 855 |
+
[
|
| 856 |
+
51,
|
| 857 |
+
29,
|
| 858 |
+
0,
|
| 859 |
+
12,
|
| 860 |
+
0,
|
| 861 |
+
"LATENT"
|
| 862 |
+
],
|
| 863 |
+
[
|
| 864 |
+
54,
|
| 865 |
+
21,
|
| 866 |
+
0,
|
| 867 |
+
27,
|
| 868 |
+
3,
|
| 869 |
+
"IMAGE"
|
| 870 |
+
],
|
| 871 |
+
[
|
| 872 |
+
55,
|
| 873 |
+
26,
|
| 874 |
+
0,
|
| 875 |
+
27,
|
| 876 |
+
7,
|
| 877 |
+
"INT"
|
| 878 |
+
],
|
| 879 |
+
[
|
| 880 |
+
56,
|
| 881 |
+
26,
|
| 882 |
+
1,
|
| 883 |
+
27,
|
| 884 |
+
8,
|
| 885 |
+
"INT"
|
| 886 |
+
],
|
| 887 |
+
[
|
| 888 |
+
69,
|
| 889 |
+
25,
|
| 890 |
+
0,
|
| 891 |
+
27,
|
| 892 |
+
0,
|
| 893 |
+
"MODEL"
|
| 894 |
+
]
|
| 895 |
+
],
|
| 896 |
+
"groups": [],
|
| 897 |
+
"config": {},
|
| 898 |
+
"extra": {
|
| 899 |
+
"ds": {
|
| 900 |
+
"scale": 0.38554328942953314,
|
| 901 |
+
"offset": [
|
| 902 |
+
263.56295908444093,
|
| 903 |
+
1200.5992511100708
|
| 904 |
+
]
|
| 905 |
+
},
|
| 906 |
+
"frontendVersion": "1.47.12",
|
| 907 |
+
"VHS_latentpreview": false,
|
| 908 |
+
"VHS_latentpreviewrate": 0,
|
| 909 |
+
"VHS_MetadataImage": true,
|
| 910 |
+
"VHS_KeepIntermediate": true
|
| 911 |
+
},
|
| 912 |
+
"version": 0.4
|
| 913 |
+
}
|