Files
aigc-home/docs/hel-892/flux2-action-document-evidence/build_definition.py
T

692 lines
32 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"Source-bound action-transfer reference text; never an executable workflow."
import ast
import hashlib
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "flux2-action-reference"
PATHS = [("example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json")]
def canonical(v):
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
MEANING = {
"6": (
"第一图ComfyUI_01598_.png/image→32→16缩放→"
"45→23.image1;同时16→42→19.image_ref颜色参"
"考。MASK出口缺links键;sdppp属性仅保存声明,不读取媒体。"
),
"13": (
"第二图微信图片_20260425191936_248_41.jpg/im"
"age→39→17 DW姿态图;原图另经57→24→58→12比较A。A"
"不是第一图6;MASK缺links键,未接遮罩。"
),
"16": (
"准确881bc917 aux仓库Layer:保存original/1/1"
"/crop/lanczos/字符串8/longest/1280/#000"
"000。original取首图比例,custom才用1/1;longes"
"t按ratio>1选择宽,否则高,以scale_to_length确定另"
"一边,再向上取整到8倍数。crop按比例放大再居中裁剪,tensor2p"
"il clip/uint8且图像转RGB;不保证像素/透明保持。27字符"
"串1080经59覆盖1280缓存,但Set身份/执行类型未知,不算有效1"
"080。image→23和19参考;width slot3经55、hei"
"ght slot4经56覆盖宿主及Painter两尺寸;没有上一图调度四"
"覆盖。mask无link,mask出口缺links未接。cnr与aux提"
"供方不同,不能等同。"
),
"17": (
"准确cc6b232f DW:保存disable/enable/disab"
"le/1024及两torchscript模型和末disable;hand"
"/body/face分别转bool控制绘制,不等于未做相应检测。wrap"
"per把resolution传detect_resolution;准确D"
"wpose先以0缩放输入并detect_poses,再draw_pose"
"s,之后以1024缩放绘制canvas并remove_pad/HWC3:"
"1024是姿态输出缩放短边目标,不是检测网络输入尺寸或超分保证。输入第二"
"图,IMAGE→40→18临时预览及46→23.image2;POSE_"
"KEYPOINT出口缺links未接,不称关键点文件导出。bbox to"
"rchscript分支引用hr16/yolox-onnx,pose引用h"
"r16/DWPose-TorchScript-BatchSize5;fr"
"om_pretrained/设备/下载与ORT检查仅静态读,未执行、未下"
"载。"
),
"27": (
"SetNode保存的是JSON字符串“1080”;INT输入link=n"
"ull、INT出口59到16.scale_to_length。仅aux="
"kijai/ComfyUI-KJNodes,无准确版本及已绑定类实现,不"
"能据名称把字符串求值为整数、补默认或恢复别名;实际出值/类型和目标注册未"
"知。"
),
"12": (
"Comparer保存一个完整列表,内含A/B两个历史temp_jutls"
" URL与selected=true;Slide只在properties"
",不制造具名images/img保存。image_a来自13第二原图经2"
"4,image_b来自19匹配后返回图,B不是匹配前生成。image_u"
"rls STRING出口缺links未接。cnr=rgthree-com"
"fy却ver=881bc917且aux=aining2022/Comfy"
"UI_Swwan:准确aux仓库image_comparer.py确有R"
"gthreeImageComparer且注册相同键,__init__合并"
",保留cnr/aux身份差异,不借旧rgthree版本。该aux实现RE"
"TURN_TYPES=(),源STRING出口冲突;compare_im"
"ages分别写CPU/uint8 temp PNG,随机comparer"
"前缀/压缩4,返回ui.a_images/b_images而非STRIN"
"G。其同提交JS onExecuted接images或a_images/"
"b_images并转URL,onSerialize把rgthree_co"
"mparer的value.images列表复制删除img,setter接"
"受列表/对象并可能加载Image;Slide/Click属性与历史列表分"
"列,不执行任何恢复或URL加载。历史列表仅源保存参考,不访问URL、不模"
"拟滑块/预览。"
),
"19": (
"准确Easy v1.3.6 imageColorMatch注册为easy"
" imageColorMatch;保存mkl/Preview/Comfy"
"UI。参考16第一缩放图,target为23生成;mkl进入ColorM"
"atcher.transfer(src=target,ref=ref,m"
"ethod=mkl),参考批次必须1或匹配target批次,否则Valu"
"eError;异常打印并break可能导致空stack,底层未固定不保证"
"算法/效果。无模型超分。easySave Preview以easyPre"
"view调用核心PreviewImage.save_images写tem"
"p PNG;不是无文件写入,保存前缀ComfyUI此分支被替换。Hide"
"/None无保存,其他模式SaveImage,Hide/HideSave"
"类ui空而result仍返回。当前Preview ui.images与r"
"esult=(new_images,)分列;返回图经44到比较B,11仍"
"直接保存未匹配生成。不执行自动install_package或写回静态状"
"态。"
),
"11": (
"23原生成经47→11正式SaveImage,前缀Flux2-Klein"
";不是19颜色匹配后图。准确core0.9.2 SaveImage RE"
"TURN_TYPES=()、OUTPUT_NODE=True,返回ui."
"images保存记录;源声明IMAGE出口缺links,与准确协议冲突,"
"原件不修且执行关闭。output目录递增PNG/metadata仅代码参"
"考,不证明实际文件/history。"
),
"18": (
"DW姿态IMAGE经40→18 PreviewImage;准确core0"
".9.2继承SaveImage、temp目录随机前缀压缩1、空RETUR"
"N_TYPES,而源IMAGE出口缺links冲突。[]零保存与协议分列"
",不运行或把临时预览当正式生成保存。"
),
"24": (
"Reroute缺widgets_values键,输"
"入57来自第二原图13,输出58到比较A;无提供方"
"/版本,不按布局猜已恢复目标行为。"
),
"23": (
"宿主空widgets_values=[],定义widgets=[]独立;"
"10 proxyWidgets与8输入分列。两IMAGE边界31/38接"
"Painter的输入10/11,宽高55/56→边界53/54覆盖Pai"
"nter。模型/提示宿主无外线,代理不制造promoted值;宿主cor"
"e0.28.3不能赋予内部新版本。定义outputs.linkIds=["
"17,17]重复声明与唯一物理17分别保留,不制造第二物理边。"
),
"23:1": (
"准确core0.9.2 UNET保存Flux反斜杠flux-2-klei"
"n-9b-fp8.safetensors/default;宿主无外线un"
"et_name经49,MODEL经11供KSampler,无LoRA。文"
"件名不证明安装/dtype/兼容或许可。"
),
"23:2": (
"准确core0.9.2 CLIP保存qwen_3_8b_fp8mixed"
".safetensors/flux2/default,宿主无外线clip"
"_name经50;CLIP经3到Painter。动态文件枚举、模型/设备"
"构造仅静态参考,不确认安装兼容。"
),
"23:4": (
"准确core0.9.2 VAE保存flux2-vae.safetenso"
"rs,边界51无宿主外线;输出2供3解码、4供Painter编码。动态目"
"录引用不是模型安装或许可证明,未加载。"
),
"23:5": (
"准确Painter88af927使用Autogrow images/im"
"age_前缀1~6,schema无2_image模式;源四位置是完整中文"
"提示、字符串2_image、JSON int1、1024,无法可靠映射到"
"准确schema的prompt/batch/width/height。保"
"存布局假设分列,绝不补第二尺寸或把2_image当合法模式。准确sche"
"ma image_0_mask与execute image_1_mask"
"命名冲突;源images.image_0/images.image_1未"
"接、image_0_mask=null及image1_mask缺link"
",两根图却经31/38接旧image1/image2输入10/11,动态"
"恢复未知。代码按images数字后缀排序,VL每图约384×384面积,"
"VAE按width/height lanczos center;参考la"
"tent同时append正负,正向编码完整提示、负向编码空串。返回lat"
"ent若有参考用第一个,否则VAE编码全零RGB;batch>1重复条件"
"和latent。采样起点来自Painter输出槽2→14,不能套Empt"
"yFlux2Latent或保证是空latent。本图未运行、未知动态恢复"
"与有效宽高。完整提示“把图1的人物姿势、动作改成图2的人物姿势、动作,只"
"改图1人物姿势、动作,同时保持图1其他不变”仅作者意图,不保证身份/姿态"
"/背景/像素不变。"
),
"23:9": (
"准确core0.9.2 KSampler:550905173173073"
"/randomize/4/int1/euler/simple/int1逐"
"项保留。seed是缓存,randomize是frontend1.36.1"
"4生成后辅助,不运行钩子、求下一值或保证复现;cfg与denoise s"
"chema FLOAT但源JSON int1。MODEL来自1,正负和采"
"样latent均来自Painter;LATENT→1→3解码;不运行种子"
"/采样/缓存显存。"
),
"23:3": (
"准确core0.9.2 VAEDecode零保存[];KSampler "
"LATENT经1和VAE经2→3→唯一物理17→定义IMAGE→宿主23"
",再分正式保存与颜色匹配。定义linkIds重复不重复解码或输出。"
),
}
# Explicit reference layouts, never infer mapping from input order.
LAYOUTS = {
"LoadImage": [("image", "文件引用"), ("upload", "前端上传辅助")],
("LayerUtility: ImageScaleByAspectRatio V2"): [
(x, y)
for x, y in zip(
[
"aspect_ratio",
"proportional_width",
"proportional_height",
"fit",
"method",
"round_to_multiple",
"scale_to_side",
"scale_to_length",
"background_color",
],
[
"宽高比",
"自定义比例宽",
"自定义比例高",
"适应方式",
"插值方法",
"倍数取整",
"缩放边",
"缩放长度缓存",
"背景颜色",
],
strict=True,
)
],
"DWPreprocessor": [
(x, y)
for x, y in zip(
[
"detect_hand",
"detect_body",
"detect_face",
"resolution",
"bbox_detector",
"pose_estimator",
"scale_stick_for_xinsr_cn",
],
[
"绘制手部开关",
"绘制身体开关",
"绘制脸部开关",
"姿态输出分辨率",
"BBox模型引用",
"姿态模型引用",
"Xinsr骨棒缩放开关",
],
strict=True,
)
],
"SetNode": [("saved_name", "未确认Set字符串")],
"Image Comparer (rgthree)": [("saved_history", "完整历史A/B列表")],
"easy imageColorMatch": [
("method", "颜色匹配方法"),
("image_output", "图像输出模式"),
("save_prefix", "保存前缀"),
],
"SaveImage": [("filename_prefix", "正式保存前缀")],
"UNETLoader": [("unet_name", "扩散模型引用"), ("weight_dtype", "权重类型")],
"CLIPLoader": [
("clip_name", "文本编码模型引用"),
("type", "编码器类型"),
("device", "设备选择"),
],
"VAELoader": [("vae_name", "VAE模型引用")],
"PainterFluxImageEdit": [
("prompt", "完整中文提示缓存"),
("saved_mode", "未确认模式字符串"),
("saved_batch", "未确认批次位置"),
("saved_size", "未确认尺寸位置"),
],
"KSampler": [
(x, y)
for x, y in zip(
[
"seed",
"control_after_generate",
"steps",
"cfg",
"sampler_name",
"scheduler",
"denoise",
],
["种子缓存", "生成后辅助", "采样步数", "条件引导", "采样器", "调度器", "降噪强度"],
strict=True,
)
],
}
def build(index=0):
raw = (REPO / PATHS[index]).read_bytes()
g = json.loads(raw)
manifest = json.loads((REF / "sources.json").read_bytes())["sources"]
sources = []
def cite(key, file, symbol=None, claim="准确本图版本静态原文;未执行"):
e = next(e for e in manifest if e["id"] == key and e["file"] == file)
data = (REF / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
span = [1, len(data.decode().splitlines())]
if symbol:
n = next(
n
for n in ast.walk(ast.parse(data))
if isinstance(n, (ast.ClassDef, ast.FunctionDef, ast.AsyncFunctionDef))
and n.name == symbol
)
span = [n.lineno, n.end_lineno]
sources.append(
dict(
e,
local_file="../flux2-action-reference/" + e["local_file"],
lines=span,
claim=claim,
)
)
return len(sources) - 1
refs = {}
for cls in [
"LoadImage",
"SaveImage",
"PreviewImage",
"UNETLoader",
"CLIPLoader",
"VAELoader",
"KSampler",
"VAEDecode",
]:
refs[cls] = [cite("core", "nodes.py", cls)]
refs[("LayerUtility: ImageScaleByAspectRatio V2")] = [
cite("layer", "image_scale_by_aspect_ratio_v2.py", "ImageScaleByAspectRatioV2"),
cite("layer", "layerstyle_utils.py", "fit_resize_image"),
cite("layer", "layerstyle_utils.py", "num_round_up_to_multiple"),
cite("layer", "layerstyle_utils.py", "tensor2pil"),
]
refs["DWPreprocessor"] = [
cite("dw", "node_wrappers/dwpose.py", "DWPose_Preprocessor"),
cite("dw", "utils.py", "INPUT"),
cite("dw", "utils.py", "common_annotator_call"),
cite("dw", ("src/custom_controlnet_aux/dwpose/__init__.py"), "DwposeDetector"),
cite("dw", "src/custom_controlnet_aux/util.py", "resize_image_with_pad"),
]
refs["PainterFluxImageEdit"] = [
cite("painter", "PainterFluxImageEdit.py", "PainterFluxImageEdit"),
cite("painter", "__init__.py"),
]
refs["easy imageColorMatch"] = [
cite("easy", "py/nodes/image.py", "imageColorMatch"),
cite("easy", "py/libs/utils.py", "easySave"),
cite("easy", "__init__.py"),
]
refs["SetNode"] = []
refs["Image Comparer (rgthree)"] = [
cite("comparer", "image_comparer.py", "RgthreeImageComparer"),
cite("comparer", "__init__.py", claim="准确aux仓库注册合并,cnr身份差异保留"),
cite("comparer", "web/js/image_comparer.js"),
]
seed = cite("frontend", "src/scripts/widgets.ts", claim="准确1.36.14 seed生成后辅助;只读")
for e in manifest:
if e["id"] in ["frontend", "frontsub"] and e["file"] != "src/scripts/widgets.ts":
cite(e["id"], e["file"])
# Existing descriptions are candidates only; this graph's exact schema is checked separately.
base = json.loads(
__import__("subprocess").check_output(
[
"git",
"show",
(
"1c87b4de34494b456dc6de09d6db384353b4"
"72a4:calliope-backend/src/calliope/c"
"omfyui/source_reviews.json"
),
],
cwd=REPO,
)
)
common = {}
for r in base.values():
for f in r.get("fixed_version_document", {}).get("fields", []):
common[f["class_type"], f["field"]] = f
fields = []
empty = []
flow = []
boundaries = []
for prefix, s, host in [
("", g, None),
("/definitions/subgraphs/0", g["definitions"]["subgraphs"][0], 23),
]:
for i, n in enumerate(s["nodes"]):
display = str(n["id"]) if host is None else f"{host}:{n['id']}"
effect = MEANING[display]
flow += [
effect,
display + " 原属性 " + json.dumps(n.get("properties", {}), ensure_ascii=False),
]
ptr = f"{prefix}/nodes/{i}"
if not n.get("widgets_values"):
empty.append(
dict(
node_id=display,
class_type=n["type"],
pointer=ptr,
scope=prefix or "root",
state="missing" if "widgets_values" not in n else "empty_list",
effect=effect,
)
)
continue
for j, ((name, label), v) in enumerate(
zip(LAYOUTS[n["type"]], n["widgets_values"], strict=True)
):
old = common.get((n["type"], name), {})
schema_default = old.get("schema_default", "无显式default;源现值不当默认")
limits = old.get("limits", "准确枚举/接口条件见引用;目标安装及恢复未知")
unit = old.get("unit", "源保存参考")
evidence = refs[n["type"]][:]
if n["type"] == "DWPreprocessor":
schema_default = {
"detect_hand": "enable",
"detect_body": "enable",
"detect_face": "enable",
"resolution": "512",
"bbox_detector": "yolox_l.onnx",
"pose_estimator": "dw-ll_ucoco_384_bs5.torchscript.pt",
"scale_stick_for_xinsr_cn": "disable",
}[name]
limits = {
"detect_hand": "enable/disable;仅绘制开关",
"detect_body": "enable/disable;仅绘制开关",
"detect_face": "enable/disable;仅绘制开关",
"resolution": ("INT 64~16384,step64;common_annotator非法值回退512"),
"bbox_detector": (
"None/yolox_l.torchscript.pt/yolox_l."
"onnx/yolo_nas_l_fp16.onnx/yolo_nas_m"
"_fp16.onnx/yolo_nas_s_fp16.onnx"
),
"pose_estimator": (
"dw-ll_ucoco_384_bs5.torchscript.pt/d"
"w-ll_ucoco_384.onnx/dw-ll_ucoco.onnx"
";函数缺省另为dw-ll_ucoco_384.onnx"
),
"scale_stick_for_xinsr_cn": (
"disable/enable;仅draw_poses xinsr_stick_scaling"
),
}[name]
unit = (
"输出短边像素目标"
if name == "resolution"
else "模型引用"
if name in ["bbox_detector", "pose_estimator"]
else "开关"
)
if n["type"] == "SetNode":
schema_default = "未知:提供方/版本未绑定或冲突"
limits = "仅保存原位置;无准确类映射,不据名称补默认"
unit = (
"完整历史列表" if name == "saved_history" else "JSON字符串;与接口INT分列"
)
if n["type"] == "Image Comparer (rgthree)":
schema_default = "准确aux无后端widget默认;Slide为前端属性默认,非列表默认"
limits = "完整A/B列表;同提交JS序列化参考,cnr提供方与输出协议差异保留"
unit = "完整历史列表;不访问URL"
if n["type"] == "PainterFluxImageEdit":
schema_default = (
"准确schema prompt无默认;batch1/width1024/height1024与四位置冲突"
)
limits = (
"Autogrow images最多6;batch1~64 step1;w"
"idth/height512~4096 step8;没有2_image模"
"式,布局映射未知"
)
unit = (
"中文作者意图"
if name == "prompt"
else "保存参考位置;不认有效批次/尺寸/模式"
)
if n["type"] == "easy imageColorMatch":
schema_default = {
"method": "无显式default;枚举首项wavelet",
"image_output": "Preview",
"save_prefix": "ComfyUI",
}[name]
limits = {
"method": (
"wavelet/adain/mkl/hm/reinhard/mvgd/hm-mvgd-hm/hm-mkl-hm;mkl底层未固定"
),
"image_output": (
"Hide/Preview/Save/Hide/Sa"
"ve(最后一项为字符串Hide/Save);Pre"
"view写temp PNG"
),
"save_prefix": "STRING;Preview被easyPreview替代",
}[name]
unit = "枚举" if name != "save_prefix" else "文件名前缀"
if name == "control_after_generate":
evidence.append(seed)
schema_default = "准确前端辅助初始fixed;不是后端采样输入"
limits = "fixed/increment/decrement/randomize;不运行"
if n["type"] == "KSampler":
schema_default = {
"seed": "0",
"control_after_generate": schema_default,
"steps": "20",
"cfg": "8.0",
"sampler_name": "动态SAMPLER_NAMES无固定default",
"scheduler": "动态SCHEDULER_NAMES无固定default",
"denoise": "1.0",
}[name]
limits = {
"seed": "INT 0~0xffffffffffffffff",
"control_after_generate": limits,
"steps": "INT 1~10000",
"cfg": "FLOAT 0.0~100.0 step0.1",
"sampler_name": "准确core0.9.2动态枚举;源euler仅保存",
"scheduler": "准确core0.9.2动态枚举;源simple仅保存",
"denoise": "FLOAT 0.0~1.0 step0.01",
}[name]
if n["type"] == ("LayerUtility: ImageScaleByAspectRatio V2"):
schema_default = {
"aspect_ratio": "无显式default;枚举首项original",
"proportional_width": "1",
"proportional_height": "1",
"fit": "无显式default;枚举首项letterbox",
"method": "无显式default;枚举首项lanczos",
"round_to_multiple": "无显式default;枚举首项字符串8",
"scale_to_side": "无显式default;枚举首项None",
"scale_to_length": "1024",
"background_color": "#000000",
}[name]
limits = {
"aspect_ratio": ("original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16"),
"proportional_width": "INT 1~1e8 step1;仅custom分支",
"proportional_height": "INT 1~1e8 step1;仅custom分支",
"fit": "letterbox/crop/fill",
"method": ("lanczos/bicubic/hamming/bilinear/box/nearest"),
"round_to_multiple": "字符串8/16/32/64/128/256/512/None;向上取整",
"scale_to_side": (
"None/longest/shortest/width/height/total_pixel(kilo pixel)"
),
"scale_to_length": "INT 4~1e8 step1;当前longest,外线值未知",
"background_color": "STRING;crop当前不使用底色",
}[name]
limits = limits.replace(
"仅89014d参考假设,源版本未知", "准确881bc917 aux仓库;cnr提供方差异保留"
)
if name == "scale_to_length":
unit = "像素INT接口;外线实际值未知"
inp = next(
(k for k, x in enumerate(n.get("inputs", [])) if x["name"] == name), None
)
aux = name in ["upload", "control_after_generate"]
linked = inp is not None and n["inputs"][inp].get("link") is not None
fields.append(
dict(
node_id=display,
definition_node_id=str(n["id"]),
scope=prefix or "root",
class_type=n["type"],
field=name,
label=label,
pointer=f"{ptr}/widgets_values/{j}",
value=v,
json_type=type(v).__name__,
named_pointer="源无widgets_values_named,不构造具名保存指针",
input_pointer=f"{ptr}/inputs/{inp}"
if inp is not None
else "无可靠独立输入映射:仅保存位置",
input_name=n["inputs"][inp]["name"] if inp is not None else None,
type=n["inputs"][inp]["type"] if inp is not None else "保存参考",
role="frontend_reference_only"
if aux
else "linked_saved_cache"
if linked
else "saved_layout_reference",
schema_default=schema_default,
limits=limits,
unit=unit,
effect=effect,
evidence=evidence,
execution_note=(
"保存布局仅静态参考,不证明实际恢复或执行值;模型/"
"素材/许可/安装/效果未知,保持停用,未增加转换或"
"执行资格。"
),
)
)
flow.extend(
("根物理边 " if not prefix else prefix + " 物理边 ") + json.dumps(e, ensure_ascii=False)
for e in s["links"]
)
if prefix:
h = next(n for n in g["nodes"] if n["id"] == host)
boundaries = [
{
k: s[k]
for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]
},
dict(
host_pointer=f"/nodes/{g['nodes'].index(h)}",
host_saved=h["widgets_values"],
proxyWidgets=h["properties"]["proxyWidgets"],
inputs=h["inputs"],
),
]
assert len(fields) == 43 and sum(f["scope"] == "root" for f in fields) == 26
overview = (
"这张图希望把第一图人物的姿态改成第二图的姿态:第一图缩放,第二图提取姿态"
"图,经Painter条件和latent送采样解码。生成图直接正式保存,另"
"以第一缩放图颜色匹配后与第二原图比较。动作及其他内容保持只是作者意图,提"
"供方和动态输入冲突尚未解决,不能执行。"
)
flow.insert(
0,
(
"根11节点14边,定义6节点17含边界记录,全mode0;根26+内部1"
"7=43保存位置(42标量+1完整历史列表),无Note/具名值。Rer"
"oute缺键、宿主/Preview/VAEDecode各[]零位置、定义"
"widgets=[]独立。"
),
)
flow.extend(
[
("10代理8输入不造promoted值;定义输出linkIds=[17,17]与唯一物理17分列。"),
(
"准确core0.9.2、图级frontend1.36.14和锁定依赖仅静"
"态绑定;宿主0.28.3不赋予内部身份。UE7.5.2/7.8、Set别"
"名、Painter动态恢复和目标安装未知,不模拟恢复。"
),
(
"准确Layer aux仓库image_comparer.py/同树JS与"
"__init__确有相同注册键;cnr=rgthree-comfy身份差"
"异及源STRING出口/准确空RETURN_TYPES冲突保留,不借近版"
"rgthree。Easy准确v1.3.6 Git标签与文件绑定,未验证发"
"布包与Git对应或完整包SHA;底层color-matcher未固定。"
),
(
"许可原文仅说明对应源码的许可;模型/素材/设备/目标安装、许可适用和实际"
"效果未知。未执行上游注册/SDK/表达式/预处理器/模型/GPU/媒体/"
"种子/缓存,不下载权重或历史URL。"
),
]
)
flow.extend("原定义/宿主边界 " + json.dumps(b, ensure_ascii=False) for b in boundaries)
return dict(
source_path=PATHS[index],
source_sha1=hashlib.sha1(raw).hexdigest(),
source_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
notice=(
"仅参考:Set身份、Comparer提供方/输出协议、Painter布局"
"/动态输入与mask命名、Save/Preview输出协议均有未决差异;"
"执行和转换关闭。"
),
user_overview=overview,
versions=[
f"{e['id']} {e['tag']} commit {e['commit']} tree {e['tree']};许可{e['license_file']}"
for e in {e["id"]: e for e in manifest}.values()
]
+ [
(
"旧59块2277位置+66注释冻结;local_file以docs/he"
"l-892/flux2-action-document-evidence"
"为基准。"
)
],
counts=dict(
saved_fields=43,
root_saved_fields=26,
internal_saved_fields=17,
linked_saved_fields=sum(f["role"] == "linked_saved_cache" for f in fields),
frontend_only=sum(f["role"] == "frontend_reference_only" for f in fields),
source_nodes=17,
root_nodes=11,
internal_nodes=6,
physical_edges=31,
source_notes=0,
history_objects=1,
final_scalars=0,
final_prompt_constructed=False,
),
fields=fields,
sources=sources,
comments=[],
flow=flow,
flow_evidence=list(range(len(sources))),
zero_saved_nodes=empty,
boundaries=boundaries,
steps=[
overview,
(
"阅读1:逐43位置核现值/JSON类型/完整提示与"
"历史列表;两图路径、模型和sdppp属性仅文本,不"
"访问媒体。"
),
(
"阅读2:宽高来自16,latent来自Painte"
"r;颜色匹配返回图仅进比较B,正式保存未匹配生成。"
"核准确版本冲突,勿据位置猜有效输入。"
),
(
"阅读3:保持停用/未检查/空时间戳,155最终定稿"
"与必要实跑未完成,审核后才发布;不连接目标、不构造"
"prompt或执行上游。"
),
],
)