326 lines
17 KiB
Plaintext
326 lines
17 KiB
Plaintext
E501 Line too long (192 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:17:101
|
||
|
|
||
15 | …
|
||
16 | …
|
||
17 | …,"proportional_height","fit","method","round_to_multiple","scale_to_side","scale_to_length","background_color"],
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | …
|
||
19 | …prefix"],
|
||
|
|
||
|
||
E501 Line too long (930 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:22:77
|
||
|
|
||
20 | …
|
||
21 | …
|
||
22 | … 保存值",control_after_generate="前端种子控制辅助",steps="采样步数",cfg="引导系数",sampler_name="采样器选择",scheduler="调度器原拼保存值",denoise="降噪系数",reference_latents_method="参考latent方法",prompt="完整编辑意图保存值",aspect_ratio="比例保存值(实现未知)",proportional_width="比例宽保存值",proportional_height="比例高保存值",fit="适配保存值(实现未知)",method="方法保存值(实现未知)",round_to_multiple="对齐保存字符串",scale_to_side="尺度侧保存值",scale_to_length="尺度长度保存值",background_color="背景颜色保存文本",kv_cache="参考KV缓存开关保存值",vae_name="VAE文件引用",image="输入图片文件名",upload="前端上传状态",filename_prefix="正式保存文件名前缀",comparison_history="完整比较历史列表(仅文本)",unet_name="扩散模型文件引用",weight_dtype="权重类型",lora_name="Anything2Real v3 LoRA引用",strength_model="LoRA模型强度")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
||
E501 Line too long (108 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:189:96
|
||
|
|
||
187 | + " 原输入/输出 "
|
||
188 | + json.dumps({k: n[k] for k in ["inputs", "outputs"]}, ensure_ascii=False),
|
||
189 | nid + " 原具名保存 " + json.dumps(n.get("widgets_values_named", "missing"), ensure_ascii=False),
|
||
| ^^^^^^^^
|
||
190 | ]
|
||
191 | if not n.get("widgets_values"):
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:198:101
|
||
|
|
||
196 | pointer=ptr,
|
||
197 | scope="root",
|
||
198 | state="missing" if "widgets_values" not in n else "null" if n["widgets_values"] is None else "empty_list",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
199 | effect=effect,
|
||
200 | )
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:217:67
|
||
|
|
||
215 | if key == "unknown":
|
||
216 | default = "未知:原图无提供方/版本,不能由具名键或相邻实现补默认"
|
||
217 | limits = "未知:九位置与具名保存逐项互证;声明输入不等于后端schema,不保证算法、尺寸、mask或背景行为"
|
||
| ^^^^^^^^^^^^^^^^^
|
||
218 | unit = "单位未知:无准确实现身份,仅保留原JSON类型与值"
|
||
219 | if name in ("seed","steps"):
|
||
|
|
||
|
||
E501 Line too long (114 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:225:82
|
||
|
|
||
223 | if name == "control_after_generate":
|
||
224 | default = "准确frontend1.23.0辅助默认randomize;不是后端seed默认"
|
||
225 | limits = "fixed/increment/decrement/randomize;前端种子辅助与保存具名键独立,不执行随机或认证恢复"
|
||
| ^^^^^^^^^^^^^
|
||
226 | if name == "upload":
|
||
227 | default = "前端上传状态,无独立后端upload默认"
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:228:86
|
||
|
|
||
226 | if name == "upload":
|
||
227 | default = "前端上传状态,无独立后端upload默认"
|
||
228 | limits = "准确frontend1.23.0 IMAGEUPLOAD与LiteGraph0.15.15序列化静态参考;不读取/上传素材,不认证具名插件恢复"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
229 | if name == "comparison_history":
|
||
230 | default = "未知:前端历史列表,无独立后端widget默认"
|
||
|
|
||
|
||
E501 Line too long (158 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:231:77
|
||
|
|
||
229 | …
|
||
230 | …默认"
|
||
231 | …images两完整对象分别保留;具名各多img:{},不强作相等;temp_rjutl历史URL仅文本,不GET /api/view"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
232 | … 位"
|
||
233 | …
|
||
|
|
||
|
||
E501 Line too long (116 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:234:85
|
||
|
|
||
232 | unit = "完整JSON列表/对象/布尔/URL文本,无物理单位"
|
||
233 | if cls == "CLIPLoader" and name == "type":
|
||
234 | limits += ";准确core0.25.0枚举不含krea2,load_clip有getattr fallback仍不证明支持;不借0.26.0填缺口"
|
||
| ^^^^^^^^^^^^^^^
|
||
235 | if cls == "KSampler" and name == "scheduler":
|
||
236 | limits += ";准确core0.25.0调度器表无原拼beta57;beta不是beta57,不修正原图或认证可执行"
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:236:78
|
||
|
|
||
234 | limits += ";准确core0.25.0枚举不含krea2,load_clip有getattr fallback仍不证明支持;不借0.26.0填缺口"
|
||
235 | if cls == "KSampler" and name == "scheduler":
|
||
236 | limits += ";准确core0.25.0调度器表无原拼beta57;beta不是beta57,不修正原图或认证可执行"
|
||
| ^^^
|
||
237 | if name == "kv_cache":
|
||
238 | limits += ";准确default False,保存True要求LoRA以对应kv_cache训练;不执行patch、预计算或缓存,不认证训练条件"
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:238:82
|
||
|
|
||
236 | limits += ";准确core0.25.0调度器表无原拼beta57;beta不是beta57,不修正原图或认证可执行"
|
||
237 | if name == "kv_cache":
|
||
238 | limits += ";准确default False,保存True要求LoRA以对应kv_cache训练;不执行patch、预计算或缓存,不认证训练条件"
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
239 | named_key = "rgthree_comparer" if name == "comparison_history" else name
|
||
240 | named = n.get("widgets_values_named", {})
|
||
|
|
||
|
||
E501 Line too long (188 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:275:83
|
||
|
|
||
273 | …
|
||
274 | …
|
||
275 | … json.dumps(named_value, ensure_ascii=False, indent=2) if canonical(named_value) != canonical(value) else ""),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
276 | …
|
||
277 | …
|
||
|
|
||
|
||
E501 Line too long (156 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/build_definition.py:311:76
|
||
|
|
||
309 | …
|
||
310 | …
|
||
311 | …图4612位置/146注释仅参考。local_file以docs/hel-892/krea-anything-document-evidence为基准。"],
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
312 | …
|
||
313 | …
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:23:101
|
||
|
|
||
21 | assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
22 | if e["id"] == "litegraph":
|
||
23 | front = next(x for x in rows if x["id"] == "frontend" and x["file"] == "package-lock.json")
|
||
| ^^^
|
||
24 | lock = json.loads((REF / front["local_file"]).read_bytes())
|
||
25 | assert lock["packages"]["node_modules/@comfyorg/litegraph"]["version"] == "0.15.15"
|
||
|
|
||
|
||
E501 Line too long (127 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:26:101
|
||
|
|
||
24 | … lock = json.loads((REF / front["local_file"]).read_bytes())
|
||
25 | … assert lock["packages"]["node_modules/@comfyorg/litegraph"]["version"] == "0.15.15"
|
||
26 | … assert lock["packages"]["node_modules/@comfyorg/litegraph"]["integrity"] == "sha512-" + e["artifact_sha512_base64"]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
27 | … checks.append(dict(id=e["id"],file=e["file"],sha256=e["sha256"],proof="exact lock and member SHA; reused original artifact diges…
|
||
28 | … continue
|
||
|
|
||
|
||
E501 Line too long (191 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:27:101
|
||
|
|
||
25 | …n"] == "0.15.15"
|
||
26 | …ity"] == "sha512-" + e["artifact_sha512_base64"]
|
||
27 | …of="exact lock and member SHA; reused original artifact digest, no Git claim",reverified_at=e["reverified_at"]))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
28 | …
|
||
29 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:80:47
|
||
|
|
||
78 | assert inv["extra"]["frontendVersion"] == "1.23.0" and inv["definition_boundary"] == []
|
||
79 | from build_definition import PATHS, REPO
|
||
80 | g=json.loads((REPO/PATHS[0]).read_bytes());nodes={n["id"]:n for n in g["nodes"]}
|
||
| ^
|
||
81 | assert all(n["mode"] == 0 for n in nodes.values()) and "definitions" not in g
|
||
82 | def pointer(p):
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:84:41
|
||
|
|
||
82 | def pointer(p):
|
||
83 | o=g
|
||
84 | for k in p.strip("/").split("/"):o=o[int(k)] if isinstance(o,list) else o[k]
|
||
| ^
|
||
85 | return o
|
||
86 | for a,b in zip(inv["fields"],block["fields"],strict=True):
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:90:32
|
||
|
|
||
88 | assert canonical(a["value"]) == canonical(b["value"])
|
||
89 | assert canonical(pointer(b["named_pointer"])) == canonical(b["named_value"])
|
||
90 | if b["node_id"] != "43":assert canonical(b["value"]) == canonical(b["named_value"])
|
||
| ^
|
||
91 | history=next(f for f in block["fields"] if f["node_id"] == "43")
|
||
92 | assert len(history["value"]) == len(history["named_value"]) == 2
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:93:101
|
||
|
|
||
91 | history=next(f for f in block["fields"] if f["node_id"] == "43")
|
||
92 | assert len(history["value"]) == len(history["named_value"]) == 2
|
||
93 | assert all(dict(a,img={}) == b for a,b in zip(history["value"],history["named_value"],strict=True))
|
||
| ^^^
|
||
94 | assert all("temp_rjutl" in h["url"] and h["selected"] is True for h in history["value"])
|
||
95 | for eid,a,ao,z,zi,_kind in g["links"]:
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:99:37
|
||
|
|
||
97 | edges={e[0]:e for e in g["links"]}
|
||
98 | expected={69:(2,0,33,0),70:(33,0,32,0),60:(32,0,7,0),79:(40,0,7,3),83:(39,0,41,0),84:(41,0,40,0),80:(39,0,34,2),81:(39,0,35,2),86…
|
||
99 | for eid,ends in expected.items():assert tuple(edges[eid][1:5]) == ends
|
||
| ^
|
||
100 | assert all("links" not in o for o in nodes[39]["outputs"][1:])
|
||
101 | assert "links" not in nodes[38]["outputs"][0] and nodes[38]["outputs"][1]["links"] == []
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:106:101
|
||
|
|
||
104 | assert nodes[34]["widgets_values"] == ["transform the image to realistic photograph"]
|
||
105 | assert nodes[35]["widgets_values"] == [""] and nodes[33]["widgets_values"] == [True]
|
||
106 | assert all(i.get("link") is None for nid in [34,35] for i in nodes[nid]["inputs"] if i["name"] in ["image2","image3"])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
107 | assert "cnr_id" not in nodes[39]["properties"] and "ver" not in nodes[39]["properties"]
|
||
108 | reg=json.loads((REF/"krea-registry.json").read_bytes())
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:110:101
|
||
|
|
||
108 | reg=json.loads((REF/"krea-registry.json").read_bytes())
|
||
109 | assert reg["id"] == "comfyui-krea2-ostris-edit" and reg["repository"] == "https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit"
|
||
110 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes()
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
111 | def classes(key,file):return {c.name:c for c in ast.parse(source(key,file)).body if isinstance(c,ast.ClassDef)}
|
||
112 | core=classes("core0250","nodes.py")
|
||
|
|
||
|
||
E501 Line too long (115 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:111:101
|
||
|
|
||
109 | assert reg["id"] == "comfyui-krea2-ostris-edit" and reg["repository"] == "https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit"
|
||
110 | def source(key,file):return (REF/next(e for e in rows if e["id"] == key and e["file"] == file)["local_file"]).read_bytes()
|
||
111 | def classes(key,file):return {c.name:c for c in ast.parse(source(key,file)).body if isinstance(c,ast.ClassDef)}
|
||
| ^^^^^^^^^^^^^^^
|
||
112 | core=classes("core0250","nodes.py")
|
||
113 | enums=[ast.literal_eval(c) for c in ast.walk(core["CLIPLoader"]) if isinstance(c,ast.List) and all(isinstance(x,ast.Constant) and…
|
||
|
|
||
|
||
E501 Line too long (175 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:113:101
|
||
|
|
||
111 | …,file)).body if isinstance(c,ast.ClassDef)}
|
||
112 | …
|
||
113 | …isinstance(c,ast.List) and all(isinstance(x,ast.Constant) and isinstance(x.value,str) for x in c.elts)]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
114 | …
|
||
115 | …
|
||
|
|
||
|
||
E501 Line too long (160 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:116:101
|
||
|
|
||
114 | …
|
||
115 | …
|
||
116 | …ast.Assign) and any(isinstance(t,ast.Name) and t.id == "SCHEDULER_HANDLERS" for t in c.targets))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
117 | …s.keys]
|
||
118 | …
|
||
|
|
||
|
||
E501 Line too long (146 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:119:101
|
||
|
|
||
117 | …handlers.keys]
|
||
118 | …
|
||
119 | …st.Assign) and any(isinstance(t,ast.Name) and t.id == "RETURN_TYPES" for t in c.targets))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
120 | …
|
||
121 | …"result" for c in ast.walk(save))
|
||
|
|
||
|
||
E501 Line too long (163 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:126:101
|
||
|
|
||
124 | …Def) and c.name == "patch")
|
||
125 | …
|
||
126 | …).decode() for cls in plugin if cls in ["Krea2OstrisEditModelPatch","TextEncodeKrea2OstrisEdit"])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
127 | …geComparer"]
|
||
128 | …
|
||
|
|
||
|
||
E501 Line too long (146 > 100)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:134:101
|
||
|
|
||
132 | …mps(block["node_bindings"],ensure_ascii=False,indent=2)+"\n")
|
||
133 | …files=checks,source_fields=33,source_notes=0,physical_edges=23,all_checks_pass=True,upstream_imported=False,save0283_has_image_resul…
|
||
134 | …uding one unknown, 33 dual positions, zero notes, 23 edges and preserved interface gaps")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
135 | …
|
||
136 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/krea-anything-document-evidence/verify_sources.py:136:26
|
||
|
|
||
134 | print("PASS exact source identities, 17 bindings including one unknown, 33 dual positions, zero notes, 23 edges and preserved int…
|
||
135 |
|
||
136 | if __name__ == "__main__":main()
|
||
| ^
|
||
|
||
Found 30 errors.
|