1491 lines
97 KiB
Plaintext
1491 lines
97 KiB
Plaintext
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:17:29
|
||
|
|
||
15 | OUT=REPO/'docs/hel-892/flux2-person-document-evidence'
|
||
16 | PATH='example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json'
|
||
17 | RAW=(REPO/PATH).read_bytes(); SOURCE=json.loads(RAW)
|
||
| ^
|
||
18 | REVIEW=review_for(PATH,hashlib.sha1(RAW).hexdigest()); BLOCK=REVIEW['fixed_version_document']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:18:54
|
||
|
|
||
16 | PATH='example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json'
|
||
17 | RAW=(REPO/PATH).read_bytes(); SOURCE=json.loads(RAW)
|
||
18 | REVIEW=review_for(PATH,hashlib.sha1(RAW).hexdigest()); BLOCK=REVIEW['fixed_version_document']
|
||
| ^
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:22:37
|
||
|
|
||
21 | def pointer(obj,p):
|
||
22 | for x in p.strip('/').split('/'):obj=obj[int(x)] if isinstance(obj,list) else obj[x]
|
||
| ^
|
||
23 | return obj
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:35:42
|
||
|
|
||
33 | assert '无widgets_values_named' in f['named_pointer'] and 'named_value' not in f
|
||
34 | assert all(f[k] for k in ['label','unit','limits','schema_default','effect','execution_note'])
|
||
35 | if f['input_pointer'].startswith('/'):assert pointer(SOURCE,f['input_pointer'])['name']==f['input_name']
|
||
| ^
|
||
36 | for i in f['evidence']:
|
||
37 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||
|
|
||
|
||
E501 Line too long (108 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:35:101
|
||
|
|
||
33 | assert '无widgets_values_named' in f['named_pointer'] and 'named_value' not in f
|
||
34 | assert all(f[k] for k in ['label','unit','limits','schema_default','effect','execution_note'])
|
||
35 | if f['input_pointer'].startswith('/'):assert pointer(SOURCE,f['input_pointer'])['name']==f['input_name']
|
||
| ^^^^^^^^
|
||
36 | for i in f['evidence']:
|
||
37 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:37:30
|
||
|
|
||
35 | if f['input_pointer'].startswith('/'):assert pointer(SOURCE,f['input_pointer'])['name']==f['input_name']
|
||
36 | for i in f['evidence']:
|
||
37 | e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||
| ^
|
||
38 | assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
39 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:46:23
|
||
|
|
||
44 | def test_caller_rehash_cannot_expand_trust(f,variant):
|
||
45 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
46 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
| ^
|
||
47 | else:
|
||
48 | p,_,key=f['pointer'].rpartition('/');pointer(s,p)[int(key)]='forged'
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:46:101
|
||
|
|
||
44 | def test_caller_rehash_cannot_expand_trust(f,variant):
|
||
45 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
|
||
46 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
| ^^^^^
|
||
47 | else:
|
||
48 | p,_,key=f['pointer'].rpartition('/');pointer(s,p)[int(key)]='forged'
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:48:45
|
||
|
|
||
46 | if variant=='text':r['fixed_version_document']['fields'][BLOCK['fields'].index(f)]['effect']='forged'
|
||
47 | else:
|
||
48 | p,_,key=f['pointer'].rpartition('/');pointer(s,p)[int(key)]='forged'
|
||
| ^
|
||
49 | r['fixed_version_document']['canonical_sha256']=hashlib.sha256(canonical(s)).hexdigest()
|
||
50 | assert not doc(s,r)['fixed_version']['matched']
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:69:8
|
||
|
|
||
67 | assert not doc()['status']['doc_done'] and not doc()['status']['exec_verified']
|
||
68 | sys.path.insert(0,str(OUT))
|
||
69 | try:runpy.run_path(str(OUT/'verify_sources.py'))['main']()
|
||
| ^
|
||
70 | finally:sys.path.remove(str(OUT))
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:70:12
|
||
|
|
||
68 | sys.path.insert(0,str(OUT))
|
||
69 | try:runpy.run_path(str(OUT/'verify_sources.py'))['main']()
|
||
70 | finally:sys.path.remove(str(OUT))
|
||
| ^
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:74:44
|
||
|
|
||
73 | def test_graph_specific_chains_and_protocol_conflict():
|
||
74 | ns={n['id']:n for n in SOURCE['nodes']};a,b=SOURCE['definitions']['subgraphs'];inner={n['id']:n for n in a['nodes']}
|
||
| ^
|
||
75 | assert ns[52]['widgets_values']==['original',1,1,'letterbox','lanczos','8','height',1280,'#000000']
|
||
76 | assert 'links' not in ns[69]['outputs'][1] and 'links' not in ns[70]['outputs'][1]
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:74:83
|
||
|
|
||
73 | def test_graph_specific_chains_and_protocol_conflict():
|
||
74 | ns={n['id']:n for n in SOURCE['nodes']};a,b=SOURCE['definitions']['subgraphs'];inner={n['id']:n for n in a['nodes']}
|
||
| ^
|
||
75 | assert ns[52]['widgets_values']==['original',1,1,'letterbox','lanczos','8','height',1280,'#000000']
|
||
76 | assert 'links' not in ns[69]['outputs'][1] and 'links' not in ns[70]['outputs'][1]
|
||
|
|
||
|
||
E501 Line too long (120 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:74:101
|
||
|
|
||
73 | def test_graph_specific_chains_and_protocol_conflict():
|
||
74 | ns={n['id']:n for n in SOURCE['nodes']};a,b=SOURCE['definitions']['subgraphs'];inner={n['id']:n for n in a['nodes']}
|
||
| ^^^^^^^^^^^^^^^^^^^^
|
||
75 | assert ns[52]['widgets_values']==['original',1,1,'letterbox','lanczos','8','height',1280,'#000000']
|
||
76 | assert 'links' not in ns[69]['outputs'][1] and 'links' not in ns[70]['outputs'][1]
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:75:101
|
||
|
|
||
73 | def test_graph_specific_chains_and_protocol_conflict():
|
||
74 | ns={n['id']:n for n in SOURCE['nodes']};a,b=SOURCE['definitions']['subgraphs'];inner={n['id']:n for n in a['nodes']}
|
||
75 | assert ns[52]['widgets_values']==['original',1,1,'letterbox','lanczos','8','height',1280,'#000000']
|
||
| ^^^
|
||
76 | assert 'links' not in ns[69]['outputs'][1] and 'links' not in ns[70]['outputs'][1]
|
||
77 | assert ns[52]['outputs'][3]['links']==ns[52]['outputs'][4]['links']==[]
|
||
|
|
||
|
||
E501 Line too long (128 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:81:74
|
||
|
|
||
79 | assert inner[107]['widgets_values']==['full_encoder_small_decoder.safetensors']
|
||
80 | assert inner[87]['properties']['ver']=='0.9.1' and inner[87]['widgets_values']==['']
|
||
81 | assert inner[113]['widgets_values']==['把图2的人物替换图1的人物,只替换人物及服装,同时保持图1场景、动作不变,场景光效一致']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
82 | assert inner[110]['widgets_values']==inner[85]['widgets_values']==['lanczos',1,1]
|
||
83 | assert inner[103]['outputs'][1]['links']==[]
|
||
|
|
||
|
||
E501 Line too long (106 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:85:101
|
||
|
|
||
83 | assert inner[103]['outputs'][1]['links']==[]
|
||
84 | assert ns[132]['outputs'][1]['links']==[]
|
||
85 | assert len(ns[131]['properties']['proxyWidgets'])==8 and len(ns[132]['properties']['proxyWidgets'])==1
|
||
| ^^^^^^
|
||
86 | assert len(ns[131]['inputs'])==6 and len(ns[132]['inputs'])==2
|
||
87 | edges={x['id']:x for x in a['links']}
|
||
|
|
||
|
||
E501 Line too long (165 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:88:101
|
||
|
|
||
86 | …
|
||
87 | …
|
||
88 | …(174,108,109),(200,126,127),(199,126,125),(209,127,130),(210,125,128),(208,129,130),(207,129,128)]:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
89 | …(src,dst)
|
||
90 | …oadBackgroundRemovalModel','InvertMask','JoinImageWithAlpha']
|
||
|
|
||
|
||
E501 Line too long (127 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:90:101
|
||
|
|
||
88 | for eid,src,dst in [(171,108,115),(172,108,109),(173,108,115),(174,108,109),(200,126,127),(199,126,125),(209,127,130),(210,125,128…
|
||
89 | assert (edges[eid]['origin_id'],edges[eid]['target_id'])==(src,dst)
|
||
90 | assert [n['type'] for n in b['nodes']]==['RemoveBackground','LoadBackgroundRemovalModel','InvertMask','JoinImageWithAlpha']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
91 | flow='\n'.join(BLOCK['flow'])
|
||
92 | for term in ['RETURN_TYPES=()','第一再第二','四尺寸覆盖','1.0-','不控制输出画布','无LoRA/Comparer/历史列表','881bc917','foreground…
|
||
|
|
||
|
||
E501 Line too long (137 > 100)
|
||
--> calliope-backend/tests/test_flux2_person_fixed_document.py:92:83
|
||
|
|
||
90 | …Background','LoadBackgroundRemovalModel','InvertMask','JoinImageWithAlpha']
|
||
91 | …
|
||
92 | … 寸覆盖','1.0-','不控制输出画布','无LoRA/Comparer/历史列表','881bc917','foreground']:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
93 | …
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:11:101
|
||
|
|
||
9 | def main():
|
||
10 | rows=json.loads((REF/"new-sources.json").read_bytes())["sources"]
|
||
11 | for stem, keys in [("flux2-img", {"core"}), ("flux2-clothing", {"negative"}), ("flux2", {"frontend"})]:
|
||
| ^^^^^^^
|
||
12 | origin=REF.parent/(stem+"-reference")
|
||
13 | for old in json.loads((origin/"sources.json").read_bytes())["sources"]:
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:14:37
|
||
|
|
||
12 | origin=REF.parent/(stem+"-reference")
|
||
13 | for old in json.loads((origin/"sources.json").read_bytes())["sources"]:
|
||
14 | if old["id"] not in keys: continue
|
||
| ^
|
||
15 | e=dict(old);e.setdefault("identity_root", ".");e.setdefault("identity_key",e["id"])
|
||
16 | for key in ["local_file","identity_root","license_file"]:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:15:24
|
||
|
|
||
13 | for old in json.loads((origin/"sources.json").read_bytes())["sources"]:
|
||
14 | if old["id"] not in keys: continue
|
||
15 | e=dict(old);e.setdefault("identity_root", ".");e.setdefault("identity_key",e["id"])
|
||
| ^
|
||
16 | for key in ["local_file","identity_root","license_file"]:
|
||
17 | e[key]=os.path.relpath((origin/e[key]).resolve(),REF)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:15:59
|
||
|
|
||
13 | for old in json.loads((origin/"sources.json").read_bytes())["sources"]:
|
||
14 | if old["id"] not in keys: continue
|
||
15 | e=dict(old);e.setdefault("identity_root", ".");e.setdefault("identity_key",e["id"])
|
||
| ^
|
||
16 | for key in ["local_file","identity_root","license_file"]:
|
||
17 | e[key]=os.path.relpath((origin/e[key]).resolve(),REF)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:20:43
|
||
|
|
||
18 | rows.append(e)
|
||
19 | for e in rows:
|
||
20 | e.setdefault("identity_root", ".");e.setdefault("identity_key",e["id"])
|
||
| ^
|
||
21 | e["tree"]=(REF/e["identity_root"]/(e["identity_key"]+"-commit.txt")).read_text().splitlines()[0].removeprefix("tree ")
|
||
22 | e["applicability"]="仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准…
|
||
|
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:21:101
|
||
|
|
||
19 | for e in rows:
|
||
20 | e.setdefault("identity_root", ".");e.setdefault("identity_key",e["id"])
|
||
21 | e["tree"]=(REF/e["identity_root"]/(e["identity_key"]+"-commit.txt")).read_text().splitlines()[0].removeprefix("tree ")
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
22 | e["applicability"]="仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准…
|
||
23 | assert hashlib.sha256((REF/e["local_file"]).read_bytes()).hexdigest()==e["sha256"]
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/bind_sources.py:25:24
|
||
|
|
||
23 | assert hashlib.sha256((REF/e["local_file"]).read_bytes()).hexdigest()==e["sha256"]
|
||
24 | (REF/"sources.json").write_text(json.dumps({"sources":rows,"upstream_executed":False},ensure_ascii=False,indent=2)+"\n")
|
||
25 | if __name__=="__main__":main()
|
||
| ^
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:20:83
|
||
|
|
||
19 | …
|
||
20 | …15→131.image第一参考。MASK出口缺links键,不是null或[],没有已接遮罩证据;不读取图片内容。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
21 | … 定义→220→131.image_1第二参考。MASK出口缺links键,不能据文件名判断人物内容或遮罩连接。",
|
||
22 | …e来自源aux仓库aining2022/ComfyUI_Swwan,不借89014d。保存original/1/1/letterbox/lanczos/字符串8/height/1280/#000000。original取首图宽…
|
||
|
|
||
|
||
E501 Line too long (147 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:21:82
|
||
|
|
||
19 | …
|
||
20 | …215→131.image第一参考。MASK出口缺links键,不是null或[],没有已接遮罩证据;不读取图片内容。",
|
||
21 | … 景定义→220→131.image_1第二参考。MASK出口缺links键,不能据文件名判断人物内容或遮罩连接。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
22 | …6ee来自源aux仓库aining2022/ComfyUI_Swwan,不借89014d。保存original/1/1/letterbox/lanczos/字符串8/height/1280/#000000。original取首图…
|
||
23 | … 源声明一个images IMAGE出口(缺links),准确core0.9.2 RETURN_TYPES=(),存在输出协议冲突,原样保留且转换/执行关闭。PNG output目录、递…
|
||
|
|
||
|
||
E501 Line too long (543 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:22:93
|
||
|
|
||
20 | …键,不是null或[],没有已接遮罩证据;不读取图片内容。",
|
||
21 | … 缺links键,不能据文件名判断人物内容或遮罩连接。",
|
||
22 | …n,不借89014d。保存original/1/1/letterbox/lanczos/字符串8/height/1280/#000000。original取首图宽高比;两ratio分支的height均令目标高=scale_to_length、宽=int(高×ratio),随后宽高各向上取整到8倍数。1/1仅custom分支使用。tensor2pil做clip/uint8,图像转RGB丢弃alpha;letterbox按比例缩放并居中贴到background_color RGB底,非遮罩合成。仅静态说明,不试算实际尺寸/比例/像素;mask输入缺link,mask出口缺links,宽slot3/高slot4均links=[]未接,不能直接覆盖调度器。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
23 | … 准确core0.9.2 RETURN_TYPES=(),存在输出协议冲突,原样保留且转换/执行关闭。PNG output目录、递增文件名和ui.images仅静态代码参考,未证明成功、实际路径/history或透明效果。",
|
||
24 | …
|
||
|
|
||
|
||
E501 Line too long (266 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:23:80
|
||
|
|
||
21 | … 缺links键,不能据文件名判断人物内容或遮罩连接。",
|
||
22 | …n,不借89014d。保存original/1/1/letterbox/lanczos/字符串8/height/1280/#000000。original取首图宽高比;两ratio分支的height均令目标高=scale_to_length、宽=int(高×ratio),随后宽高…
|
||
23 | … 准确core0.9.2 RETURN_TYPES=(),存在输出协议冲突,原样保留且转换/执行关闭。PNG output目录、递增文件名和ui.images仅静态代码参考,未证明成功、实际路径/history或透明效果。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
24 | …
|
||
25 | … 后辅助分列。宿主只有代理没有具名保存;不运行钩子/种子/状态/缓存,不计算下一值、不保证复现。",
|
||
|
|
||
|
||
E501 Line too long (191 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:25:86
|
||
|
|
||
23 | …E出口(缺links),准确core0.9.2 RETURN_TYPES=(),存在输出协议冲突,原样保留且转换/执行关闭。PNG output目录、递增文件名和ui.images仅…
|
||
24 | … 样器。",
|
||
25 | … 与前端1.36.14生成后辅助分列。宿主只有代理没有具名保存;不运行钩子/种子/状态/缓存,不计算下一值、不保证复现。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
26 | ….model,无LoRA。边界159来自宿主unet_name无外线;内部缓存与8代理分列。properties.models另写base模型名,不据文件名确认兼容、模型许可或…
|
||
27 | … 、204→126第一参考编码、212→129第二参考编码。准确0.8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不据名称认…
|
||
|
|
||
|
||
E501 Line too long (219 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:26:88
|
||
|
|
||
24 | …
|
||
25 | …4生成后辅助分列。宿主只有代理没有具名保存;不运行钩子/种子/状态/缓存,不计算下一值、不保证复现。",
|
||
26 | …。边界159来自宿主unet_name无外线;内部缓存与8代理分列。properties.models另写base模型名,不据文件名确认兼容、模型许可或安装。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
27 | … 考编码、212→129第二参考编码。准确0.8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不据名称认定家族、轻量效果…
|
||
28 | …idth、高slot1经174覆盖height;batch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。",
|
||
|
|
||
|
||
E501 Line too long (276 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:27:87
|
||
|
|
||
25 | … 后辅助分列。宿主只有代理没有具名保存;不运行钩子/种子/状态/缓存,不计算下一值、不保证复现。",
|
||
26 | … 界159来自宿主unet_name无外线;内部缓存与8代理分列。properties.models另写base模型名,不据文件名确认兼容、模型许可或安装。",
|
||
27 | … 编码、212→129第二参考编码。准确0.8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不据名称认定家族、轻量效果、兼容或已安装。宿主vae_name经161,无外线/保存。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
28 | …th、高slot1经174覆盖height;batch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。",
|
||
29 | …apixels为FLOAT默认1.0范围0.01~16步0.01,resolution_steps INT默认1范围1~256。total=megapixels×1024×1024;scale_by=sqrt(total/(宽×高));宽高分别round(原边×scale_by/resolution_steps)×res…
|
||
|
|
||
|
||
E501 Line too long (199 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:28:85
|
||
|
|
||
26 | …el,无LoRA。边界159来自宿主unet_name无外线;内部缓存与8代理分列。properties.models另写base模型名,不据文件名确认兼容、模型许可或安装…
|
||
27 | …04→126第一参考编码、212→129第二参考编码。准确0.8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不据名称认定家…
|
||
28 | …0经172覆盖width、高slot1经174覆盖height;batch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
29 | … 确0.8.2 megapixels为FLOAT默认1.0范围0.01~16步0.01,resolution_steps INT默认1范围1~256。total=megapixels×1024×1024;scale_by=sqrt(t…
|
||
30 | …nt1,准确0.8.2同110公式及FLOAT/default/通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或Alpha保留、比例…
|
||
|
|
||
|
||
E501 Line too long (492 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:29:89
|
||
|
|
||
27 | … 编码、212→129第二参考编码。准确0.8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不据名称认定家族、轻量效果、兼容或已安装。宿主vae_name经161,无外线/保存。",
|
||
28 | …dth、高slot1经174覆盖height;batch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。",
|
||
29 | …gapixels为FLOAT默认1.0范围0.01~16步0.01,resolution_steps INT默认1范围1~256。total=megapixels×1024×1024;scale_by=sqrt(total/(宽×高));宽高分别round(原边×scale_by/resolution_steps)×resolution_steps,再common_upscale crop=disabled。lanczos经PIL uint8、返回原device/dtype;无独立透明合成/去背景分支,通道能否被PIL处理依输入,不能保证精确百万像素、尺寸或比例。110同时→108读尺寸与126第一参考编码。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
30 | ….2同110公式及FLOAT/default/通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或Alpha保留、比例及精确像素数。",
|
||
31 | … core0.8.2 CLIP schema;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用,不证明dtype、设备、安装或兼容。",
|
||
|
|
||
|
||
E501 Line too long (230 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:30:85
|
||
|
|
||
28 | …dth、高slot1经174覆盖height;batch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。",
|
||
29 | …gapixels为FLOAT默认1.0范围0.01~16步0.01,resolution_steps INT默认1范围1~256。total=megapixels×1024×1024;scale_by=sqrt(total/(宽×高));宽…
|
||
30 | ….2同110公式及FLOAT/default/通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或Alpha保留、比例及精确像素数。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
31 | … core0.8.2 CLIP schema;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用,不证明dtype、设备、安装或兼容。",
|
||
32 | … 作不变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→114正向。宿主text经162无外线且保存[];作者意图不保证人物身份、服装、…
|
||
|
|
||
|
||
E501 Line too long (226 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:31:88
|
||
|
|
||
29 | …gapixels为FLOAT默认1.0范围0.01~16步0.01,resolution_steps INT默认1范围1~256。total=megapixels×1024×1024;scale_by=sqrt(total/(宽×高))…
|
||
30 | ….2同110公式及FLOAT/default/通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或Alpha保留、比例及精确像素数。",
|
||
31 | … core0.8.2 CLIP schema;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用,不证明dtype、设备、安装或兼容。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
32 | … 作不变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→114正向。宿主text经162无外线且保存[];作者意图不保证人物身份、服…
|
||
33 | …先追加126第一参考,再→128追加129第二参考→114负向;空串不等于无负向条件。",
|
||
|
|
||
|
||
E501 Line too long (268 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:32:61
|
||
|
|
||
30 | …2同110公式及FLOAT/default/通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或Alpha保留、比例及精确像素数。",
|
||
31 | … core0.8.2 CLIP schema;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用,不证明dtype、设备、安装或兼容。",
|
||
32 | … 作不变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→114正向。宿主text经162无外线且保存[];作者意图不保证人物身份、服装、场景光照/动作或未编辑像素一致。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
33 | … 追加126第一参考,再→128追加129第二参考→114负向;空串不等于无负向条件。",
|
||
34 | …28→103.guider;无LoRA/Comparer/历史列表,不制造这些参数。",
|
||
|
|
||
|
||
E501 Line too long (169 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:33:69
|
||
|
|
||
31 | …供113正向、189供87负向。准确core0.8.2 CLIP schema;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用,不证明dty…
|
||
32 | … 及服装,同时保持图1场景、动作不变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→114正向。宿主text经162无外线且保存[…
|
||
33 | …1,不继承宿主0.8.2。87→125先追加126第一参考,再→128追加129第二参考→114负向;空串不等于无负向条件。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
34 | … 直接来自106,正向130、负向128→103.guider;无LoRA/Comparer/历史列表,不制造这些参数。",
|
||
35 | … slot0经171覆盖width、高slot1经173覆盖height,同时覆盖109两处1024共四缓存。第二参考85不控制输出画布;不求sigmas或实际尺寸。",
|
||
|
|
||
|
||
E501 Line too long (156 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:34:81
|
||
|
|
||
32 | … 换人物及服装,同时保持图1场景、动作不变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→114正向。宿主text经162无外线…
|
||
33 | …ore0.9.1,不继承宿主0.8.2。87→125先追加126第一参考,再→128追加129第二参考→114负向;空串不等于无负向条件。",
|
||
34 | ….0,模型直接来自106,正向130、负向128→103.guider;无LoRA/Comparer/历史列表,不制造这些参数。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
35 | … 考实际宽slot0经171覆盖width、高slot1经173覆盖height,同时覆盖109两处1024共四缓存。第二参考85不控制输出画布;不求sigmas或实际尺寸。",
|
||
36 | …oadBackgroundRemovalModel定义/BackgroundRemovalExtension注册,非旧图0.19.3未知结论。动态background_removal目录文件列表排序,无显式默…
|
||
|
|
||
|
||
E501 Line too long (195 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:35:85
|
||
|
|
||
33 | ….8.2。87→125先追加126第一参考,再→128追加129第二参考→114负向;空串不等于无负向条件。",
|
||
34 | … 正向130、负向128→103.guider;无LoRA/Comparer/历史列表,不制造这些参数。",
|
||
35 | … 盖width、高slot1经173覆盖height,同时覆盖109两处1024共四缓存。第二参考85不控制输出画布;不求sigmas或实际尺寸。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
36 | …Model定义/BackgroundRemovalExtension注册,非旧图0.19.3未知结论。动态background_removal目录文件列表排序,无显式默认/固定成员;路径解…
|
||
37 | …
|
||
|
|
||
|
||
E501 Line too long (564 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:36:91
|
||
|
|
||
34 | … 128→103.guider;无LoRA/Comparer/历史列表,不制造这些参数。",
|
||
35 | …lot1经173覆盖height,同时覆盖109两处1024共四缓存。第二参考85不控制输出画布;不求sigmas或实际尺寸。",
|
||
36 | …kgroundRemovalExtension注册,非旧图0.19.3未知结论。动态background_removal目录文件列表排序,无显式默认/固定成员;路径解析后load、None时抛错。准确load先读state_dict,需含bb.layers.1.blocks.0.attn.relative_position_index才选择birefnet.json,否则None;内部模型构造/加载和encode_image GPU、预处理/逐批/插值/sigmoid仅静态代码,不执行或认定M极性。14→13背景模型;宿主bg_removal_name经边界12无外线/保存。仅静态读取源码,文件名不证明模型存在、兼容、许可、下载资格或去背景成功。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
37 | …
|
||
38 | …
|
||
|
|
||
|
||
E501 Line too long (128 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:41:77
|
||
|
|
||
39 | "133": "Label无提供方/版本,不因rgthree字样赋予身份或下载字体。",
|
||
40 | "134": "第二Label同样无身份,布局属性独立保留。",
|
||
41 | "131": "宿主widgets_values=[]与定义widgets=[]分开;8代理6输入,四模型/提示口无外线、image与image_1有外线,不造promoted值。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
42 | "132": "宿主widgets_values=[]与第二定义widgets=[]分开;1代理2输入,mask输出links=[]未接,不能把内部原MASK出口当主图已接遮罩。",
|
||
43 | "131:103": "109空latent采样起点;第一LATENT slot0经147→104解码;第二LATENT denoised_output links=[]未接,不冒充已取得去噪产物。",
|
||
|
|
||
|
||
E501 Line too long (131 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:42:78
|
||
|
|
||
40 | "134": "第二Label同样无身份,布局属性独立保留。",
|
||
41 | "131": "宿主widgets_values=[]与定义widgets=[]分开;8代理6输入,四模型/提示口无外线、image与image_1有外线,不造promoted值。",
|
||
42 | "132": "宿主widgets_values=[]与第二定义widgets=[]分开;1代理2输入,mask输出links=[]未接,不能把内部原MASK出口当主图已接遮罩。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
43 | "131:103": "109空latent采样起点;第一LATENT slot0经147→104解码;第二LATENT denoised_output links=[]未接,不冒充已取得去噪产物。",
|
||
44 | "131:104": "103第一LATENT与107.VAE→104解码,定义输出153→131→43正式保存,无预览比较支路。",
|
||
|
|
||
|
||
E501 Line too long (133 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:43:87
|
||
|
|
||
41 | "131": "宿主widgets_values=[]与定义widgets=[]分开;8代理6输入,四模型/提示口无外线、image与image_1有外线,不造promoted值。",
|
||
42 | "132": "宿主widgets_values=[]与第二定义widgets=[]分开;1代理2输入,mask输出links=[]未接,不能把内部原MASK出口当主图已接遮罩。",
|
||
43 | "131:103": "109空latent采样起点;第一LATENT slot0经147→104解码;第二LATENT denoised_output links=[]未接,不冒充已取得去噪产物。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
44 | "131:104": "103第一LATENT与107.VAE→104解码,定义输出153→131→43正式保存,无预览比较支路。",
|
||
45 | "131:108": "110第一参考→108 GetImageSize,准确0.8.2宽slot0/高slot1分别覆盖115与109四1024缓存;batch_size slot2 links=[]未接。",
|
||
|
|
||
|
||
E501 Line too long (131 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:45:83
|
||
|
|
||
43 | "131:103": "109空latent采样起点;第一LATENT slot0经147→104解码;第二LATENT denoised_output links=[]未接,不冒充已取得去噪产物。",
|
||
44 | "131:104": "103第一LATENT与107.VAE→104解码,定义输出153→131→43正式保存,无预览比较支路。",
|
||
45 | "131:108": "110第一参考→108 GetImageSize,准确0.8.2宽slot0/高slot1分别覆盖115与109四1024缓存;batch_size slot2 links=[]未接。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
46 | "131:126": "110第一图与107.VAE→126,200到127正向、199到125负向,分别先追加第一参考。",
|
||
47 | "131:129": "85第二图与107.VAE→129,208到130正向、207到128负向,分别再追加第二参考。",
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:48:85
|
||
|
|
||
46 | "131:126": "110第一图与107.VAE→126,200到127正向、199到125负向,分别先追加第一参考。",
|
||
47 | "131:129": "85第二图与107.VAE→129,208到130正向、207到128负向,分别再追加第二参考。",
|
||
48 | "131:127": "113正向先append126第一参考latent,再209→130;准确reference_latents原列表+[latent],非像素拼接。",
|
||
| ^^^^^^^^^^^^
|
||
49 | "131:125": "87空负向先append126第一参考latent,再210→128;负向同样有参考,不能省略。",
|
||
50 | "131:130": "127正向已有第一参考,再append129第二参考,213→114.positive;顺序第一再第二。",
|
||
|
|
||
|
||
E501 Line too long (266 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:52:91
|
||
|
|
||
50 | …
|
||
51 | …
|
||
52 | …ge)输出MASK;原69同时经边界5供13、7供16,不读取媒体。不从类名或schema的foreground文字推定运行M的前景/背景极性。13原MASK既经4→15也经11输出定义mask;主图132.mask=[]未接。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
53 | …,
|
||
54 | …:]),再1.0-,按max批次repeat,cat(image[..., :3],alpha.unsqueeze(-1))。15已反转一次,Join内部另反转;13原M与经15/16的Alpha链分开,不靠代数简化声称实际极性/透明成功。16经8输出I…
|
||
|
|
||
|
||
E501 Line too long (337 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:54:98
|
||
|
|
||
52 | …ge)输出MASK;原69同时经边界5供13、7供16,不读取媒体。不从类名或schema的foreground文字推定运行M的前景/背景极性。13原MASK既经4→15也经11输出定义mask;主图132.mask=[]未接。",
|
||
53 | …,
|
||
54 | …:]),再1.0-,按max批次repeat,cat(image[..., :3],alpha.unsqueeze(-1))。15已反转一次,Join内部另反转;13原M与经15/16的Alpha链分开,不靠代数简化声称实际极性/透明成功。16经8输出IMAGE→132→131第二参考;不保证通道/批次/透明效果或未编辑像素不变。",
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
55 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:59:41
|
||
|
|
||
58 | def build(index=0):
|
||
59 | raw=(REPO/PATHS[index]).read_bytes(); g=json.loads(raw)
|
||
| ^
|
||
60 | manifest=json.loads((REF/'sources.json').read_bytes())['sources']
|
||
61 | sources=[]
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:64:48
|
||
|
|
||
62 | def cite(key,file,symbol=None,span=None,claim='本图准确版本静态参考'):
|
||
63 | e=next(e for e in manifest if e['id']==key and e['file']==file)
|
||
64 | data=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(data).hexdigest()==e['sha256']
|
||
| ^
|
||
65 | if symbol:
|
||
66 | node=next(n for n in ast.walk(ast.parse(data)) if isinstance(n,(ast.ClassDef,ast.FunctionDef,ast.AsyncFunctionDef)) and n.…
|
||
|
|
||
|
||
E501 Line too long (101 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:64:101
|
||
|
|
||
62 | def cite(key,file,symbol=None,span=None,claim='本图准确版本静态参考'):
|
||
63 | e=next(e for e in manifest if e['id']==key and e['file']==file)
|
||
64 | data=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(data).hexdigest()==e['sha256']
|
||
| ^
|
||
65 | if symbol:
|
||
66 | node=next(n for n in ast.walk(ast.parse(data)) if isinstance(n,(ast.ClassDef,ast.FunctionDef,ast.AsyncFunctionDef)) and n.…
|
||
|
|
||
|
||
E501 Line too long (147 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:66:101
|
||
|
|
||
64 | …ashlib.sha256(data).hexdigest()==e['sha256']
|
||
65 | …
|
||
66 | …) if isinstance(n,(ast.ClassDef,ast.FunctionDef,ast.AsyncFunctionDef)) and n.name==symbol)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
67 | …
|
||
68 | …
|
||
|
|
||
|
||
E501 Line too long (568 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:72:101
|
||
|
|
||
70 | …
|
||
71 | …
|
||
72 | …s.py'),('CLIPLoader','nodes.py'),('VAEEncode','nod…Latent','comfy_extras/nodes_edit_model.py')]:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
73 | …
|
||
74 | …
|
||
|
|
||
|
||
E501 Line too long (132 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:78:101
|
||
|
|
||
76 | …'comfy_extras/nodes_post_processing.py','ImageScaleToTotalPixels'),cite('scale','comfy/utils.py','lanczos'),cite('scale','comfy/utils…
|
||
77 | …as/nodes_images.py','GetImageSize')]
|
||
78 | …']=[cite('layer','image_scale_by_aspect_ratio_v2.py','ImageScaleByAspectRatioV2')]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
79 | …o_multiple','tensor2pil','pil2tensor']:
|
||
80 | …o V2'].append(cite('layer','layerstyle_utils.py',sym))
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:80:101
|
||
|
|
||
78 | refs['LayerUtility: ImageScaleByAspectRatio V2']=[cite('layer','image_scale_by_aspect_ratio_v2.py','ImageScaleByAspectRatioV2')]
|
||
79 | for sym in ['fit_resize_image','num_round_up_to_multiple','tensor2pil','pil2tensor']:
|
||
80 | refs['LayerUtility: ImageScaleByAspectRatio V2'].append(cite('layer','layerstyle_utils.py',sym))
|
||
| ^^^^
|
||
81 | for cls,file in [('LoadBackgroundRemovalModel','nodes_bg_removal.py'),('RemoveBackground','nodes_bg_removal.py'),('InvertMask','no…
|
||
82 | refs[cls]=[cite('background','comfy_extras/'+file,cls)]
|
||
|
|
||
|
||
E501 Line too long (195 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:81:101
|
||
|
|
||
79 | …ensor']:
|
||
80 | …erstyle_utils.py',sym))
|
||
81 | …eBackground','nodes_bg_removal.py'),('InvertMask','nodes_mask.py'),('JoinImageWithAlpha','nodes_compositing.py')]:
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
82 | …
|
||
83 | …ion')
|
||
|
|
||
|
||
E501 Line too long (134 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:88:99
|
||
|
|
||
86 | cite('background','nodes.py',span=[2375,2516],claim='准确0.28.3额外节点加载/注册范围,绑定本图背景定义')
|
||
87 | cite('layer','__init__.py',span=[1,58],claim='aux仓库准确完整提交的模块导入/节点映射,非仅同名')
|
||
88 | cite('frontsub','src/lib/litegraph/src/subgraph/SubgraphNode.ts',span=[226,340],claim='准确1.36.14 configure边界及连接widget恢复')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
89 | cite('frontsub','src/lib/litegraph/src/subgraph/SubgraphNode.ts',span=[606,631],claim='准确1.36.14 serialize先同步相连widget')
|
||
90 | cite('frontend','src/lib/litegraph/src/LGraphNode.ts',span=[778,929],claim='父configure/serialize_widgets/serialize=false条件')
|
||
|
|
||
|
||
E501 Line too long (130 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:89:99
|
||
|
|
||
87 | cite('layer','__init__.py',span=[1,58],claim='aux仓库准确完整提交的模块导入/节点映射,非仅同名')
|
||
88 | cite('frontsub','src/lib/litegraph/src/subgraph/SubgraphNode.ts',span=[226,340],claim='准确1.36.14 configure边界及连接widget恢复')
|
||
89 | cite('frontsub','src/lib/litegraph/src/subgraph/SubgraphNode.ts',span=[606,631],claim='准确1.36.14 serialize先同步相连widget')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
90 | cite('frontend','src/lib/litegraph/src/LGraphNode.ts',span=[778,929],claim='父configure/serialize_widgets/serialize=false条件')
|
||
91 | cite('frontend','src/scripts/widgets.ts',span=[53,281],claim='生成后辅助控制与randomize初始值,仅读不运行')
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:101:69
|
||
|
|
||
99 | common={}
|
||
100 | for r in reviews.values():
|
||
101 | for f in r.get('fixed_version_document',{}).get('fields',[]): common[f['class_type'],f['field']]=f
|
||
| ^
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
|
|
||
|
||
E501 Line too long (106 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:101:101
|
||
|
|
||
99 | common={}
|
||
100 | for r in reviews.values():
|
||
101 | for f in r.get('fixed_version_document',{}).get('fields',[]): common[f['class_type'],f['field']]=f
|
||
| ^^^^^^
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
|
|
||
|
||
E501 Line too long (735 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:102:101
|
||
|
|
||
100 | …
|
||
101 | …'field']]=f
|
||
102 | …caleByAspectRatio V2':['aspect_ratio','proportion…BackgroundRemovalModel':['bg_removal_name']}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
103 | …
|
||
104 | …itions']['subgraphs'])]
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:103:14
|
||
|
|
||
101 | for f in r.get('fixed_version_document',{}).get('fields',[]): common[f['class_type'],f['field']]=f
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
| ^
|
||
104 | scopes=[('',g,None)]+[(f'/definitions/subgraphs/{i}',s,131+i) for i,s in enumerate(g['definitions']['subgraphs'])]
|
||
105 | for prefix,graph,host in scopes:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:103:23
|
||
|
|
||
101 | for f in r.get('fixed_version_document',{}).get('fields',[]): common[f['class_type'],f['field']]=f
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
| ^
|
||
104 | scopes=[('',g,None)]+[(f'/definitions/subgraphs/{i}',s,131+i) for i,s in enumerate(g['definitions']['subgraphs'])]
|
||
105 | for prefix,graph,host in scopes:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:103:37
|
||
|
|
||
101 | for f in r.get('fixed_version_document',{}).get('fields',[]): common[f['class_type'],f['field']]=f
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
| ^
|
||
104 | scopes=[('',g,None)]+[(f'/definitions/subgraphs/{i}',s,131+i) for i,s in enumerate(g['definitions']['subgraphs'])]
|
||
105 | for prefix,graph,host in scopes:
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:104:101
|
||
|
|
||
102 | names={'LoadImage':['image','upload'],'SaveImage':['filename_prefix'],'LayerUtility: ImageScaleByAspectRatio V2':['aspect_ratio',…
|
||
103 | fields=[];empty=[];boundaries=[];flow=[]
|
||
104 | scopes=[('',g,None)]+[(f'/definitions/subgraphs/{i}',s,131+i) for i,s in enumerate(g['definitions']['subgraphs'])]
|
||
| ^^^^^^^^^^^^^^^^^^
|
||
105 | for prefix,graph,host in scopes:
|
||
106 | for i,n in enumerate(graph['nodes']):
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:107:38
|
||
|
|
||
105 | for prefix,graph,host in scopes:
|
||
106 | for i,n in enumerate(graph['nodes']):
|
||
107 | ptr=f'{prefix}/nodes/{i}';display=str(n['id']) if host is None else f'{host}:{n["id"]}'
|
||
| ^
|
||
108 | effect=MEANING.get(display,EMPTY.get(display));assert effect,display
|
||
109 | flow.append(effect)
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:108:59
|
||
|
|
||
106 | for i,n in enumerate(graph['nodes']):
|
||
107 | ptr=f'{prefix}/nodes/{i}';display=str(n['id']) if host is None else f'{host}:{n["id"]}'
|
||
108 | effect=MEANING.get(display,EMPTY.get(display));assert effect,display
|
||
| ^
|
||
109 | flow.append(effect)
|
||
110 | flow.append(f'{display} 独立源属性 '+json.dumps(n.get('properties',{}),ensure_ascii=False))
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:110:96
|
||
|
|
||
108 | effect=MEANING.get(display,EMPTY.get(display));assert effect,display
|
||
109 | flow.append(effect)
|
||
110 | flow.append(f'{display} 独立源属性 '+json.dumps(n.get('properties',{}),ensure_ascii=False))
|
||
| ^^^
|
||
111 | if not n.get('widgets_values'):
|
||
112 | state='missing' if 'widgets_values' not in n else 'empty_list'
|
||
|
|
||
|
||
E501 Line too long (224 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:113:101
|
||
|
|
||
111 | …
|
||
112 | …
|
||
113 | … or 'root',state=state,effect=('源缺widgets_values键;' if state=='missing' else '源widgets_values=[]零位置;')+effect));continue
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
114 | …
|
||
115 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:113:207
|
||
|
|
||
111 | …
|
||
112 | …
|
||
113 | … if state=='missing' else '源widgets_values=[]零位置;')+effect));continue
|
||
| ^
|
||
114 | …
|
||
115 | …
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:116:101
|
||
|
|
||
114 | … for j,(name,v) in enumerate(zip(names[n['type']],n['widgets_values'],strict=True)):
|
||
115 | … previous=common.get((n['type'],name),{})
|
||
116 | … f={k:copy.deepcopy(previous[k]) for k in ['label','unit','schema_default','limits'] if k in previous}
|
||
| ^^^^^^^^^^^^^^^^^
|
||
117 | … inp=next((k for k,x in enumerate(n.get('inputs',[])) if x['name']==name),None)
|
||
118 | … aux=name in ['upload','control_after_generate'];linked=not aux and inp is not None and n['inputs'][inp].get('link') is not …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:118:64
|
||
|
|
||
116 | … f={k:copy.deepcopy(previous[k]) for k in ['label','unit','schema_default','limits'] if k in previous}
|
||
117 | … inp=next((k for k,x in enumerate(n.get('inputs',[])) if x['name']==name),None)
|
||
118 | … aux=name in ['upload','control_after_generate'];linked=not aux and inp is not None and n['inputs'][inp].get('link') is not None
|
||
| ^
|
||
119 | … evidence=refs[n['type']]
|
||
120 | … if display=='131:87': evidence=[negative]
|
||
|
|
||
|
||
E501 Line too long (143 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:118:101
|
||
|
|
||
116 | … ['label','unit','schema_default','limits'] if k in previous}
|
||
117 | …inputs',[])) if x['name']==name),None)
|
||
118 | …erate'];linked=not aux and inp is not None and n['inputs'][inp].get('link') is not None
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
119 | …
|
||
120 | …]
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:120:37
|
||
|
|
||
118 | … aux=name in ['upload','control_after_generate'];linked=not aux and inp is not None and n['inputs'][inp].get('link') is not None
|
||
119 | … evidence=refs[n['type']]
|
||
120 | … if display=='131:87': evidence=[negative]
|
||
| ^
|
||
121 | … if display=='132:14':f.update(label='背景移除模型引用',schema_default='无显式default;动态排序文件列表',limits='background_remo…
|
||
122 | … f.update(node_id=display,definition_node_id=str(n['id']),scope=prefix or 'root',class_type=n['type'],field=name,pointer=f'{ptr}…
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:121:37
|
||
|
|
||
119 | … evidence=refs[n['type']]
|
||
120 | … if display=='131:87': evidence=[negative]
|
||
121 | … if display=='132:14':f.update(label='背景移除模型引用',schema_default='无显式default;动态排序文件列表',limits='background_remo…
|
||
| ^
|
||
122 | … f.update(node_id=display,definition_node_id=str(n['id']),scope=prefix or 'root',class_type=n['type'],field=name,pointer=f'{ptr}…
|
||
123 | … if n['type']=='LayerUtility: ImageScaleByAspectRatio V2':
|
||
|
|
||
|
||
E501 Line too long (226 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:121:90
|
||
|
|
||
119 | …
|
||
120 | …
|
||
121 | …fault;动态排序文件列表',limits='background_removal动态成员,路径解析/load及None报错条件;模型/素材/许可/安装未知',unit='模型引用')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
122 | …,class_type=n['type'],field=name,pointer=f'{ptr}/widgets_values/{j}',value=v,json_type=type(v).__name__,named_pointer='源无widgets_value…
|
||
123 | …
|
||
|
|
||
|
||
E501 Line too long (757 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:122:101
|
||
|
|
||
120 | …
|
||
121 | …fault;动态排序文件列表',limits='background_removal动态成员,路径解析/load及None报错条件;模型/素材/许可/安装未知',unit='模型引用')
|
||
122 | …,class_type=n['type'],field=name,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',effect=effect,evidence=evidence,execution_note='准确默认、源JSON现值、外线覆盖和宿主代理分列;目标安装/许可/目录/恢复/模型素材兼容与效果未知,保持停用,不新增转换或执行资格。')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
123 | …
|
||
124 | …81bc917 aux仓库参考,cnr提供方差异保留')
|
||
|
|
||
|
||
E501 Line too long (135 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:124:85
|
||
|
|
||
122 | … f.update(node_id=display,definition_node_id=str(n['id']),scope=prefix or 'root',class_type=n['type'],field=name,pointer=f'{ptr}…
|
||
123 | … if n['type']=='LayerUtility: ImageScaleByAspectRatio V2':
|
||
124 | … f['limits']=f['limits'].replace(';仅89014d参考假设,源版本未知',';仅准确881bc917 aux仓库参考,cnr提供方差异保留')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
125 | … if name=='scale_to_length':f['unit']='像素INT(当前height;total_pixel分支另为千像素)'
|
||
126 | … if display=='131:105' and name=='noise_seed':f['schema_default']='0'
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:125:47
|
||
|
|
||
123 | … if n['type']=='LayerUtility: ImageScaleByAspectRatio V2':
|
||
124 | … f['limits']=f['limits'].replace(';仅89014d参考假设,源版本未知',';仅准确881bc917 aux仓库参考,cnr提供方差异保留')
|
||
125 | … if name=='scale_to_length':f['unit']='像素INT(当前height;total_pixel分支另为千像素)'
|
||
| ^
|
||
126 | … if display=='131:105' and name=='noise_seed':f['schema_default']='0'
|
||
127 | … if display=='131:105' and name=='control_after_generate':
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:125:90
|
||
|
|
||
123 | … if n['type']=='LayerUtility: ImageScaleByAspectRatio V2':
|
||
124 | … f['limits']=f['limits'].replace(';仅89014d参考假设,源版本未知',';仅准确881bc917 aux仓库参考,cnr提供方差异保留')
|
||
125 | … if name=='scale_to_length':f['unit']='像素INT(当前height;total_pixel分支另为千像素)'
|
||
| ^^^^^^^
|
||
126 | … if display=='131:105' and name=='noise_seed':f['schema_default']='0'
|
||
127 | … if display=='131:105' and name=='control_after_generate':
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:126:61
|
||
|
|
||
124 | … f['limits']=f['limits'].replace(';仅89014d参考假设,源版本未知',';仅准确881bc917 aux仓库参考,cnr提供方差异保留')
|
||
125 | … if name=='scale_to_length':f['unit']='像素INT(当前height;total_pixel分支另为千像素)'
|
||
126 | … if display=='131:105' and name=='noise_seed':f['schema_default']='0'
|
||
| ^
|
||
127 | … if display=='131:105' and name=='control_after_generate':
|
||
128 | … f['limits']='准确frontend1.36.14 fixed/increment/decrement/randomize,仅前端辅助,不运行钩子或计算种子'
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:128:93
|
||
|
|
||
126 | … if display=='131:105' and name=='noise_seed':f['schema_default']='0'
|
||
127 | … if display=='131:105' and name=='control_after_generate':
|
||
128 | … f['limits']='准确frontend1.36.14 fixed/increment/decrement/randomize,仅前端辅助,不运行钩子或计算种子'
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
129 | … if n['type']=='CLIPTextEncode':
|
||
130 | … f.update(label='完整中文正向缓存' if display=='131:113' else '空串负向缓存',schema_default='无显式default;保存文本不冒充…
|
||
|
|
||
|
||
E501 Line too long (310 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:130:87
|
||
|
|
||
128 | … 辅助,不运行钩子或计算种子'
|
||
129 | …
|
||
130 | …,schema_default='无显式default;保存文本不冒充默认',limits=('准确core0.8.2 STRING multiline/dynamicPrompts' if display=='131:113' else '准确core0.9.1 STRING multiline=True')+';只读原文,不执行指令',unit='编码文本')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
131 | …
|
||
132 | …i=False) for e in graph['links'])
|
||
|
|
||
|
||
E501 Line too long (128 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:132:94
|
||
|
|
||
130 | … f.update(label='完整中文正向缓存' if display=='131:113' else '空串负向缓存',schema_default='无显式default;保存文…
|
||
131 | … fields.append(f)
|
||
132 | … flow.extend(('根物理边 ' if not prefix else prefix+' 物理边 ')+json.dumps(e,ensure_ascii=False) for e in graph['links'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
133 | … if prefix:
|
||
134 | … h=next(n for n in g['nodes'] if n['id']==host)
|
||
|
|
||
|
||
E501 Line too long (134 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:135:101
|
||
|
|
||
133 | …
|
||
134 | …==host)
|
||
135 | …k:graph[k] for k in ['id','inputNode','outputNode','inputs','outputs','widgets']}))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
136 | …nodes/{g["nodes"].index(h)}',host_saved=h['widgets_values'],proxyWidgets=h['properties']['proxyWidgets'],inputs=h['inputs'],effect=f…
|
||
137 | …t' for f in fields)==14
|
||
|
|
||
|
||
E501 Line too long (701 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:140:72
|
||
|
|
||
138 | … 放,第二图先去背景,两参考依次加入正负条件,再从空latent生成并正式保存。人物、服装与场景保持只是作者意图,实际效果尚未验证。'
|
||
139 | … 义24+第二定义1=39标量,无Note/具名保存;两个Label缺键、两个空宿主和内部[]及定义widgets=[]分开。')
|
||
140 | …parer/历史列表,不制造这些字段。', '原件cnr_id为comfyui_layerstyle但aux_id为aining2022/ComfyUI_Swwan;完整881bc917对象仅在aux仓库取得,LayerStyle仓库精确提交获取失败,身份差异保留,不以同名等同提供方。','前端准确1.36.14、锁文件与同树代码仅绑定本图;SubgraphNode.configure恢复边界/相连widget、serialize前同步与serialize_widgets/serialize=false条件仅静态说明;8/1代理不证明保存或目标恢复。UE7.5.2/7.7/7.8和tab实现未知,不模拟回填。','常见问题:52宽高出口未接;实际四尺寸覆盖源自110→108,第二图不控制画布。43输出声明与准确0.9.2冲突,保留并关闭;MASK缺键、空列表、反转及Alpha链不能视为已证明透明或局部编辑。'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
141 | …
|
||
142 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='仅参考:目标安装/恢复、模型/素材/许可与实际人物迁移效果未核;43输出协议冲突保留,停用且转换关闭。',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()]+['旧58块2238位置+66注释逐对象冻结;local_file以docs/hel-892/flux2-person-document-evidence为基准。'],counts=dict(saved_fields=39,root_saved_fields=14,internal_saved_fields=25,linked_saved_fields=sum(f['role']=='linked_saved_cache' for f in fi…
|
||
|
|
||
|
||
E501 Line too long (1473 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/build_definition.py:142:101
|
||
|
|
||
140 | …parer/历史列表,不制造这些字段。', '原件cnr_id为comfyui_layerstyle但aux_id为aining2022/ComfyUI_Swwan;完整881bc917对象仅在aux仓库取得,LayerStyle仓库精确提交获取失败,身份差异保留,不以同名等同提供方。','前端准确1.36.14、锁文件与同树代码仅绑定本图;SubgraphNode.configure恢复边界/相连widget、serialize前同步与serialize_widgets/serialize=false条件仅静态说明;8/1代理不证明保存或目标恢复。UE7.5.2/7.7/7.8和tab实现未知,不模拟回填。','常见问题:52宽高出口未接;实际四尺寸覆盖源自110→108,第二图不控制画布。43输出声明与准确0.9.2冲突,保留并关闭;MASK缺键、空列表、反转及Alpha链不能视为已证明透明或局部编辑。'])
|
||
141 | …
|
||
142 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),notice='仅参考:目标安装/恢复、模型/素材/许可与实际人物迁移效果未核;43输出协议冲突保留,停用且转换关闭。',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()]+['旧58块2238位置+66注释逐对象冻结;local_file以docs/hel-892/flux2-person-document-evidence为基准。'],counts=dict(saved_fields=39,root_saved_fields=14,internal_saved_fields=25,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=33,root_nodes=8,internal_nodes=25,physical_edges=49,source_notes=0,history_objects=0,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:核对39位置原值/类型、完整正向与空负向、模型异名、两个独立子图及代理;仅读文本,不打开媒体/链接。','阅读2:第一图尺寸覆盖四缓存、正负分别先第一再第二参考、空latent起点、背景模型/Invert/Join双反转链与正式保存;不试算尺寸或推定M极性。','阅读3:保持停用、未检查和空时间戳;155完整定稿及必要实跑未完成,全量审核后才发布;不构造prompt、不执行上游/模型/种子/GPU/媒体,不连接目标或下载。'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
||
E501 Line too long (126 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/fetch_sources.py:17:101
|
||
|
|
||
15 | rows = []
|
||
16 | specs = [
|
||
17 | ("frontsub", "Comfy-Org/ComfyUI_frontend", "v1.36.14", ["src/lib/litegraph/src/subgraph/SubgraphNode.ts", "LICENSE"]),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | ("save", "Comfy-Org/ComfyUI", "v0.9.2", ["nodes.py", "folder_paths.py", "LICENSE"]),
|
||
19 | ("background", "Comfy-Org/ComfyUI", "v0.28.3", ["nodes.py", "comfy_extras/nodes_mask.py", "comfy_extras/nodes_bg_removal.py", …
|
||
|
|
||
|
||
E501 Line too long (272 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/fetch_sources.py:19:101
|
||
|
|
||
17 | …/SubgraphNode.ts", "LICENSE"]),
|
||
18 | …
|
||
19 | …", "comfy_extras/nodes_bg_removal.py", "comfy/bg_removal_model.py", "folder_paths.py", "comfy_extras/nodes_compositing.py", "comfy_extras/nodes_post_processing.py", "LICENSE"]),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
20 | …/nodes_post_processing.py", "comfy/utils.py", "LICENSE"]),
|
||
21 | …ge_scale_by_aspect_ratio_v2.py", "layerstyle_utils.py", "__init__.py", "LICENSE"]),
|
||
|
|
||
|
||
E501 Line too long (153 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/fetch_sources.py:20:101
|
||
|
|
||
18 | … "folder_paths.py", "LICENSE"]),
|
||
19 | …es.py", "comfy_extras/nodes_mask.py", "comfy_extras/nodes_bg_removal.py", "comfy/bg_removal_model.py", "folder_paths.py", "comfy_extr…
|
||
20 | …ras/nodes_images.py", "comfy_extras/nodes_post_processing.py", "comfy/utils.py", "LICENSE"]),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
21 | …b907d3d28e5b91b295b9aef06ee", ["image_scale_by_aspect_ratio_v2.py", "layerstyle_utils.py", "__init__.py", "LICENSE"]),
|
||
22 | …
|
||
|
|
||
|
||
E501 Line too long (178 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/fetch_sources.py:21:101
|
||
|
|
||
19 | …y_extras/nodes_mask.py", "comfy_extras/nodes_bg_removal.py", "comfy/bg_removal_model.py", "folder_paths.py", "comfy_extras/nodes_comp…
|
||
20 | …ges.py", "comfy_extras/nodes_post_processing.py", "comfy/utils.py", "LICENSE"]),
|
||
21 | …1b295b9aef06ee", ["image_scale_by_aspect_ratio_v2.py", "layerstyle_utils.py", "__init__.py", "LICENSE"]),
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
22 | …
|
||
23 | …
|
||
|
|
||
|
||
E501 Line too long (106 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/fetch_sources.py:95:101
|
||
|
|
||
93 | )
|
||
94 | (REF / (key + "-absent.json")).write_text(json.dumps(missing, indent=2) + "\n")
|
||
95 | (REF / "new-sources.json").write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+"\n")
|
||
| ^^^^^^
|
||
96 |
|
||
97 | if __name__ == "__main__":
|
||
|
|
||
|
||
E501 Line too long (148 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/inventory.py:74:101
|
||
|
|
||
72 | …
|
||
73 | …2]],
|
||
74 | …Node","outputNode","inputs","outputs","widgets"]} for s in g["definitions"]["subgraphs"]],
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
75 | …
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:10:18
|
||
|
|
||
9 | def main():
|
||
10 | block=build(); rows=json.loads((REF/'sources.json').read_bytes())['sources']; checks=[]
|
||
| ^
|
||
11 | for e in rows:
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:10:81
|
||
|
|
||
9 | def main():
|
||
10 | block=build(); rows=json.loads((REF/'sources.json').read_bytes())['sources']; checks=[]
|
||
| ^
|
||
11 | for e in rows:
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:12:47
|
||
|
|
||
10 | block=build(); rows=json.loads((REF/'sources.json').read_bytes())['sources']; checks=[]
|
||
11 | for e in rows:
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
| ^
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:13:81
|
||
|
|
||
11 | for e in rows:
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
| ^
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:13:101
|
||
|
|
||
11 | for e in rows:
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
| ^^^^^^^^^^^^^
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:14:36
|
||
|
|
||
12 | raw=(REF/e['local_file']).read_bytes(); assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
| ^
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
16 | assert next(t['sha'] for t in tree['tree'] if t['path']==e['file'])==blob
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:15:64
|
||
|
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
| ^
|
||
16 | assert next(t['sha'] for t in tree['tree'] if t['path']==e['file'])==blob
|
||
17 | c=(root/(key+'-commit.txt')).read_bytes();assert hashlib.sha1(b'commit '+str(len(c)).encode()+b'\0'+c).hexdigest()==e['commit']
|
||
|
|
||
|
||
E501 Line too long (119 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:15:101
|
||
|
|
||
13 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==e['git_blob_sha1']
|
||
14 | root=REF/e['identity_root'];key=e['identity_key']
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
| ^^^^^^^^^^^^^^^^^^^
|
||
16 | assert next(t['sha'] for t in tree['tree'] if t['path']==e['file'])==blob
|
||
17 | c=(root/(key+'-commit.txt')).read_bytes();assert hashlib.sha1(b'commit '+str(len(c)).encode()+b'\0'+c).hexdigest()==e['commit']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:17:50
|
||
|
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
16 | assert next(t['sha'] for t in tree['tree'] if t['path']==e['file'])==blob
|
||
17 | c=(root/(key+'-commit.txt')).read_bytes();assert hashlib.sha1(b'commit '+str(len(c)).encode()+b'\0'+c).hexdigest()==e['commit']
|
||
| ^
|
||
18 | assert c.decode().splitlines()[0]=='tree '+e['tree']
|
||
19 | tag=json.loads((root/(key+'-tag.json')).read_bytes()); assert tag['commit']==e['commit']
|
||
|
|
||
|
||
E501 Line too long (135 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:17:101
|
||
|
|
||
15 | tree=json.loads((root/(key+'-tree.json')).read_bytes());assert tree['sha']==e['tree'] and not tree['truncated']
|
||
16 | assert next(t['sha'] for t in tree['tree'] if t['path']==e['file'])==blob
|
||
17 | c=(root/(key+'-commit.txt')).read_bytes();assert hashlib.sha1(b'commit '+str(len(c)).encode()+b'\0'+c).hexdigest()==e['commit']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | assert c.decode().splitlines()[0]=='tree '+e['tree']
|
||
19 | tag=json.loads((root/(key+'-tag.json')).read_bytes()); assert tag['commit']==e['commit']
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:19:62
|
||
|
|
||
17 | c=(root/(key+'-commit.txt')).read_bytes();assert hashlib.sha1(b'commit '+str(len(c)).encode()+b'\0'+c).hexdigest()==e['commit']
|
||
18 | assert c.decode().splitlines()[0]=='tree '+e['tree']
|
||
19 | tag=json.loads((root/(key+'-tag.json')).read_bytes()); assert tag['commit']==e['commit']
|
||
| ^
|
||
20 | t=(root/(key+'-tag.txt')).read_bytes()
|
||
21 | if tag['object']!=e['commit']:
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:24:13
|
||
|
|
||
22 | assert hashlib.sha1(b'tag '+str(len(t)).encode()+b'\0'+t).hexdigest()==tag['object']
|
||
23 | assert t.decode().startswith('object '+e['commit']+'\n')
|
||
24 | else: assert t==c
|
||
| ^
|
||
25 | lic=next(x for x in rows if x['id']==e['id'] and x['file']=='LICENSE')
|
||
26 | assert hashlib.sha256((REF/e['license_file']).read_bytes()).hexdigest()==lic['sha256']
|
||
|
|
||
|
||
E501 Line too long (217 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:27:101
|
||
|
|
||
25 | …
|
||
26 | …']
|
||
27 | …ree=e['tree'],proof='raw commit/tag + tree identity + selected blob; full tree not rehashed',license_file=e['license_file']))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
28 | …for s in inv['scopes']]==[5,36,8]
|
||
29 | …t(s['modes'])=={0} for s in inv['scopes'])
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:28:20
|
||
|
|
||
26 | assert hashlib.sha256((REF/e['license_file']).read_bytes()).hexdigest()==lic['sha256']
|
||
27 | checks.append(dict(id=e['id'],file=e['file'],sha256=e['sha256'],commit=e['commit'],tree=e['tree'],proof='raw commit/tag + tree…
|
||
28 | inv=inventory();assert [s['nodes'] for s in inv['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
| ^
|
||
29 | assert len(inv['fields'])==39 and not inv['notes'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:28:73
|
||
|
|
||
26 | assert hashlib.sha256((REF/e['license_file']).read_bytes()).hexdigest()==lic['sha256']
|
||
27 | checks.append(dict(id=e['id'],file=e['file'],sha256=e['sha256'],commit=e['commit'],tree=e['tree'],proof='raw commit/tag + tree…
|
||
28 | inv=inventory();assert [s['nodes'] for s in inv['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
| ^
|
||
29 | assert len(inv['fields'])==39 and not inv['notes'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:28:101
|
||
|
|
||
26 | assert hashlib.sha256((REF/e['license_file']).read_bytes()).hexdigest()==lic['sha256']
|
||
27 | checks.append(dict(id=e['id'],file=e['file'],sha256=e['sha256'],commit=e['commit'],tree=e['tree'],proof='raw commit/tag + tree…
|
||
28 | inv=inventory();assert [s['nodes'] for s in inv['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
29 | assert len(inv['fields'])==39 and not inv['notes'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:29:55
|
||
|
|
||
27 | checks.append(dict(id=e['id'],file=e['file'],sha256=e['sha256'],commit=e['commit'],tree=e['tree'],proof='raw commit/tag + tree…
|
||
28 | inv=inventory();assert [s['nodes'] for s in inv['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
29 | assert len(inv['fields'])==39 and not inv['notes'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
| ^
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
31 | for e in block['sources']:
|
||
|
|
||
|
||
E501 Line too long (134 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:29:101
|
||
|
|
||
27 | …],sha256=e['sha256'],commit=e['commit'],tree=e['tree'],proof='raw commit/tag + tree identity + selected blob; full tree not rehashed'…
|
||
28 | …['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
29 | …s'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
30 | …rict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'],f['json_type'],canonical(f['value']))
|
||
31 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:30:62
|
||
|
|
||
28 | inv=inventory();assert [s['nodes'] for s in inv['scopes']]==[8,21,4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
29 | assert len(inv['fields'])==39 and not inv['notes'];assert all(s['named_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
| ^
|
||
31 | for e in block['sources']:
|
||
32 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines']…
|
||
|
|
||
|
||
E501 Line too long (173 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:30:101
|
||
|
|
||
28 | …4];assert [s['edges'] for s in inv['scopes']]==[5,36,8]
|
||
29 | …amed_nodes']==0 and set(s['modes'])=={0} for s in inv['scopes'])
|
||
30 | …a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'],f['json_type'],canonical(f['value']))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
31 | …
|
||
32 | …aw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:32:47
|
||
|
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
31 | for e in block['sources']:
|
||
32 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines']…
|
||
| ^
|
||
33 | g=json.loads((REPO/PATHS[0]).read_bytes());endpoints=[]
|
||
34 | for scope,graph in [('root',g)]+[(str(i),s) for i,s in enumerate(g['definitions']['subgraphs'])]:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:32:99
|
||
|
|
||
30 | for a,f in zip(inv['fields'],block['fields'],strict=True):assert (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'…
|
||
31 | for e in block['sources']:
|
||
32 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines']…
|
||
| ^
|
||
33 | g=json.loads((REPO/PATHS[0]).read_bytes());endpoints=[]
|
||
34 | for scope,graph in [('root',g)]+[(str(i),s) for i,s in enumerate(g['definitions']['subgraphs'])]:
|
||
|
|
||
|
||
E501 Line too long (169 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:32:101
|
||
|
|
||
30 | … (a['pointer'],a['json_type'],canonical(a['value']))==(f['pointer'],f['json_type'],canonical(f['value']))
|
||
31 | …
|
||
32 | …(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
33 | …
|
||
34 | …(g['definitions']['subgraphs'])]:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:33:47
|
||
|
|
||
31 | for e in block['sources']:
|
||
32 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines']…
|
||
33 | g=json.loads((REPO/PATHS[0]).read_bytes());endpoints=[]
|
||
| ^
|
||
34 | for scope,graph in [('root',g)]+[(str(i),s) for i,s in enumerate(g['definitions']['subgraphs'])]:
|
||
35 | ns={n['id']:n for n in graph['nodes']};ids=[]
|
||
|
|
||
|
||
E501 Line too long (101 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:34:101
|
||
|
|
||
32 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'];assert 1<=e['lines'][0]<=e['lines']…
|
||
33 | g=json.loads((REPO/PATHS[0]).read_bytes());endpoints=[]
|
||
34 | for scope,graph in [('root',g)]+[(str(i),s) for i,s in enumerate(g['definitions']['subgraphs'])]:
|
||
| ^
|
||
35 | ns={n['id']:n for n in graph['nodes']};ids=[]
|
||
36 | for original in graph['links']:
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:35:47
|
||
|
|
||
33 | g=json.loads((REPO/PATHS[0]).read_bytes());endpoints=[]
|
||
34 | for scope,graph in [('root',g)]+[(str(i),s) for i,s in enumerate(g['definitions']['subgraphs'])]:
|
||
35 | ns={n['id']:n for n in graph['nodes']};ids=[]
|
||
| ^
|
||
36 | for original in graph['links']:
|
||
37 | eid,a,ao,z,zi,kind=original if scope=='root' else [original[k] for k in ['id','origin_id','origin_slot','target_id','targe…
|
||
|
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:37:101
|
||
|
|
||
35 | …
|
||
36 | …
|
||
37 | …se [original[k] for k in ['id','origin_id','origin_slot','target_id','target_slot','type']]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
38 | …==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns[z]['inputs'][zi]
|
||
39 | …links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:38:28
|
||
|
|
||
36 | … for original in graph['links']:
|
||
37 | … eid,a,ao,z,zi,kind=original if scope=='root' else [original[k] for k in ['id','origin_id','origin_slot','target_id','target_…
|
||
38 | … ids.append(eid);source=graph['inputs'][ao] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns…
|
||
| ^
|
||
39 | … assert eid in source.get('linkIds',source.get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
40 | … assert source['type']=='*' or kind in source['type'].split(',');assert target['type']=='*' or kind in target['type'].split('…
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:38:91
|
||
|
|
||
36 | … for original in graph['links']:
|
||
37 | … eid,a,ao,z,zi,kind=original if scope=='root' else [original[k] for k in ['id','origin_id','origin_slot','target_id','target_…
|
||
38 | … ids.append(eid);source=graph['inputs'][ao] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns…
|
||
| ^
|
||
39 | … assert eid in source.get('linkIds',source.get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
40 | … assert source['type']=='*' or kind in source['type'].split(',');assert target['type']=='*' or kind in target['type'].split('…
|
||
|
|
||
|
||
E501 Line too long (153 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:38:101
|
||
|
|
||
36 | …
|
||
37 | …e [original[k] for k in ['id','origin_id','origin_slot','target_id','target_slot','type']]
|
||
38 | …=-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns[z]['inputs'][zi]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
39 | …inks',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
40 | …pe'].split(',');assert target['type']=='*' or kind in target['type'].split(',')
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:39:71
|
||
|
|
||
37 | … eid,a,ao,z,zi,kind=original if scope=='root' else [original[k] for k in ['id','origin_id','origin_slot','target_id','target_slot…
|
||
38 | … ids.append(eid);source=graph['inputs'][ao] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns[z][…
|
||
39 | … assert eid in source.get('linkIds',source.get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
| ^
|
||
40 | … assert source['type']=='*' or kind in source['type'].split(',');assert target['type']=='*' or kind in target['type'].split(',')
|
||
41 | … endpoints.append(dict(scope=scope,edge=original,source_backref=True,target_backref=True))
|
||
|
|
||
|
||
E501 Line too long (137 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:39:101
|
||
|
|
||
37 | …oot' else [original[k] for k in ['id','origin_id','origin_slot','target_id','target_slot','type']]
|
||
38 | …o] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns[z]['inputs'][zi]
|
||
39 | …e.get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
40 | …urce['type'].split(',');assert target['type']=='*' or kind in target['type'].split(',')
|
||
41 | …riginal,source_backref=True,target_backref=True))
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:40:76
|
||
|
|
||
38 | … ids.append(eid);source=graph['inputs'][ao] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns…
|
||
39 | … assert eid in source.get('linkIds',source.get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
40 | … assert source['type']=='*' or kind in source['type'].split(',');assert target['type']=='*' or kind in target['type'].split('…
|
||
| ^
|
||
41 | … endpoints.append(dict(scope=scope,edge=original,source_backref=True,target_backref=True))
|
||
42 | … assert len(ids)==len(set(ids))
|
||
|
|
||
|
||
E501 Line too long (139 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:40:101
|
||
|
|
||
38 | …] if a==-10 else ns[a]['outputs'][ao];target=graph['outputs'][zi] if z==-20 else ns[z]['inputs'][zi]
|
||
39 | ….get('links',[]));assert eid in target['linkIds'] if z==-20 else target['link']==eid
|
||
40 | …rce['type'].split(',');assert target['type']=='*' or kind in target['type'].split(',')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
41 | …iginal,source_backref=True,target_backref=True))
|
||
42 | …
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:44:43
|
||
|
|
||
42 | assert len(ids)==len(set(ids))
|
||
43 | for n in graph['nodes']:
|
||
44 | for slot in n.get('inputs',[]):assert slot.get('link') is None or slot['link'] in ids
|
||
| ^
|
||
45 | for slot in n.get('outputs',[]):assert all(x in ids for x in slot.get('links') or [])
|
||
46 | if scope!='root':
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:45:44
|
||
|
|
||
43 | for n in graph['nodes']:
|
||
44 | for slot in n.get('inputs',[]):assert slot.get('link') is None or slot['link'] in ids
|
||
45 | for slot in n.get('outputs',[]):assert all(x in ids for x in slot.get('links') or [])
|
||
| ^
|
||
46 | if scope!='root':
|
||
47 | for b in graph['inputs']+graph['outputs']: assert all(x in ids for x in b['linkIds'])
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:47:54
|
||
|
|
||
45 | for slot in n.get('outputs',[]):assert all(x in ids for x in slot.get('links') or [])
|
||
46 | if scope!='root':
|
||
47 | for b in graph['inputs']+graph['outputs']: assert all(x in ids for x in b['linkIds'])
|
||
| ^
|
||
48 | for host,sub,np,ni in [(131,g['definitions']['subgraphs'][0],8,6),(132,g['definitions']['subgraphs'][1],1,2)]:
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
|
|
||
|
||
E501 Line too long (114 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:48:101
|
||
|
|
||
46 | if scope!='root':
|
||
47 | for b in graph['inputs']+graph['outputs']: assert all(x in ids for x in b['linkIds'])
|
||
48 | for host,sub,np,ni in [(131,g['definitions']['subgraphs'][0],8,6),(132,g['definitions']['subgraphs'][1],1,2)]:
|
||
| ^^^^^^^^^^^^^^
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
50 | assert h['widgets_values']==sub['widgets']==[]
|
||
|
|
||
|
||
E702 Multiple statements on one line (semicolon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:49:55
|
||
|
|
||
47 | for b in graph['inputs']+graph['outputs']: assert all(x in ids for x in b['linkIds'])
|
||
48 | for host,sub,np,ni in [(131,g['definitions']['subgraphs'][0],8,6),(132,g['definitions']['subgraphs'][1],1,2)]:
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
| ^
|
||
50 | assert h['widgets_values']==sub['widgets']==[]
|
||
51 | for outer,b in zip(h['inputs'],sub['inputs'],strict=True):assert (outer['name'],outer['type'])==(b['name'],b['type'])
|
||
|
|
||
|
||
E501 Line too long (127 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:49:101
|
||
|
|
||
47 | for b in graph['inputs']+graph['outputs']: assert all(x in ids for x in b['linkIds'])
|
||
48 | for host,sub,np,ni in [(131,g['definitions']['subgraphs'][0],8,6),(132,g['definitions']['subgraphs'][1],1,2)]:
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
50 | assert h['widgets_values']==sub['widgets']==[]
|
||
51 | for outer,b in zip(h['inputs'],sub['inputs'],strict=True):assert (outer['name'],outer['type'])==(b['name'],b['type'])
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:51:66
|
||
|
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
50 | assert h['widgets_values']==sub['widgets']==[]
|
||
51 | for outer,b in zip(h['inputs'],sub['inputs'],strict=True):assert (outer['name'],outer['type'])==(b['name'],b['type'])
|
||
| ^
|
||
52 | (OUT/'source-check.json').write_text(json.dumps(dict(sources=checks,endpoints=endpoints,inventory_matched=True,upstream_executed=F…
|
||
53 | print('PASS exact sources, 49 bidirectional physical edges, 39 positions, two definitions')
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:51:101
|
||
|
|
||
49 | h=next(n for n in g['nodes'] if n['id']==host);assert len(h['properties']['proxyWidgets'])==np and len(h['inputs'])==ni
|
||
50 | assert h['widgets_values']==sub['widgets']==[]
|
||
51 | for outer,b in zip(h['inputs'],sub['inputs'],strict=True):assert (outer['name'],outer['type'])==(b['name'],b['type'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
52 | (OUT/'source-check.json').write_text(json.dumps(dict(sources=checks,endpoints=endpoints,inventory_matched=True,upstream_executed=F…
|
||
53 | print('PASS exact sources, 49 bidirectional physical edges, 39 positions, two definitions')
|
||
|
|
||
|
||
E701 Multiple statements on one line (colon)
|
||
--> docs/hel-892/flux2-person-document-evidence/verify_sources.py:55:24
|
||
|
|
||
53 | print('PASS exact sources, 49 bidirectional physical edges, 39 positions, two definitions')
|
||
54 |
|
||
55 | if __name__=='__main__':main()
|
||
| ^
|
||
|
||
Found 143 errors (5 fixed, 138 remaining).
|