HEL-892: document four image resize comparison branches with fixed evidence
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json"
|
||||
): "b57b68e11c6a7347947d3547c85c0e26fa174a07174d39835710bf22a953fe78",
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,230 @@
|
||||
"""Interpolation comparison source identity, inactive lengths and fail-closed bindings."""
|
||||
|
||||
import ast
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/resize-compare-document-evidence"
|
||||
PATH = next(p for p in DEFINITIONS if p.endswith("/图像放大比较.json"))
|
||||
SOURCE = json.loads((REPO / PATH).read_bytes())
|
||||
REVIEW = review_for(PATH, hashlib.sha1((REPO / PATH).read_bytes()).hexdigest())
|
||||
BLOCK = REVIEW["fixed_version_document"]
|
||||
|
||||
|
||||
def pointer(obj, path):
|
||||
for part in path.strip("/").split("/"):
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(source=SOURCE, review=REVIEW):
|
||||
return build_document(PATH, source, None, None, [], review)
|
||||
|
||||
|
||||
def refuse(s, r):
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
|
||||
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
|
||||
assert f["scope"] == "root" and "named_value" not in f and "named_pointer" not in f
|
||||
for key in [
|
||||
"effect",
|
||||
"label",
|
||||
"schema_default",
|
||||
"unit",
|
||||
"limits",
|
||||
"execution_note",
|
||||
"role",
|
||||
"type",
|
||||
]:
|
||||
assert f[key]
|
||||
for i in f["evidence"]:
|
||||
e = BLOCK["sources"][i]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
@pytest.mark.parametrize("variant", ["value", "text"])
|
||||
def test_each_position_or_description_forgery_refused(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "text":
|
||||
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
|
||||
else:
|
||||
parent, _, key = f["pointer"].rpartition("/")
|
||||
pointer(s, parent)[int(key)] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("i", range(17))
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity"])
|
||||
def test_each_node_state_and_identity_is_bound(i, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "mode":
|
||||
s["nodes"][i]["mode"] = 2
|
||||
else:
|
||||
s["nodes"][i]["properties"]["ver"] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("i", range(20))
|
||||
@pytest.mark.parametrize("variant", ["record", "input", "output"])
|
||||
def test_all_physical_endpoints_bound(i, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
eid, src, slot, dst, inp, _ = s["links"][i]
|
||||
ns = {n["id"]: n for n in s["nodes"]}
|
||||
if variant == "record":
|
||||
s["links"][i][3] = 99999
|
||||
elif variant == "input":
|
||||
ns[dst]["inputs"][inp]["link"] = 99999
|
||||
else:
|
||||
ns[src]["outputs"][slot]["links"] = []
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
[
|
||||
"named",
|
||||
"frontend",
|
||||
"mask",
|
||||
"ue",
|
||||
"empty_preview",
|
||||
"missing",
|
||||
"empty",
|
||||
"path",
|
||||
"source_sha",
|
||||
"citation",
|
||||
"overview",
|
||||
],
|
||||
)
|
||||
def test_special_boundaries_cannot_be_retrusted(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
ns = {n["id"]: n for n in s["nodes"]}
|
||||
b = r["fixed_version_document"]
|
||||
if variant == "named":
|
||||
ns[2]["widgets_values_named"] = {"width": 480}
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "1.45.20"
|
||||
elif variant == "mask":
|
||||
ns[2]["outputs"].pop()
|
||||
elif variant == "ue":
|
||||
ns[2]["properties"]["ue_properties"]["version"] = "7.8"
|
||||
elif variant == "empty_preview":
|
||||
ns[3]["widgets_values"] = None
|
||||
elif variant in ["missing", "empty"]:
|
||||
r["fixed_version_document"] = {} if variant == "empty" else None
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
return
|
||||
elif variant == "path":
|
||||
b["source_path"] = "wrong"
|
||||
elif variant == "source_sha":
|
||||
r["source_sha"] = "wrong"
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "wrong"
|
||||
else:
|
||||
b["user_overview"] = "wrong"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
def test_independent_inventory_links_overrides_and_zero_nodes():
|
||||
assert doc()["fixed_version"]["matched"]
|
||||
assert len(SOURCE["nodes"]) == 17 and len(SOURCE["links"]) == 20 and "definitions" not in SOURCE
|
||||
expected = [
|
||||
f"/nodes/{i}/widgets_values/{j}"
|
||||
for i, n in enumerate(SOURCE["nodes"])
|
||||
for j in range(len(n["widgets_values"]))
|
||||
]
|
||||
assert expected == [f["pointer"] for f in BLOCK["fields"]] and len(expected) == 35
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
for eid, src, slot, dst, inp, typ in SOURCE["links"]:
|
||||
assert ns[dst]["inputs"][inp]["link"] == eid
|
||||
assert eid in ns[src]["outputs"][slot]["links"]
|
||||
assert ns[src]["outputs"][slot]["type"] == typ or typ == "*"
|
||||
assert [
|
||||
(e[1], e[3], ns[e[3]]["inputs"][e[4]]["name"]) for e in SOURCE["links"] if e[1] in [11, 12]
|
||||
] == [
|
||||
(11, 2, "width"),
|
||||
(12, 2, "height"),
|
||||
(12, 4, "height"),
|
||||
(12, 5, "scale_by_length"),
|
||||
(12, 7, "scale_to_length"),
|
||||
(11, 4, "width"),
|
||||
]
|
||||
assert [n["node_id"] for n in BLOCK["zero_saved_nodes"]] == ["3", "8", "9", "10"]
|
||||
assert sum(f["value"] == "" for f in BLOCK["fields"]) == 6 and not BLOCK["comments"]
|
||||
assert all(n["mode"] == 0 and "widgets_values_named" not in n for n in SOURCE["nodes"])
|
||||
assert ns[1]["outputs"][1]["links"] is None
|
||||
|
||||
|
||||
def test_precise_static_branch_conditions_and_interface_conflict_without_execution():
|
||||
ref = OUT.parent / "resize-compare-reference"
|
||||
kj = (ref / "kj__nodes__image_nodes.py").read_text()
|
||||
tree = ast.parse(kj)
|
||||
node = next(x for x in tree.body if isinstance(x, ast.ClassDef) and x.name == "ImageResizeKJv2")
|
||||
return_types = next(
|
||||
x.value
|
||||
for x in node.body
|
||||
if isinstance(x, ast.Assign)
|
||||
and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in x.targets)
|
||||
)
|
||||
assert ast.literal_eval(return_types) == ("IMAGE", "INT", "INT")
|
||||
resize = next(x for x in node.body if isinstance(x, ast.FunctionDef) and x.name == "resize")
|
||||
assert "mask" not in [x.arg for x in resize.args.args]
|
||||
assert "width = width - (width % divisible_by)" in kj
|
||||
restore = (ref / "layer__py__image_scale_restore_v2.py").read_text()
|
||||
assert "if original_size is not None:" in restore and "if scale_by == 'longest':" in restore
|
||||
assert (
|
||||
"target_width = int(orig_width * scale)" in restore
|
||||
and "if scale_by == 'by_scale':" not in restore
|
||||
)
|
||||
aspect = (ref / "layer__py__image_scale_by_aspect_ratio_v2.py").read_text()
|
||||
assert "elif scale_to_side == 'total_pixel(kilo pixel)':" in aspect
|
||||
assert "target_width = orig_width" in aspect and "if round_to_multiple != 'None':" in aspect
|
||||
preview = (ref / "core__nodes.py").read_text()
|
||||
assert "RETURN_TYPES = ()" in preview and "class PreviewImage(SaveImage)" in preview
|
||||
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
|
||||
assert fields["5", "scale"]["json_type"] == "int" and fields["5", "scale"]["type"] == "FLOAT"
|
||||
assert fields["7", "round_to_multiple"]["value"] == "8"
|
||||
assert all(
|
||||
"不" in fields[n, k]["effect"]
|
||||
for n, k in [("5", "scale_by_length"), ("7", "scale_to_length")]
|
||||
)
|
||||
|
||||
|
||||
def test_old_33_blocks_and_all_other_reviews_frozen():
|
||||
p = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "ce9502a:" + p], cwd=REPO))
|
||||
now = json.loads((REPO / p).read_bytes())
|
||||
now[PATH].pop("fixed_version_document")
|
||||
assert now == old and len(DEFINITIONS) == 34
|
||||
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
|
||||
assert (
|
||||
len(blocks) == 33
|
||||
and sum(len(b["fields"]) for b in blocks) == 1034
|
||||
and sum(
|
||||
len(
|
||||
build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], r)[
|
||||
"source_notes"
|
||||
]
|
||||
)
|
||||
for p, r in old.items()
|
||||
if "fixed_version_document" in r
|
||||
)
|
||||
== 25
|
||||
)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"total": 155,
|
||||
"audit_scope": "current_delivery",
|
||||
"source_files": 156,
|
||||
"target_files": 155,
|
||||
"user_excluded": 1,
|
||||
"source_structure_purpose_partially_reviewed": 155,
|
||||
"full_documents_completed": 0,
|
||||
"files_with_selected_named_fields_reviewed": 41,
|
||||
"selected_named_fields_reviewed": 1217,
|
||||
"real_executions": 0,
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"named_values_preserved": 1217,
|
||||
"unnamed_widget_nodes": 3660,
|
||||
"semantic_batch_files": 139,
|
||||
"semantic_batch_without_named_fields": 114,
|
||||
"semantic_batch_named_fields": 490,
|
||||
"named_values_without_manual_field_review": 0,
|
||||
"named_values_without_verified_units_ranges_effects": 1217,
|
||||
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS authored staged diff whitespace; exact upstream raw bytes retained including CRLF.
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"files": [
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
|
||||
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
|
||||
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
|
||||
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
|
||||
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
|
||||
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
|
||||
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
|
||||
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
|
||||
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
|
||||
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
|
||||
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
|
||||
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
|
||||
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
|
||||
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
|
||||
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
|
||||
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
|
||||
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
|
||||
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
|
||||
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
|
||||
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
|
||||
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
|
||||
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
|
||||
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
|
||||
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
|
||||
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
|
||||
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
|
||||
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
|
||||
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
|
||||
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
|
||||
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
|
||||
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
|
||||
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
|
||||
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
|
||||
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
|
||||
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
|
||||
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
|
||||
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
|
||||
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
|
||||
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
|
||||
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
|
||||
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
|
||||
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
|
||||
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
|
||||
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
|
||||
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
|
||||
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
|
||||
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
|
||||
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
|
||||
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
|
||||
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
|
||||
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
|
||||
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
|
||||
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
|
||||
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
|
||||
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
|
||||
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
|
||||
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
|
||||
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
|
||||
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
|
||||
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
|
||||
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
|
||||
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
|
||||
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
|
||||
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
|
||||
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
|
||||
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
|
||||
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
|
||||
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
|
||||
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
|
||||
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
|
||||
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
|
||||
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
|
||||
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
|
||||
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
|
||||
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
|
||||
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
|
||||
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
|
||||
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
|
||||
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
|
||||
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
|
||||
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
|
||||
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
|
||||
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
|
||||
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
|
||||
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
|
||||
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
|
||||
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
|
||||
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
|
||||
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
|
||||
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
|
||||
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
|
||||
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
|
||||
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
|
||||
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
|
||||
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
|
||||
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
|
||||
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
|
||||
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
|
||||
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
|
||||
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
|
||||
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
|
||||
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
|
||||
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
|
||||
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
|
||||
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
|
||||
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
|
||||
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
|
||||
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
|
||||
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
|
||||
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
|
||||
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
|
||||
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
|
||||
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
|
||||
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
|
||||
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
|
||||
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
|
||||
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
|
||||
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
|
||||
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
|
||||
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
|
||||
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
|
||||
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
|
||||
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
|
||||
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
|
||||
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
|
||||
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
|
||||
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
|
||||
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
|
||||
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
|
||||
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
|
||||
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
|
||||
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
|
||||
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
|
||||
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
|
||||
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
|
||||
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
|
||||
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
|
||||
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
|
||||
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
|
||||
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
|
||||
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
|
||||
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
|
||||
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
|
||||
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
|
||||
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
|
||||
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/02.api.json",
|
||||
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/01.api.json",
|
||||
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/07.api.json",
|
||||
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/06.api.json",
|
||||
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/04.api.json",
|
||||
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/03.api.json",
|
||||
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/05.api.json",
|
||||
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/registry.py",
|
||||
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
|
||||
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/client.py",
|
||||
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
|
||||
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
|
||||
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
|
||||
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/routers/workflows.py",
|
||||
"sha256": "3f1d5fdacc841080973dcafb9cd87a42433ec19080a3ff14a29561f13d512c97"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/queue/worker.py",
|
||||
"sha256": "54f5505ae78802f77fedf23690579444c9ccfbb0949b32f9e96980e8d55c2d3b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/h3-chain-evidence/library.json",
|
||||
"sha256": "667c09ebd5ba14c281366a1b9f7647d74f74e055a863b121d9324ac75a423cd4"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/media-evidence/protected-six-cases.json",
|
||||
"sha256": "c2b9dffd7f1a9c5f0de51c26c9dd81beedd3ad7f6b67a54aa3eb5cead55c8c5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
|
||||
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
|
||||
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
|
||||
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
|
||||
}
|
||||
],
|
||||
"originals": 163,
|
||||
"old_thirty_three_blocks_unchanged": true,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,60 @@
|
||||
PASS 34图1069保存位置
|
||||
PASS 34图25源注释
|
||||
PASS 1440 图像放大比较默认中文用途
|
||||
PASS 1440 图像放大比较源审校默认折叠
|
||||
PASS 1440 图像放大比较技术范围默认折叠
|
||||
PASS 1440 图像放大比较默认无执行计数/实现标识
|
||||
PASS 1440 图像放大比较默认依据限制可见
|
||||
PASS 1440 图像放大比较 说明未定稿
|
||||
PASS 1440 图像放大比较 未验证实跑
|
||||
PASS 1440 图像放大比较 未检查
|
||||
PASS 1440 图像放大比较停用/时间戳空
|
||||
PASS 1440 图像放大比较参数全保留
|
||||
PASS 1440 图像放大比较默认无溢出
|
||||
PASS 1440 图像放大比较原用途/源路径展开保留
|
||||
PASS 1440 图像放大比较展开流程 0
|
||||
PASS 1440 图像放大比较展开流程 1
|
||||
PASS 1440 图像放大比较展开流程 2
|
||||
PASS 1440 图像放大比较展开流程 3
|
||||
PASS 1440 图像放大比较展开流程 4
|
||||
PASS 1440 图像放大比较展开流程 5
|
||||
PASS 1440 图像放大比较展开流程 6
|
||||
PASS 1440 图像放大比较展开流程 7
|
||||
PASS 1440 图像放大比较展开流程 8
|
||||
PASS 1440 图像放大比较展开流程 9
|
||||
PASS 1440 图像放大比较展开流程 10
|
||||
PASS 1440 图像放大比较展开流程 11
|
||||
PASS 1440 图像放大比较展开流程 12
|
||||
PASS 1440 图像放大比较展开流程 13
|
||||
PASS 1440 图像放大比较展开流程 14
|
||||
PASS 1440 图像放大比较展开流程 15
|
||||
PASS 1440 图像放大比较展开流程 16
|
||||
PASS 1440 图像放大比较展开流程 17
|
||||
PASS 1440 图像放大比较展开流程 18
|
||||
PASS 1440 图像放大比较展开流程 19
|
||||
PASS 1440 图像放大比较展开流程 20
|
||||
PASS 1440 图像放大比较展开流程 21
|
||||
PASS 1440 图像放大比较展开流程 22
|
||||
PASS 1440 图像放大比较展开流程 23
|
||||
PASS 1440 图像放大比较展开流程 24
|
||||
PASS 1440 图像放大比较展开流程 25
|
||||
PASS 1440 图像放大比较展开流程 26
|
||||
PASS 1440 图像放大比较展开流程 27
|
||||
PASS 1440 图像放大比较展开流程 28
|
||||
PASS 1440 图像放大比较展开流程 29
|
||||
PASS 1440 图像放大比较展开流程 30
|
||||
PASS 1440 图像放大比较展开流程 31
|
||||
PASS 1440 图像放大比较展开流程 32
|
||||
PASS 1440 图像放大比较展开流程 33
|
||||
PASS 1440 图像放大比较原件摘要可展开
|
||||
PASS 1440 图像放大比较版本 0
|
||||
PASS 1440 图像放大比较版本 1
|
||||
PASS 1440 图像放大比较版本 2
|
||||
PASS 1440 图像放大比较版本 3
|
||||
PASS 1440 图像放大比较版本 4
|
||||
PASS 1440 图像放大比较版本 5
|
||||
PASS 1440 图像放大比较版本 6
|
||||
PASS 1440 1.image键盘展开
|
||||
PASS 1440 1.image用途/单位/范围/来源条件
|
||||
PASS 1440 1.image精确保留现值
|
||||
All owned browser services stopped; ports released.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
PASS uv build --project calliope-backend --offline
|
||||
Built source distribution and wheel using existing locked build tools.
|
||||
Byte verification of shipped fixed_document.py, source_reviews.json and library.py: package-check.json
|
||||
@@ -0,0 +1,662 @@
|
||||
"""One source-bound interpolation comparison document; no execution contract."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "resize-compare-reference"
|
||||
PATHS = [
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json"
|
||||
]
|
||||
|
||||
|
||||
def canonical(v):
|
||||
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
raw = (REPO / PATHS[index]).read_bytes()
|
||||
g = json.loads(raw)
|
||||
entries = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
refs = []
|
||||
|
||||
def ref(key, file, first, last, claim):
|
||||
e = next(e for e in entries if e["id"] == key and e["file"] == file)
|
||||
refs.append(
|
||||
{
|
||||
**e,
|
||||
"local_file": "../resize-compare-reference/" + e["local_file"],
|
||||
"lines": [first, last],
|
||||
"claim": claim,
|
||||
}
|
||||
)
|
||||
return len(refs) - 1
|
||||
|
||||
image = ref(
|
||||
"load",
|
||||
"nodes.py",
|
||||
1626,
|
||||
1700,
|
||||
"准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得",
|
||||
)
|
||||
ref("load", "nodes.py", 1957, 1959, "准确core0.3.50 LoadImage注册")
|
||||
scale = ref(
|
||||
"core",
|
||||
"nodes.py",
|
||||
1778,
|
||||
1806,
|
||||
"准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用",
|
||||
)
|
||||
preview = ref(
|
||||
"core",
|
||||
"nodes.py",
|
||||
1561,
|
||||
1628,
|
||||
"PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符",
|
||||
)
|
||||
ref("core", "nodes.py", 1957, 1967, "准确核心节点注册")
|
||||
maximum = ref(
|
||||
"core", "nodes.py", 52, 52, "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本"
|
||||
)
|
||||
util = ref(
|
||||
"core",
|
||||
"comfy/utils.py",
|
||||
858,
|
||||
900,
|
||||
"lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体",
|
||||
)
|
||||
kj = ref(
|
||||
"kj",
|
||||
"nodes/image_nodes.py",
|
||||
2376,
|
||||
2502,
|
||||
"KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留",
|
||||
)
|
||||
ref("kj", "nodes/image_nodes.py", 21, 21, "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知")
|
||||
ref("kj", "__init__.py", 75, 85, "准确KJ ImageResizeKJv2注册")
|
||||
restore = ref(
|
||||
"layer",
|
||||
"py/image_scale_restore_v2.py",
|
||||
7,
|
||||
132,
|
||||
"准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回",
|
||||
)
|
||||
aspect = ref(
|
||||
"layer",
|
||||
"py/image_scale_by_aspect_ratio_v2.py",
|
||||
8,
|
||||
186,
|
||||
"准确AspectRatio schema、original/custom、None长度不采用、对齐及返回",
|
||||
)
|
||||
fit = ref("layer", "py/imagefunc.py", 591, 618, "letterbox居中填色、crop居中裁剪、fill直接伸缩")
|
||||
rounding = ref("layer", "py/imagefunc.py", 1967, 1973, "向上取整到倍数;不同于KJ向下取整")
|
||||
ref("layer", "__init__.py", 29, 48, "LayerStyle包逐模块合并注册,未执行")
|
||||
impact = ref(
|
||||
"impact",
|
||||
"modules/impact/logics.py",
|
||||
239,
|
||||
255,
|
||||
"准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回",
|
||||
)
|
||||
ref("impact", "__init__.py", 48, 48, "ImpactPack logics导入")
|
||||
ref("impact", "__init__.py", 259, 259, "ImpactInt注册")
|
||||
display = ref(
|
||||
"rgthree",
|
||||
"py/display_any.py",
|
||||
6,
|
||||
50,
|
||||
"准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数",
|
||||
)
|
||||
displayjs = ref(
|
||||
"rgthree",
|
||||
"web/comfyui/display_any.js",
|
||||
1,
|
||||
35,
|
||||
"只读output控件;serializeValue返回空字符串/onExecuted更新",
|
||||
)
|
||||
ref("rgthree", "py/constants.py", 2, 5, "Display Any (rgthree)准确命名")
|
||||
ref("rgthree", "__init__.py", 47, 54, "DisplayAny准确注册")
|
||||
front = ref(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
917,
|
||||
925,
|
||||
"仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本",
|
||||
)
|
||||
ref(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
972,
|
||||
984,
|
||||
"仅参考假设位置序列化;不证明目标实际恢复",
|
||||
)
|
||||
upload = ref(
|
||||
"frontend",
|
||||
"src/extensions/core/uploadImage.ts",
|
||||
10,
|
||||
40,
|
||||
"仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数",
|
||||
)
|
||||
ref("frontend", "src/scripts/widgets.ts", 305, 308, "仅参考假设IMAGEUPLOAD控件构造入口")
|
||||
uploadfile = next(e["file"] for e in entries if e["file"].endswith("useImageUploadWidget.ts"))
|
||||
ref(
|
||||
"frontend",
|
||||
uploadfile,
|
||||
1,
|
||||
len(
|
||||
(REF / next(e["local_file"] for e in entries if e["file"] == uploadfile))
|
||||
.read_text()
|
||||
.splitlines()
|
||||
),
|
||||
"仅参考假设上传控件行为;源保存image原样保留,未上传",
|
||||
)
|
||||
for key in ["load", "core", "kj", "layer", "impact", "rgthree", "frontend"]:
|
||||
e = next(e for e in entries if e["id"] == key and "LICENSE" in e["file"])
|
||||
ref(
|
||||
key,
|
||||
e["file"],
|
||||
1,
|
||||
len((REF / e["local_file"]).read_text().splitlines()),
|
||||
"准确来源许可文本;发布包Git绑定未知,前端仅显式假设",
|
||||
)
|
||||
|
||||
# Entries describe concrete source positions; no named values are fabricated.
|
||||
specifications = {
|
||||
1: [
|
||||
(
|
||||
"image",
|
||||
"输入图片文件名",
|
||||
"未显式指定默认;输入目录图片排序枚举",
|
||||
"文件名",
|
||||
"依赖准确运行目录和素材;不存在或校验失败不能加载",
|
||||
"选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。",
|
||||
image,
|
||||
),
|
||||
(
|
||||
"upload",
|
||||
"上传控件保存占位",
|
||||
"后端无upload参数;参考前端自动补控件",
|
||||
"前端状态",
|
||||
"保存字符串image;准确宿主前端及扩展恢复未知",
|
||||
"保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。",
|
||||
upload,
|
||||
),
|
||||
],
|
||||
4: [
|
||||
(
|
||||
"upscale_method",
|
||||
"核心重采样方法",
|
||||
"未显式默认;首选项nearest-exact",
|
||||
"枚举",
|
||||
"nearest-exact/bilinear/area/bicubic/lanczos",
|
||||
"核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。",
|
||||
scale,
|
||||
),
|
||||
(
|
||||
"width",
|
||||
"核心分支宽度缓存",
|
||||
"512",
|
||||
"像素",
|
||||
"INT 0~16384,step1;0按另一轴推算;两轴0直接返回",
|
||||
"缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。",
|
||||
scale,
|
||||
),
|
||||
(
|
||||
"height",
|
||||
"核心分支高度缓存",
|
||||
"512",
|
||||
"像素",
|
||||
"INT 0~16384,step1;0按另一轴推算",
|
||||
"缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。",
|
||||
scale,
|
||||
),
|
||||
(
|
||||
"crop",
|
||||
"核心裁剪开关",
|
||||
"未显式默认;首选项disabled",
|
||||
"枚举",
|
||||
"disabled/center",
|
||||
"当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。",
|
||||
scale,
|
||||
),
|
||||
],
|
||||
11: [
|
||||
(
|
||||
"value",
|
||||
"共同宽度整数",
|
||||
"0",
|
||||
"整数;接宽度时为像素",
|
||||
"INT 0~sys.maxsize,step1;资源上限另受下游约束",
|
||||
"保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。",
|
||||
impact,
|
||||
)
|
||||
],
|
||||
12: [
|
||||
(
|
||||
"value",
|
||||
"高度及长度整数",
|
||||
"0",
|
||||
"整数;长度输入为像素",
|
||||
"INT 0~sys.maxsize,step1;不是内存或图像尺寸保证",
|
||||
(
|
||||
"保存720;边10接2.height、11接4.height、12接5.scale_by_len"
|
||||
"gth、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。"
|
||||
),
|
||||
impact,
|
||||
)
|
||||
],
|
||||
2: [
|
||||
(
|
||||
"width",
|
||||
"KJ宽度缓存",
|
||||
"512",
|
||||
"像素",
|
||||
"INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384",
|
||||
"缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"height",
|
||||
"KJ高度缓存",
|
||||
"512",
|
||||
"像素",
|
||||
"INT 0~宿主MAX_RESOLUTION,step1",
|
||||
"缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"upscale_method",
|
||||
"KJ重采样方法",
|
||||
"未显式默认;首选项nearest-exact",
|
||||
"枚举",
|
||||
"nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos",
|
||||
"保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"keep_proportion",
|
||||
"KJ比例处理",
|
||||
"源码显式False(与枚举类型不一致);不改写为stretch",
|
||||
"枚举",
|
||||
"stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开",
|
||||
"当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"pad_color",
|
||||
"KJ填充颜色",
|
||||
"0, 0, 0",
|
||||
"RGB文本",
|
||||
"STRING;仅pad/pad_edge路径调用填边",
|
||||
"保存黑色0, 0, 0,当前stretch不采用该颜色。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"crop_position",
|
||||
"KJ裁剪位置",
|
||||
"center",
|
||||
"枚举",
|
||||
"center/top/bottom/left/right;仅crop分支",
|
||||
"保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"divisible_by",
|
||||
"KJ尺寸倍数",
|
||||
"2",
|
||||
"像素倍数",
|
||||
"INT 0~512,step1;>1向下取整,0/1不对齐",
|
||||
"保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。",
|
||||
kj,
|
||||
),
|
||||
(
|
||||
"device",
|
||||
"KJ处理设备",
|
||||
"schema未显式;首项cpu,函数默认cpu",
|
||||
"设备枚举",
|
||||
"cpu/gpu;gpu+lanczos主动抛错",
|
||||
"保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。",
|
||||
kj,
|
||||
),
|
||||
],
|
||||
5: [
|
||||
(
|
||||
"scale",
|
||||
"恢复分支倍率",
|
||||
"1",
|
||||
"倍数",
|
||||
"FLOAT 0.01~100,step0.01;源JSON为int1",
|
||||
"当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。",
|
||||
restore,
|
||||
),
|
||||
(
|
||||
"method",
|
||||
"恢复分支重采样",
|
||||
"未显式默认;首项lanczos",
|
||||
"枚举",
|
||||
"lanczos/bicubic/hamming/bilinear/box/nearest",
|
||||
"保存lanczos,经PIL RGB resize;是否改善观感未知。",
|
||||
restore,
|
||||
),
|
||||
(
|
||||
"scale_by",
|
||||
"恢复分支尺寸方式",
|
||||
"未显式默认;首项by_scale",
|
||||
"枚举",
|
||||
"by_scale/longest/shortest/width/height/total_pixel(kilo pixel)",
|
||||
"当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。",
|
||||
restore,
|
||||
),
|
||||
(
|
||||
"scale_by_length",
|
||||
"恢复分支长度缓存",
|
||||
"1024",
|
||||
"像素;total_pixel模式为千像素",
|
||||
"INT 4~99999999,step1;仅长度/面积分支采用",
|
||||
"缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。",
|
||||
restore,
|
||||
),
|
||||
],
|
||||
7: [
|
||||
(
|
||||
"aspect_ratio",
|
||||
"比例分支目标比例",
|
||||
"未显式默认;首项original",
|
||||
"枚举",
|
||||
"original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16",
|
||||
"保存original从输入宽高取比例;不是custom的1:1。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"proportional_width",
|
||||
"自定比例宽",
|
||||
"1",
|
||||
"比例份数",
|
||||
"INT 1~1e8,step1;仅custom读取",
|
||||
"保存1,当前original不使用该值计算目标比例。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"proportional_height",
|
||||
"自定比例高",
|
||||
"1",
|
||||
"比例份数",
|
||||
"INT 1~1e8,step1;仅custom读取",
|
||||
"保存1,当前original不使用该值,不据两项1声称方图。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"fit",
|
||||
"比例分支适配方式",
|
||||
"未显式默认;首项letterbox",
|
||||
"枚举",
|
||||
"letterbox/crop/fill",
|
||||
"letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。",
|
||||
fit,
|
||||
),
|
||||
(
|
||||
"method",
|
||||
"比例分支重采样",
|
||||
"未显式默认;首项lanczos",
|
||||
"枚举",
|
||||
"lanczos/bicubic/hamming/bilinear/box/nearest",
|
||||
"保存lanczos,供适配图片的PIL resize使用,不保证画质。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"round_to_multiple",
|
||||
"比例分支倍数对齐",
|
||||
"未显式默认;首项字符串8",
|
||||
"像素倍数枚举",
|
||||
"8/16/32/64/128/256/512/None,全部字符串",
|
||||
"源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。",
|
||||
rounding,
|
||||
),
|
||||
(
|
||||
"scale_to_side",
|
||||
"比例分支缩放基准",
|
||||
"未显式默认;首项字符串None",
|
||||
"枚举",
|
||||
"None/longest/shortest/width/height/total_pixel(kilo pixel)",
|
||||
"当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"scale_to_length",
|
||||
"比例分支长度缓存",
|
||||
"1024",
|
||||
"像素;total_pixel模式为千像素",
|
||||
"INT 4~1e8,step1;按scale_to_side分支读取",
|
||||
"缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。",
|
||||
aspect,
|
||||
),
|
||||
(
|
||||
"background_color",
|
||||
"比例分支背景色",
|
||||
"#000000",
|
||||
"颜色字符串",
|
||||
"STRING;letterbox用PIL颜色创建背景",
|
||||
"保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。",
|
||||
fit,
|
||||
),
|
||||
],
|
||||
}
|
||||
dims = {
|
||||
13: ("2", "width"),
|
||||
14: ("2", "height"),
|
||||
15: ("5", "width"),
|
||||
16: ("5", "height"),
|
||||
17: ("7", "width"),
|
||||
18: ("7", "height"),
|
||||
}
|
||||
fields = []
|
||||
zero = []
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
if n["type"] == "PreviewImage":
|
||||
assert n["widgets_values"] == []
|
||||
zero.append(
|
||||
dict(
|
||||
node_id=str(n["id"]),
|
||||
class_type=n["type"],
|
||||
pointer=f"/nodes/{i}/widgets_values",
|
||||
effect=(
|
||||
"源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回"
|
||||
"ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。"
|
||||
),
|
||||
evidence=[preview],
|
||||
)
|
||||
)
|
||||
continue
|
||||
specs = specifications.get(n["id"])
|
||||
if n["id"] in dims:
|
||||
src, dim = dims[n["id"]]
|
||||
specs = [
|
||||
(
|
||||
"output",
|
||||
"显示" + ("宽度" if dim == "width" else "高度") + "文本",
|
||||
"前端创建STRING输出框;没有后端output输入",
|
||||
"显示文本",
|
||||
"只读前端STRING,序列化返回空字符串;不是实际宽高",
|
||||
"节点"
|
||||
+ str(n["id"])
|
||||
+ "接"
|
||||
+ src
|
||||
+ "."
|
||||
+ dim
|
||||
+ ",当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。",
|
||||
displayjs,
|
||||
)
|
||||
]
|
||||
assert len(specs) == len(n["widgets_values"])
|
||||
for k, (name, label, default, unit, limits, effect, ev) in enumerate(specs):
|
||||
ptr = f"/nodes/{i}/widgets_values/{k}"
|
||||
inp = next(
|
||||
(j for j, x in enumerate(n["inputs"]) if x.get("widget", {}).get("name") == name),
|
||||
None,
|
||||
)
|
||||
v = n["widgets_values"][k]
|
||||
field_type = n["inputs"][inp]["type"] if inp is not None else "前端STRING"
|
||||
link = n["inputs"][inp]["link"] if inp is not None else None
|
||||
fields.append(
|
||||
dict(
|
||||
node_id=str(n["id"]),
|
||||
scope="root",
|
||||
class_type=n["type"],
|
||||
field=name,
|
||||
label=label,
|
||||
pointer=ptr,
|
||||
input_pointer=f"/nodes/{i}/inputs/{inp}" if inp is not None else ptr,
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
type=field_type,
|
||||
role="frontend_control"
|
||||
if name in ["upload", "output"]
|
||||
else "linked_cache"
|
||||
if link is not None
|
||||
else "scalar",
|
||||
schema_default=default,
|
||||
unit=unit,
|
||||
limits=limits,
|
||||
effect=effect,
|
||||
execution_note=f"节点{n['id']}保存mode0;源无具名保存表,不制造具名保存值。"
|
||||
+ (
|
||||
f"源输入边{link}覆盖该缓存;"
|
||||
if link is not None
|
||||
else "该控件无源输入边覆盖;"
|
||||
)
|
||||
+ "前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。",
|
||||
evidence=list(
|
||||
dict.fromkeys(
|
||||
[ev, front]
|
||||
+ ([display] if name == "output" else [])
|
||||
+ ([util, maximum] if n["id"] in [2, 4] else [])
|
||||
+ ([aspect] if n["id"] == 7 else [])
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
assert len(fields) == 35 and len(zero) == 4
|
||||
overview = (
|
||||
"这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块"
|
||||
",也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度"
|
||||
"。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。"
|
||||
)
|
||||
flow = [
|
||||
overview,
|
||||
"17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。",
|
||||
(
|
||||
"四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImag"
|
||||
"e;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRe"
|
||||
"storeV2→9.PreviewImage;1→7.ImageScaleByAspectRat"
|
||||
"ioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。"
|
||||
),
|
||||
(
|
||||
"11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存7"
|
||||
"20,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale"
|
||||
"_by_length/7.scale_to_length。缓存仍保留,不构造prompt。"
|
||||
),
|
||||
(
|
||||
"5保存scale为JSON int1但schema为FLOAT;original_size未接,"
|
||||
"scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有long"
|
||||
"est/shortest/width/height/total_pixel分支才采用长度,ori"
|
||||
"ginal_size若有值则优先。"
|
||||
),
|
||||
(
|
||||
"7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符"
|
||||
"串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底"
|
||||
",不保证与原图逐像素一致。"
|
||||
),
|
||||
(
|
||||
"2当前stretch/lanczos/cpu,width480、height720经过divis"
|
||||
"ible_by16向下对齐;pad_color与crop_position在当前stretch不"
|
||||
"参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+l"
|
||||
"anczos抛错仅静态条件。"
|
||||
),
|
||||
(
|
||||
"源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只"
|
||||
"有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未"
|
||||
"知,转换关闭。"
|
||||
),
|
||||
(
|
||||
"4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分"
|
||||
"别13/14显示2.width/height,15/16显示5.width/height,17/"
|
||||
"18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据"
|
||||
"。"
|
||||
),
|
||||
(
|
||||
"未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输"
|
||||
"入、mask及original_size出口;7.mask输入、mask及original_si"
|
||||
"ze出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。"
|
||||
),
|
||||
(
|
||||
"准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp"
|
||||
" PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本"
|
||||
",实际素材存在/尺寸/设备/内存/像素及效果均未知。"
|
||||
),
|
||||
(
|
||||
"身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明"
|
||||
"0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgt"
|
||||
"hree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只"
|
||||
"有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,"
|
||||
"不称宿主版本。"
|
||||
),
|
||||
(
|
||||
"UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实"
|
||||
"际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得"
|
||||
"inputs.widget.name指针,未制造具名保存值。"
|
||||
),
|
||||
(
|
||||
"旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考"
|
||||
"。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case0"
|
||||
"6排除。"
|
||||
),
|
||||
*["原边 root " + json.dumps(e, ensure_ascii=False) for e in g["links"]],
|
||||
]
|
||||
versions = [
|
||||
e["id"] + "→" + e["commit"] for e in json.loads((REF / "identities.json").read_bytes())
|
||||
]
|
||||
for key in ["impact", "rgthree", "frontend"]:
|
||||
e = next(e for e in entries if e["id"] == key)
|
||||
versions.append(
|
||||
key
|
||||
+ "→"
|
||||
+ e["commit"]
|
||||
+ (";Git绑定未知" if key != "frontend" else ";仅参考假设1.45.20,源前端未知")
|
||||
)
|
||||
return dict(
|
||||
source_path=PATHS[index],
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
|
||||
notice="仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。",
|
||||
user_overview=overview,
|
||||
versions=versions,
|
||||
counts=dict(
|
||||
saved_fields=35,
|
||||
source_nodes=17,
|
||||
physical_edges=20,
|
||||
source_notes=0,
|
||||
history_objects=0,
|
||||
linked_saved_fields=6,
|
||||
frontend_only=7,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=refs,
|
||||
comments=[],
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(refs))),
|
||||
zero_saved_nodes=zero,
|
||||
boundaries=[],
|
||||
steps=[
|
||||
overview,
|
||||
"操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。",
|
||||
"操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。",
|
||||
"操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,3 @@
|
||||
All checks passed!
|
||||
14 files already formatted
|
||||
PASS 14 authored Python files and one JS syntax check
|
||||
@@ -0,0 +1,77 @@
|
||||
E501 Line too long (151 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:462:81
|
||||
|
|
||||
460 | …
|
||||
461 | …
|
||||
462 | …re0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
463 | …
|
||||
464 | …
|
||||
|
|
||||
|
||||
E501 Line too long (263 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:536:59
|
||||
|
|
||||
534 | …
|
||||
535 | …
|
||||
536 | … 分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。"
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
537 | …
|
||||
538 | …
|
||||
|
|
||||
|
||||
E501 Line too long (219 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:542:84
|
||||
|
|
||||
540 | …;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。",
|
||||
541 | …t/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。",
|
||||
542 | … 率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
543 | … 度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。",
|
||||
544 | …rop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。",
|
||||
|
|
||||
|
||||
E501 Line too long (190 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/build_definition.py:548:86
|
||||
|
|
||||
546 | …显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。",
|
||||
547 | … original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。",
|
||||
548 | …s文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
549 | …与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVer…
|
||||
550 | … 恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。",
|
||||
|
|
||||
|
||||
E501 Line too long (108 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:27:101
|
||||
|
|
||||
25 | **e,
|
||||
26 | "local_file": "../seedvr2-reference/" + e["local_file"],
|
||||
27 | "identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
| ^^^^^^^^
|
||||
28 | }
|
||||
29 | )
|
||||
|
|
||||
|
||||
E501 Line too long (101 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/fetch_frontend.py:49:101
|
||||
|
|
||||
47 | sha256=hashlib.sha256(b).hexdigest(),
|
||||
48 | git_blob_sha1=blob,
|
||||
49 | identity_binding="reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
| ^
|
||||
50 | )
|
||||
51 | )
|
||||
|
|
||||
|
||||
E501 Line too long (102 > 100)
|
||||
--> docs/hel-892/resize-compare-document-evidence/verify_sources.py:66:101
|
||||
|
|
||||
64 | )
|
||||
65 | print(
|
||||
66 | "PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory"
|
||||
| ^^
|
||||
67 | )
|
||||
|
|
||||
|
||||
Found 7 errors.
|
||||
@@ -0,0 +1,40 @@
|
||||
"Check changed authored Python only; upstream originals remain byte-for-byte."
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
FILES = [
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_resize_compare_fixed_document.py",
|
||||
"e2e/run-resize-compare-document.py",
|
||||
] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))]
|
||||
|
||||
|
||||
def main():
|
||||
for command in [["check"], ["format", "--check"]]:
|
||||
subprocess.run(
|
||||
[
|
||||
"uv",
|
||||
"run",
|
||||
"--project",
|
||||
"calliope-backend",
|
||||
"--offline",
|
||||
"ruff",
|
||||
*command,
|
||||
"--config",
|
||||
"calliope-backend/pyproject.toml",
|
||||
*FILES,
|
||||
],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["node", "--check", "e2e/resize-compare-document.mjs"], cwd=ROOT, check=True)
|
||||
(OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n")
|
||||
print("PASS", len(FILES), "authored Python files and one JS syntax check")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
第53批仅图像放大比较单图:35个标量保存位置,0源注释,已接入实际doc_json/GET/既有Drawer。旧33块1034位置+25注释逐对象不变,现34图1069+25仅参考;155完整定稿0/必要实跑0/新增转换0,全量目标未完成。
|
||||
|
||||
17节点20物理边,全mode0,无子图。四链独立预览,六DisplayAny仅显示三个插件分支宽高。480/720外线覆盖KJ和核心宽高,以及两条LayerStyle长度缓存;5当前by_scale与7当前None分支不采用720长度。KJ向下16对齐、AspectRatio向上8对齐分别说明;int1与FLOAT、字符串8/None、上传占位、六空字符串及四Preview空[]均保持。
|
||||
|
||||
准确KJ提交没有源2所存的mask输入/第四mask输出,该冲突保留关闭,不补线。core0.3.65 PreviewImage无数据出口,写临时PNG只返回ui.images;无模型超分或正式SaveImage。LoadImage0.3.50与ImageScale/Preview0.3.65分层;两个完整插件提交、两个准确发布包及SHA/许可固定,发布包Git绑定未知。源没有frontendVersion;1.45.20仅恢复参考假设,非宿主事实。UE7.1只在LoadImage/KJ声明,不扩调查。
|
||||
|
||||
本次后台226通过(213专项+13库回归);14自写Python Ruff/format与一JS语法通过。离线wheel/sdist资源字节、双次定义重建/渲染确定性通过。真实ce9502a旧代码隔离库升级1更新154跳过,154条整行不变;幂等155跳过、精确回退1、再升级1,升级前后编辑各1冲突并29列整行保护。155条停用未检查/时间戳空、16/139、1217/3660/294及case06排除保持。163原件/191冻结资源/28profiles/9候选hash/六差分/执行资格/Drawer整文件均不变。
|
||||
|
||||
1440/390逐位置/来源/默认折叠、旧33概要、错绑定/旧空doc/迟到响应/失败重试/键盘焦点/无横溢通过;代表5截图已实际目验,只作附件,不入库。浏览请求与后台真实GET/就绪、详情及字体拦截分别见browser-results.json与server-request-accounting.json;禁止请求0。finally已停两服务,8247/5173释放。开发失败修正保留于development-corrections.md及初始日志。
|
||||
|
||||
仅运行受影响专项与库回归,不重复未改全后台/全前端/冻结转换,不称全仓全绿。准确来源local_file以docs/hel-892/resize-compare-document-evidence为基准;完整中文为../图像放大比较固定参考中文说明.md,实际doc为actual-图像放大比较.json,固定源码/许可为../resize-compare-reference。复现入口validation-commands.txt,受测资源SHA见package-check.json/repeatability.json/pins.json。
|
||||
|
||||
真实素材存在/尺寸、KJ冲突恢复、扩展及宿主版本、设备资源、实际像素/画质与产物仍未知。未连目标、不停TTS、不启ComfyUI、不构造prompt、不执行上游插件/表达式/媒体/GPU、不下载模型素材字体运行库、不加依赖/付费、不写在线库、不合并部署。全量完成并审核后才发布。
|
||||
@@ -0,0 +1,9 @@
|
||||
本轮开发失败与修正记录(均为本次编写的验证或文档,无旧业务修改):
|
||||
|
||||
- 初次源码校验及专项测试发现AspectRatio引用结束行195超出准确文件186行;按原字节修正为8~186。初次专项+库回归216通过、10失败,其中9项为该引用越界,另一项为旧文档部分无comments键。
|
||||
- 旧注释不能直接累加固定块comments:部分旧注释由build_document源图提取。改用实际source_notes计数,保留旧33图25条源注释。
|
||||
- 初次Ruff检查发现新写脚本的长字符串、单行语句和格式问题;按原字符串拆分、格式化并复检。
|
||||
- 首次浏览在1440屏宽的1.image项发现execution_note重复露出物理指针,违反来源默认折叠。去掉正文技术指针,折叠来源保留准确pointer及input_pointer;不改Drawer。首次浏览finally已停两服务并释放端口。
|
||||
- 最终测试、包、保护和浏览结果以各*-final.txt及JSON报告为准;未运行不受影响的全后台/前端/冻结转换套件,也不沿用历史测试数冒充本次结果。
|
||||
|
||||
- 差集检查发现初次pytest原始输出有尾空白,仅对本批机器日志去除行尾空白,保留失败内容;固定上游原件完全不作空白归一化。
|
||||
@@ -0,0 +1,60 @@
|
||||
"""Fixed frontend is an explicit restoration hypothesis, never source identity."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
REF = Path(__file__).resolve().parent.parent / "resize-compare-reference"
|
||||
OLD = REF.parent / "seedvr2-reference"
|
||||
|
||||
|
||||
def main():
|
||||
j = json.loads((REF / "sources.json").read_bytes())
|
||||
j["sources"] = [e for e in j["sources"] if e["id"] != "frontend"]
|
||||
old = json.loads((OLD / "sources.json").read_bytes())["sources"]
|
||||
for e in old:
|
||||
if e["id"] == "frontend" and e["file"] in [
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
"src/scripts/widgets.ts",
|
||||
"src/extensions/core/uploadImage.ts",
|
||||
"LICENSE",
|
||||
]:
|
||||
j["sources"].append(
|
||||
{
|
||||
**e,
|
||||
"local_file": "../seedvr2-reference/" + e["local_file"],
|
||||
"identity_binding": (
|
||||
"reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
),
|
||||
}
|
||||
)
|
||||
tree = json.loads((OLD / "frontend-tree.json").read_bytes())
|
||||
commit = tree["sha"]
|
||||
for f in ["src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts"]:
|
||||
url = f"https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/{commit}/{f}"
|
||||
with urllib.request.urlopen(url, timeout=30) as r:
|
||||
b = r.read()
|
||||
blob = hashlib.sha1(b"blob " + str(len(b)).encode() + b"\0" + b).hexdigest()
|
||||
assert blob == next(e["sha"] for e in tree["tree"] if e["path"] == f)
|
||||
name = "frontend__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(b)
|
||||
j["sources"].append(
|
||||
dict(
|
||||
id="frontend",
|
||||
file=f,
|
||||
local_file=name,
|
||||
url=url,
|
||||
commit=commit,
|
||||
sha256=hashlib.sha256(b).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
identity_binding=(
|
||||
"reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
),
|
||||
)
|
||||
)
|
||||
(REF / "sources.json").write_text(json.dumps(j, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,63 @@
|
||||
"""Read exact release archive members as text; no install or execution."""
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import urllib.request
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
REF = Path(__file__).resolve().parent.parent / "resize-compare-reference"
|
||||
|
||||
|
||||
def main():
|
||||
entries = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
entries = [e for e in entries if e["id"] not in ["impact", "rgthree"]]
|
||||
for key in ["impact", "rgthree"]:
|
||||
meta = json.loads((REF / f"{key}-registry.json").read_bytes())
|
||||
with urllib.request.urlopen(meta["downloadUrl"], timeout=40) as r:
|
||||
raw = r.read(15000001)
|
||||
assert len(raw) < 15000000
|
||||
(REF / f"{key}-source.zip").write_bytes(raw)
|
||||
sha = hashlib.sha256(raw).hexdigest()
|
||||
with zipfile.ZipFile(io.BytesIO(raw)) as z:
|
||||
names = z.namelist()
|
||||
(REF / f"{key}-members.json").write_text(json.dumps(names, indent=2) + "\n")
|
||||
wanted = (
|
||||
["__init__.py", "modules/impact/logics.py", "LICENSE.txt", "LICENSE"]
|
||||
if key == "impact"
|
||||
else [
|
||||
"__init__.py",
|
||||
"py/display_any.py",
|
||||
"py/constants.py",
|
||||
"web/comfyui/display_any.js",
|
||||
"py/utils.py",
|
||||
"LICENSE",
|
||||
]
|
||||
)
|
||||
for f in wanted:
|
||||
if f not in names:
|
||||
continue
|
||||
b = z.read(f)
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(b)
|
||||
entries.append(
|
||||
dict(
|
||||
id=key,
|
||||
file=f,
|
||||
local_file=name,
|
||||
url=meta["downloadUrl"],
|
||||
commit="发布包SHA256:" + sha,
|
||||
git_commit_binding="unknown",
|
||||
package_sha256=sha,
|
||||
sha256=hashlib.sha256(b).hexdigest(),
|
||||
)
|
||||
)
|
||||
print(key, "SHA256", sha, "selected", [e["file"] for e in entries if e["id"] == key])
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=entries), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,94 @@
|
||||
"""Fetch exact bounded text only; never load or execute upstream code."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import urllib.request
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from pathlib import Path
|
||||
|
||||
REF = Path(__file__).resolve().parent.parent / "resize-compare-reference"
|
||||
SPECS = {
|
||||
"load": ("Comfy-Org/ComfyUI", "v0.3.50", ["nodes.py", "folder_paths.py", "LICENSE"]),
|
||||
"core": (
|
||||
"Comfy-Org/ComfyUI",
|
||||
"v0.3.65",
|
||||
["nodes.py", "comfy/utils.py", "folder_paths.py", "LICENSE"],
|
||||
),
|
||||
"kj": (
|
||||
"kijai/ComfyUI-KJNodes",
|
||||
"f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
["__init__.py", "nodes/image_nodes.py", "LICENSE"],
|
||||
),
|
||||
"layer": (
|
||||
"chflame163/ComfyUI_LayerStyle",
|
||||
"89014d833d2ad0998d724090eff1456692692a1d",
|
||||
[
|
||||
"__init__.py",
|
||||
"py/image_scale_restore_v2.py",
|
||||
"py/image_scale_by_aspect_ratio_v2.py",
|
||||
"py/imagefunc.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def get(url):
|
||||
with urllib.request.urlopen(url, timeout=40) as r:
|
||||
b = r.read(3000001)
|
||||
assert len(b) < 3000000
|
||||
return b
|
||||
|
||||
|
||||
def one(item):
|
||||
key, (repo, rev, files) = item
|
||||
if rev.startswith("v"):
|
||||
b = get(f"https://api.github.com/repos/{repo}/git/ref/tags/{rev}")
|
||||
(REF / f"{key}-tag.json").write_bytes(b)
|
||||
obj = json.loads(b)["object"]
|
||||
if obj["type"] == "tag":
|
||||
b = get(obj["url"])
|
||||
(REF / f"{key}-tag-object.json").write_bytes(b)
|
||||
obj = json.loads(b)["object"]
|
||||
rev = obj["sha"]
|
||||
b = get(f"https://api.github.com/repos/{repo}/git/trees/{rev}?recursive=1")
|
||||
(REF / f"{key}-tree.json").write_bytes(b)
|
||||
t = json.loads(b)
|
||||
assert t["sha"] == rev and not t["truncated"]
|
||||
entries = []
|
||||
for file in files:
|
||||
blob = next(x["sha"] for x in t["tree"] if x["path"] == file)
|
||||
url = f"https://raw.githubusercontent.com/{repo}/{rev}/{file}"
|
||||
b = get(url)
|
||||
assert hashlib.sha1(b"blob " + str(len(b)).encode() + b"\0" + b).hexdigest() == blob
|
||||
name = key + "__" + file.replace("/", "__")
|
||||
(REF / name).write_bytes(b)
|
||||
entries.append(
|
||||
dict(
|
||||
id=key,
|
||||
file=file,
|
||||
local_file=name,
|
||||
url=url,
|
||||
commit=rev,
|
||||
sha256=hashlib.sha256(b).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
)
|
||||
)
|
||||
return dict(id=key, repo=repo, commit=rev), entries
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
with ThreadPoolExecutor(max_workers=4) as pool:
|
||||
rows = list(pool.map(one, SPECS.items()))
|
||||
(REF / "identities.json").write_text(json.dumps([r[0] for r in rows], indent=2) + "\n")
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=[e for r in rows for e in r[1]]), indent=2) + "\n"
|
||||
)
|
||||
# Accurate registry release metadata; package Git bindings are not inferred.
|
||||
for key, node, version in [
|
||||
("impact", "comfyui-impact-pack", "8.25.1"),
|
||||
("rgthree", "rgthree-comfy", "1.0.2510052058"),
|
||||
]:
|
||||
b = get(f"https://api.comfy.org/nodes/{node}/versions/{version}")
|
||||
(REF / f"{key}-registry.json").write_bytes(b)
|
||||
print(key, b[:450])
|
||||
@@ -0,0 +1,534 @@
|
||||
{
|
||||
"base": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"self_excluded": true,
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"bytes": 9860,
|
||||
"sha256": "ca60842cd88dc4adecb2cba91ffd27d309e94de42174af90aa475cb9b526a9f1",
|
||||
"purpose": "新增本图定义摘要白名单;原33摘要不变"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"bytes": 4211589,
|
||||
"sha256": "64bc414da56186825db52dbaf240a97e9d2b81c2b0e6502ad6a17c878b8bda19",
|
||||
"purpose": "只在本图审校对象新增固定参考块,其余155对象冻结"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_resize_compare_fixed_document.py",
|
||||
"bytes": 8888,
|
||||
"sha256": "db04a38ddc212a57c29032a81047f6a75ebe1a6162390ecc6155650b3a5e2ba1",
|
||||
"purpose": "新增本图定义摘要白名单;原33摘要不变"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/actual-图像放大比较.json",
|
||||
"bytes": 90449,
|
||||
"sha256": "0fbdea2caa0f407b2288328b25f8babce8c6d9e85637322463e5561dfd1555f0",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/audit-summary.json",
|
||||
"bytes": 797,
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/authored-diff-check.txt",
|
||||
"bytes": 88,
|
||||
"sha256": "17293b65366bf232670ef3c570fe87c02bf377dcd2b3f7b9fc1fa71c7c1db85e",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/boundaries.json",
|
||||
"bytes": 38634,
|
||||
"sha256": "d856488832604570281cf503843d00b301740a460b84a65ddb3500ee33b24e56",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/browser-final.txt",
|
||||
"bytes": 68389,
|
||||
"sha256": "1f95e3c643ecae6fe1f94b487f2c7662b615bbb38d73e139cc928e3ef8665367",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/browser-initial.txt",
|
||||
"bytes": 2604,
|
||||
"sha256": "eaae5da6a730d4525d8c3eaff120b7fbae2128edd8835cba98dd1f0486ae6300",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/browser-results.json",
|
||||
"bytes": 84717,
|
||||
"sha256": "bf0ded1fda9c0f01b0202ef5f8dcfe7914189cf0fee165c824e837dbe977eb6b",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/build-final.txt",
|
||||
"bytes": 225,
|
||||
"sha256": "f47830f4c19876019d7496b7dff4aead88d8abe6f1deada5819eaca442000353",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/build_definition.py",
|
||||
"bytes": 27430,
|
||||
"sha256": "817428e740fff89a680e714c135d290981fecd4a228ae256fa1c7bb8ebdaca22",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/check-code-final.txt",
|
||||
"bytes": 100,
|
||||
"sha256": "f13a665b53482d1dceeb38f992ce3c317dd520fd0bfcecb96e398c69cd24f7b0",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/check-code-initial.txt",
|
||||
"bytes": 4410,
|
||||
"sha256": "29b60aea1d0b6be6edb32a714e80d987999b8aa0b40e2fab2460ebedae4152a2",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/check_code.py",
|
||||
"bytes": 1236,
|
||||
"sha256": "3ed230815dbc56963b44c7617b74f91f8dd5a8bcc4ea58c1b398d5ab162e1956",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/definition-0.json",
|
||||
"bytes": 63345,
|
||||
"sha256": "5427fd1a4cddb4c3f7c020deaf1de9a6482acec187ca564141b377f9fdddd3bf",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/delivery-summary.md",
|
||||
"bytes": 2961,
|
||||
"sha256": "61af9f97c383cba9c47d78f4af56ade1bbe7a80354e2382ca4d85c536262784e",
|
||||
"purpose": "完整中文或本次交付/开发修正记录"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/development-corrections.md",
|
||||
"bytes": 1271,
|
||||
"sha256": "775fb8fac36e22eff80532785ac877351e4632febf7b3efef44e809362a5cd80",
|
||||
"purpose": "完整中文或本次交付/开发修正记录"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/fetch_frontend.py",
|
||||
"bytes": 2253,
|
||||
"sha256": "745bd67f085275f453994535ce20aef0f39c3a4be3c903151801b58668a3a72f",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/fetch_packages.py",
|
||||
"bytes": 2320,
|
||||
"sha256": "c4d5f312e09426df63cc76b22bcd09fcbc148002270f5f5c3fae09961de91b8d",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/fetch_sources.py",
|
||||
"bytes": 3240,
|
||||
"sha256": "db5e9bcdd48f94dc85f80e657dfd25e84e1c226acff9f3a3c2d9c6ba44418599",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/fixed-source-index.json",
|
||||
"bytes": 26917,
|
||||
"sha256": "4baa16c535c694eefaa6e242881602262b163369feb96e1656cb7b246e5e2030",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/frozen-resource-check.json",
|
||||
"bytes": 40348,
|
||||
"sha256": "fddf632178fb8cbb10f11302ca423b3e10da88c7b70fa40a63fb148f3378b4b5",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/import-protection.json",
|
||||
"bytes": 1270,
|
||||
"sha256": "87800335e53d0a8ecdfad72a11822c69b11b523324dc383f63820dab7787ea32",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/package-check.json",
|
||||
"bytes": 550,
|
||||
"sha256": "27bed3d2b2e32d8268386fd482abca25132c17c6c44b15a936d8e8562bd6ca55",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/pins.json",
|
||||
"bytes": 220,
|
||||
"sha256": "8135fe24810f31954b75f34d6099f2de559efcc1d6008f69457100a1200dccc8",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/pr-baseline.json",
|
||||
"bytes": 239,
|
||||
"sha256": "c9252ce86f9f9634595d8938dca3ff8ab3b34c5b3fc3ae11966a5ac0edbf7986",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/pytest-final.txt",
|
||||
"bytes": 960,
|
||||
"sha256": "3df594775356c8ab6438bc47c68ac77f87ec3351276239e6e3cb60444e074816",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/pytest-initial.txt",
|
||||
"bytes": 27619,
|
||||
"sha256": "7f107acf80e2183c37f471a8238f2461ce5e81af596342f4c901f758642967b7",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/python-check-files.json",
|
||||
"bytes": 905,
|
||||
"sha256": "6600ed5cc94cef5182a8e1ffe0102ba6c5b4f033c2c9e4cc0c2941203563c223",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/rebuild.py",
|
||||
"bytes": 2448,
|
||||
"sha256": "be14f6c45aaf00d404ef58a8dd2566ff3bda4c7c172f7db887624cdc20da9146",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/recompute-final.txt",
|
||||
"bytes": 240,
|
||||
"sha256": "6986b01e04d4d4c32682a09b29dfd8d30f6b489574197a79f6bb18618e497bd0",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/recompute-initial.txt",
|
||||
"bytes": 240,
|
||||
"sha256": "6986b01e04d4d4c32682a09b29dfd8d30f6b489574197a79f6bb18618e497bd0",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/recompute.py",
|
||||
"bytes": 12280,
|
||||
"sha256": "25f6a947db5f4bc69183e0a1b06c05f7bbee64b350a38d5673a03cb594959dbd",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/render_report.py",
|
||||
"bytes": 4442,
|
||||
"sha256": "07a7de09f92ebfd2ca8d983a1928039ae0739a76fc1ddb57f1a98aaf9e6e6496",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/repeat.py",
|
||||
"bytes": 1283,
|
||||
"sha256": "45e2f120dafdc87de496e06c8b0032bf71c6361a893da14608016bea38ad5ced",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/repeatability.json",
|
||||
"bytes": 419,
|
||||
"sha256": "96f80b24b87c7b719ea59801c352fcb91f25c9816db8b878ee2d8729c9588bca",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/request_counts.py",
|
||||
"bytes": 1385,
|
||||
"sha256": "982d4859e01e9a3e3ef9746fc8b7f447b4ea63fbdf414f13de3bbaaaedd2d58f",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/review-delta.json",
|
||||
"bytes": 443,
|
||||
"sha256": "6c43ba46924a38106cf02a0b0338ecabc483f05f5e4894f044120a6f531a5663",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/ruff-initial.txt",
|
||||
"bytes": 68062,
|
||||
"sha256": "b3da21222027733f454bc8f3101381e5ec53276d26814d855c87eb30b01a695c",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/server-request-accounting.json",
|
||||
"bytes": 1390,
|
||||
"sha256": "edc592dc6547952ddb1ffeb95160d5cc1df3b5d9d4f8b465768281181aeab540",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/service-0.txt",
|
||||
"bytes": 8584,
|
||||
"sha256": "7403cdf0d97f53edd3191cb14162b4aebd31f7633d104226eeda9633a25cddd4",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/service-stop.json",
|
||||
"bytes": 65,
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/source-check.json",
|
||||
"bytes": 553,
|
||||
"sha256": "c3ad5dc1bcbca3f19220129b5ba38bc505cb5dd25a27100dabee7f78b96e3328",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/validation-commands.txt",
|
||||
"bytes": 2299,
|
||||
"sha256": "9a407606b52639f49c7bef11a9967bec9d5436ccdc899f902aeba1c07a4eeec5",
|
||||
"purpose": "本次实际生成的定义、doc或验证日志/审计样例"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-document-evidence/verify_sources.py",
|
||||
"bytes": 2979,
|
||||
"sha256": "64bc3a07f265b0da06ee548280e50833d8126f784dd324c94f7d18e57510ce91",
|
||||
"purpose": "本图说明生成、重建、独立来源/保护/包/确定性验证工具"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core-tag.json",
|
||||
"bytes": 339,
|
||||
"sha256": "e7a65c1cff1fb9215482bafcce2ca373e6a7a09f11cc050839e16132a35e52c9",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core-tree.json",
|
||||
"bytes": 162407,
|
||||
"sha256": "8569c5af3aa9886a9d5d57b0e973c913ef2cab17743206ad84501aedc684a75a",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core__LICENSE",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core__comfy__utils.py",
|
||||
"bytes": 47815,
|
||||
"sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core__folder_paths.py",
|
||||
"bytes": 16137,
|
||||
"sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/core__nodes.py",
|
||||
"bytes": 98752,
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
|
||||
"bytes": 4583,
|
||||
"sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/identities.json",
|
||||
"bytes": 486,
|
||||
"sha256": "e6adfbcf1112d930b2b083d68f85280ddd0d6730c09f11e4f04c1f51a8b1fac8",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact-members.json",
|
||||
"bytes": 2470,
|
||||
"sha256": "a9e623c3c642258d64663e69ab2ce583ad93963f718c7471c6d7fa8c2a03ed06",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact-registry.json",
|
||||
"bytes": 551,
|
||||
"sha256": "e1ef83ba61b7ea6b983c46b70180d954676a5c5e849c4c51d615f4e2f776a126",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact-source.zip",
|
||||
"bytes": 2554889,
|
||||
"sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact__LICENSE.txt",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact____init__.py",
|
||||
"bytes": 21951,
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/impact__modules__impact__logics.py",
|
||||
"bytes": 22496,
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/kj-tree.json",
|
||||
"bytes": 14252,
|
||||
"sha256": "ceadebef2e8bc20892e385322caa2198cd34695211db4aa2913dbe20e6a8b369",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/kj__LICENSE",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/kj____init__.py",
|
||||
"bytes": 17806,
|
||||
"sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/kj__nodes__image_nodes.py",
|
||||
"bytes": 138829,
|
||||
"sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer-tree.json",
|
||||
"bytes": 126406,
|
||||
"sha256": "07aa82e8974b967e36022f633dc4fbf574151febb8ae6fc04e9d610c80a0f1bb",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer__LICENSE",
|
||||
"bytes": 1067,
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer____init__.py",
|
||||
"bytes": 1572,
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
|
||||
"bytes": 8734,
|
||||
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer__py__image_scale_restore_v2.py",
|
||||
"bytes": 5247,
|
||||
"sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/layer__py__imagefunc.py",
|
||||
"bytes": 107560,
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/load-tag.json",
|
||||
"bytes": 339,
|
||||
"sha256": "5b0ed80bac52f5b0f978ec92b2e83c70d7b124e80e814a9c782e84818f5980f9",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/load-tree.json",
|
||||
"bytes": 146966,
|
||||
"sha256": "720111b4124140999db72e72c658cf170387e396c0592caf987c27f11f8276b4",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/load__LICENSE",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/load__folder_paths.py",
|
||||
"bytes": 15907,
|
||||
"sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/load__nodes.py",
|
||||
"bytes": 98312,
|
||||
"sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree-members.json",
|
||||
"bytes": 8920,
|
||||
"sha256": "768479dbd0b488e595636de0f0b01836d8ba53e69bd1c06c911ea6a95b2009ef",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree-registry.json",
|
||||
"bytes": 439,
|
||||
"sha256": "a2b0004e9b29245e706386cec392ffc145e0fa437f4b81916e8bb6b3db6276f3",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree-source.zip",
|
||||
"bytes": 4033076,
|
||||
"sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree__LICENSE",
|
||||
"bytes": 1106,
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree____init__.py",
|
||||
"bytes": 4537,
|
||||
"sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree__py__constants.py",
|
||||
"bytes": 238,
|
||||
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree__py__display_any.py",
|
||||
"bytes": 1932,
|
||||
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree__py__utils.py",
|
||||
"bytes": 5423,
|
||||
"sha256": "47dcb57dae78b6562abd51e6796fb64df5b3820a081273394a41d250e6b14284",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/rgthree__web__comfyui__display_any.js",
|
||||
"bytes": 1860,
|
||||
"sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/resize-compare-reference/sources.json",
|
||||
"bytes": 14554,
|
||||
"sha256": "d8c20df78afd5a7f3bf28810eb77ea8c4b4597fb855c1cde68103b39573186c8",
|
||||
"purpose": "准确固定Git/发布包静态文本、注册/schema/必要实现/许可或身份清单;不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/图像放大比较固定参考中文说明.md",
|
||||
"bytes": 81966,
|
||||
"sha256": "12f803a7266ece6fda13fcb999fd363260435d6e45c8602f41d99f9aa4140835",
|
||||
"purpose": "完整中文或本次交付/开发修正记录"
|
||||
},
|
||||
{
|
||||
"path": "e2e/resize-compare-document.mjs",
|
||||
"bytes": 14407,
|
||||
"sha256": "ea2eedd331cbb2642f9594a7bb04e439879411983733d99aacc9e7511b879c96",
|
||||
"purpose": "本图35位置及旧33概要、共享回退浏览验证;finally释放服务"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-resize-compare-document.py",
|
||||
"bytes": 3130,
|
||||
"sha256": "0c08194e2ec7f0c0c990fa2035dae31892c2beb102bb8306c2707f26acc03b84",
|
||||
"purpose": "本图35位置及旧33概要、共享回退浏览验证;finally释放服务"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,527 @@
|
||||
[
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "load",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/load__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5",
|
||||
"git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375",
|
||||
"lines": [
|
||||
1626,
|
||||
1700
|
||||
],
|
||||
"claim": "准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "load",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/load__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5",
|
||||
"git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375",
|
||||
"lines": [
|
||||
1957,
|
||||
1959
|
||||
],
|
||||
"claim": "准确core0.3.50 LoadImage注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b",
|
||||
"lines": [
|
||||
1778,
|
||||
1806
|
||||
],
|
||||
"claim": "准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b",
|
||||
"lines": [
|
||||
1561,
|
||||
1628
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b",
|
||||
"lines": [
|
||||
1957,
|
||||
1967
|
||||
],
|
||||
"claim": "准确核心节点注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../resize-compare-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b",
|
||||
"lines": [
|
||||
52,
|
||||
52
|
||||
],
|
||||
"claim": "MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "comfy/utils.py",
|
||||
"local_file": "../resize-compare-reference/core__comfy__utils.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509",
|
||||
"git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d",
|
||||
"lines": [
|
||||
858,
|
||||
900
|
||||
],
|
||||
"claim": "lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "kj",
|
||||
"file": "nodes/image_nodes.py",
|
||||
"local_file": "../resize-compare-reference/kj__nodes__image_nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb",
|
||||
"git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a",
|
||||
"lines": [
|
||||
2376,
|
||||
2502
|
||||
],
|
||||
"claim": "KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "kj",
|
||||
"file": "nodes/image_nodes.py",
|
||||
"local_file": "../resize-compare-reference/kj__nodes__image_nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb",
|
||||
"git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a",
|
||||
"lines": [
|
||||
21,
|
||||
21
|
||||
],
|
||||
"claim": "KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "kj",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../resize-compare-reference/kj____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a",
|
||||
"git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35",
|
||||
"lines": [
|
||||
75,
|
||||
85
|
||||
],
|
||||
"claim": "准确KJ ImageResizeKJv2注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "py/image_scale_restore_v2.py",
|
||||
"local_file": "../resize-compare-reference/layer__py__image_scale_restore_v2.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43",
|
||||
"git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13",
|
||||
"lines": [
|
||||
7,
|
||||
132
|
||||
],
|
||||
"claim": "准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "py/image_scale_by_aspect_ratio_v2.py",
|
||||
"local_file": "../resize-compare-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
|
||||
"git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5",
|
||||
"lines": [
|
||||
8,
|
||||
186
|
||||
],
|
||||
"claim": "准确AspectRatio schema、original/custom、None长度不采用、对齐及返回"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "../resize-compare-reference/layer__py__imagefunc.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce",
|
||||
"lines": [
|
||||
591,
|
||||
618
|
||||
],
|
||||
"claim": "letterbox居中填色、crop居中裁剪、fill直接伸缩"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "../resize-compare-reference/layer__py__imagefunc.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce",
|
||||
"lines": [
|
||||
1967,
|
||||
1973
|
||||
],
|
||||
"claim": "向上取整到倍数;不同于KJ向下取整"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../resize-compare-reference/layer____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a",
|
||||
"lines": [
|
||||
29,
|
||||
48
|
||||
],
|
||||
"claim": "LayerStyle包逐模块合并注册,未执行"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "impact",
|
||||
"file": "modules/impact/logics.py",
|
||||
"local_file": "../resize-compare-reference/impact__modules__impact__logics.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb",
|
||||
"lines": [
|
||||
239,
|
||||
255
|
||||
],
|
||||
"claim": "准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "impact",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../resize-compare-reference/impact____init__.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"lines": [
|
||||
48,
|
||||
48
|
||||
],
|
||||
"claim": "ImpactPack logics导入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "impact",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../resize-compare-reference/impact____init__.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"lines": [
|
||||
259,
|
||||
259
|
||||
],
|
||||
"claim": "ImpactInt注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "rgthree",
|
||||
"file": "py/display_any.py",
|
||||
"local_file": "../resize-compare-reference/rgthree__py__display_any.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
|
||||
"lines": [
|
||||
6,
|
||||
50
|
||||
],
|
||||
"claim": "准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "rgthree",
|
||||
"file": "web/comfyui/display_any.js",
|
||||
"local_file": "../resize-compare-reference/rgthree__web__comfyui__display_any.js",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d",
|
||||
"lines": [
|
||||
1,
|
||||
35
|
||||
],
|
||||
"claim": "只读output控件;serializeValue返回空字符串/onExecuted更新"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "rgthree",
|
||||
"file": "py/constants.py",
|
||||
"local_file": "../resize-compare-reference/rgthree__py__constants.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
|
||||
"lines": [
|
||||
2,
|
||||
5
|
||||
],
|
||||
"claim": "Display Any (rgthree)准确命名"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "rgthree",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../resize-compare-reference/rgthree____init__.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb",
|
||||
"lines": [
|
||||
47,
|
||||
54
|
||||
],
|
||||
"claim": "DisplayAny准确注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "src/lib/litegraph/src/LGraphNode.ts",
|
||||
"local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588",
|
||||
"git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
917,
|
||||
925
|
||||
],
|
||||
"claim": "仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "src/lib/litegraph/src/LGraphNode.ts",
|
||||
"local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588",
|
||||
"git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
972,
|
||||
984
|
||||
],
|
||||
"claim": "仅参考假设位置序列化;不证明目标实际恢复"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "src/extensions/core/uploadImage.ts",
|
||||
"local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
|
||||
"git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
10,
|
||||
40
|
||||
],
|
||||
"claim": "仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"local_file": "../resize-compare-reference/../seedvr2-reference/frontend__src__scripts__widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c",
|
||||
"git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
305,
|
||||
308
|
||||
],
|
||||
"claim": "仅参考假设IMAGEUPLOAD控件构造入口"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
|
||||
"local_file": "../resize-compare-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c",
|
||||
"git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
1,
|
||||
136
|
||||
],
|
||||
"claim": "仅参考假设上传控件行为;源保存image原样保留,未上传"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "load",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/load__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "core",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/core__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "kj",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/kj__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "layer",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/layer__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559",
|
||||
"lines": [
|
||||
1,
|
||||
21
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "impact",
|
||||
"file": "LICENSE.txt",
|
||||
"local_file": "../resize-compare-reference/impact__LICENSE.txt",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "rgthree",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/rgthree__LICENSE",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"lines": [
|
||||
1,
|
||||
21
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"id": "frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../resize-compare-reference/../seedvr2-reference/frontend__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确来源许可文本;发布包Git绑定未知,前端仅显式假设"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/__init__.py",
|
||||
"sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/client.py",
|
||||
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/companions.py",
|
||||
"sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
|
||||
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
|
||||
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/dry_run.py",
|
||||
"sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/endpoints.py",
|
||||
"sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
|
||||
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
|
||||
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
|
||||
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/lint.py",
|
||||
"sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
|
||||
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/parser.py",
|
||||
"sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/patcher.py",
|
||||
"sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/preflight.py",
|
||||
"sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/profiles.py",
|
||||
"sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
|
||||
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
|
||||
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/registry.py",
|
||||
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/roles.py",
|
||||
"sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/smart_fill.py",
|
||||
"sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
|
||||
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
|
||||
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/validate.py",
|
||||
"sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/01.api.json",
|
||||
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/02.api.json",
|
||||
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/03.api.json",
|
||||
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/04.api.json",
|
||||
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/05.api.json",
|
||||
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/06.api.json",
|
||||
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/07.api.json",
|
||||
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/manifest.json",
|
||||
"sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
|
||||
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
|
||||
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
|
||||
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
|
||||
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
|
||||
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
|
||||
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
|
||||
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
|
||||
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
|
||||
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
|
||||
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
|
||||
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
|
||||
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
|
||||
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
|
||||
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
|
||||
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
|
||||
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
|
||||
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
|
||||
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
|
||||
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
|
||||
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
|
||||
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
|
||||
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
|
||||
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
|
||||
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
|
||||
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
|
||||
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
|
||||
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
|
||||
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
|
||||
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
|
||||
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
|
||||
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
|
||||
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
|
||||
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
|
||||
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
|
||||
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
|
||||
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
|
||||
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
|
||||
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
|
||||
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
|
||||
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
|
||||
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
|
||||
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
|
||||
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
|
||||
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
|
||||
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
|
||||
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
|
||||
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
|
||||
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
|
||||
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
|
||||
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
|
||||
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
|
||||
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
|
||||
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
|
||||
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
|
||||
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
|
||||
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
|
||||
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
|
||||
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
|
||||
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
|
||||
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
|
||||
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
|
||||
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
|
||||
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
|
||||
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
|
||||
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
|
||||
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
|
||||
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
|
||||
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
|
||||
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
|
||||
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
|
||||
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
|
||||
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
|
||||
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
|
||||
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
|
||||
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
|
||||
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
|
||||
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
|
||||
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
|
||||
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
|
||||
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
|
||||
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
|
||||
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
|
||||
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
|
||||
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
|
||||
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
|
||||
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
|
||||
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
|
||||
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
|
||||
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
|
||||
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
|
||||
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
|
||||
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
|
||||
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
|
||||
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
|
||||
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
|
||||
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
|
||||
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
|
||||
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
|
||||
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
|
||||
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
|
||||
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
|
||||
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
|
||||
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
|
||||
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
|
||||
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
|
||||
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
|
||||
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
|
||||
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
|
||||
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
|
||||
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
|
||||
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
|
||||
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
|
||||
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
|
||||
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
|
||||
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
|
||||
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
|
||||
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
|
||||
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
|
||||
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
|
||||
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
|
||||
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
|
||||
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
|
||||
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
|
||||
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
|
||||
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
|
||||
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
|
||||
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
|
||||
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
|
||||
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
|
||||
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
|
||||
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
|
||||
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
|
||||
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
|
||||
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
|
||||
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
|
||||
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
|
||||
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
|
||||
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
|
||||
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
|
||||
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
|
||||
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
|
||||
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
|
||||
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
|
||||
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
|
||||
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
|
||||
}
|
||||
],
|
||||
"original_files": 156,
|
||||
"all_unchanged": true
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"base": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"first": {
|
||||
"imported": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"upgrade": {
|
||||
"skipped": 154,
|
||||
"updated": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"repeat": {
|
||||
"skipped": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"restored_rows": 1,
|
||||
"untouched_whole_rows": 154,
|
||||
"eligibility_unchanged": true,
|
||||
"redo": {
|
||||
"skipped": 154,
|
||||
"updated": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"user_protection": [
|
||||
{
|
||||
"phase": "user-before",
|
||||
"counts": {
|
||||
"skipped": 154,
|
||||
"conflict": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"whole_rows": 1,
|
||||
"columns": 29
|
||||
},
|
||||
{
|
||||
"phase": "user-after",
|
||||
"counts": {
|
||||
"skipped": 154,
|
||||
"conflict": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"whole_rows": 1,
|
||||
"columns": 29
|
||||
}
|
||||
],
|
||||
"fresh": {
|
||||
"imported": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"fresh_repeat": {
|
||||
"skipped": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"source_named_fields": 1217,
|
||||
"positional_widgets": 3660,
|
||||
"companion_values": 294,
|
||||
"new_saved": 35,
|
||||
"new_notes": 0,
|
||||
"old_saved": 1034,
|
||||
"old_notes": 25,
|
||||
"overviews": 34,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "ca60842cd88dc4adecb2cba91ffd27d309e94de42174af90aa475cb9b526a9f1",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 34
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "64bc414da56186825db52dbaf240a97e9d2b81c2b0e6502ad6a17c878b8bda19",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 34
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 34
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json": "b57b68e11c6a7347947d3547c85c0e26fa174a07174d39835710bf22a953fe78"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
|
||||
"number": 25,
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"head": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"head_ref": "agent/agent/a64a969a6a44",
|
||||
"base_ref": "main"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
........................................................................ [ 31%]
|
||||
........................................................................ [ 63%]
|
||||
........................................................................ [ 95%]
|
||||
.......... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-ce46f2ab3728/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
226 passed, 1 warning in 4.76s
|
||||
@@ -0,0 +1,242 @@
|
||||
....................FFFFFFFFF........................................... [ 31%]
|
||||
........................................................................ [ 63%]
|
||||
....................................................................F... [ 95%]
|
||||
.......... [100%]
|
||||
=================================== FAILURES ===================================
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'aspect_ratio', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6765e9f0>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa6765e9f0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67618bc0>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa67618bc0> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_width', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674efa10>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa674efa10> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'proportional_height', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67423900>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa67423900> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
___ test_position_type_scope_citations_and_no_fabricated_named_values[7.fit] ___
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'fit', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa676f5570>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa676f5570> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67862110>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa67862110> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.method] __
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'method', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67864360>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa67864360> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'round_to_multiple', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67423900>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa67423900> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674efa10>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa674efa10> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_side', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa6775e8c0>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa6775e8c0> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'scale_to_length', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67748700>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa67748700> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa67613a00>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa67613a00> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_ test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color] _
|
||||
|
||||
f = {'node_id': '7', 'scope': 'root', 'class_type': 'LayerUtility: ImageScaleByAspectRatio V2', 'field': 'background_color', ...}
|
||||
|
||||
@pytest.mark.parametrize('f',BLOCK['fields'],ids=lambda f:f['node_id']+'.'+f['field'])
|
||||
def test_position_type_scope_citations_and_no_fabricated_named_values(f):
|
||||
assert canonical(pointer(SOURCE,f['pointer']))==canonical(f['value'])
|
||||
assert type(pointer(SOURCE,f['pointer'])).__name__==f['json_type']
|
||||
assert f['scope']=='root' and 'named_value' not in f and 'named_pointer' not in f
|
||||
for key in ['effect','label','schema_default','unit','limits','execution_note','role','type']: assert f[key]
|
||||
for i in f['evidence']:
|
||||
e=BLOCK['sources'][i];raw=(OUT/e['local_file']).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest()==e['sha256']
|
||||
> assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines())
|
||||
E assert 195 <= 186
|
||||
E + where 186 = len(['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...])
|
||||
E + where ['import torch', 'from PIL import Image', 'import math', 'from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask', '', '', ...] = <built-in method splitlines of str object at 0x55fa67750f70>()
|
||||
E + where <built-in method splitlines of str object at 0x55fa67750f70> = 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.splitlines
|
||||
E + where 'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, num...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}' = <built-in method decode of bytes object at 0x55fa674f1c60>()
|
||||
E + where <built-in method decode of bytes object at 0x55fa674f1c60> = b'import torch\nfrom PIL import Image\nimport math\nfrom .imagefunc import log, tensor2pil, pil2tensor, image2mask, nu...SPLAY_NAME_MAPPINGS = {\n "LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"\n}'.decode
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:47: AssertionError
|
||||
_______________ test_old_33_blocks_and_all_other_reviews_frozen ________________
|
||||
|
||||
def test_old_33_blocks_and_all_other_reviews_frozen():
|
||||
p='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
||||
old=json.loads(subprocess.check_output(['git','show','ce9502a:'+p],cwd=REPO))
|
||||
now=json.loads((REPO/p).read_bytes());now[PATH].pop('fixed_version_document')
|
||||
assert now==old and len(DEFINITIONS)==34
|
||||
blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||||
> assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:144:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
.0 = <list_iterator object at 0x7f44962dc9a0>
|
||||
|
||||
> assert len(blocks)==33 and sum(len(b['fields']) for b in blocks)==1034 and sum(len(b['comments']) for b in blocks)==25
|
||||
^^^^^^^^^^^^^
|
||||
E KeyError: 'comments'
|
||||
|
||||
calliope-backend/tests/test_resize_compare_fixed_document.py:144: KeyError
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-ce46f2ab3728/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.aspect_ratio]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_width]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.proportional_height]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.fit]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.method]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.round_to_multiple]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_side]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.scale_to_length]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_position_type_scope_citations_and_no_fabricated_named_values[7.background_color]
|
||||
FAILED calliope-backend/tests/test_resize_compare_fixed_document.py::test_old_33_blocks_and_all_other_reviews_frozen
|
||||
10 failed, 216 passed, 1 warning in 4.72s
|
||||
@@ -0,0 +1,16 @@
|
||||
[
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_resize_compare_fixed_document.py",
|
||||
"e2e/run-resize-compare-document.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/build_definition.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/check_code.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/fetch_frontend.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/fetch_packages.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/fetch_sources.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/rebuild.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/recompute.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/render_report.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/repeat.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/request_counts.py",
|
||||
"docs/hel-892/resize-compare-document-evidence/verify_sources.py"
|
||||
]
|
||||
@@ -0,0 +1,64 @@
|
||||
"Add one reviewed definition; preserve every other review object exactly."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, build, canonical
|
||||
|
||||
BASE = "ce9502af89dcc2b0047785e4425a95c010da2fec"
|
||||
RESOURCE = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
|
||||
|
||||
def build_all():
|
||||
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
|
||||
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
|
||||
for i, path in enumerate(PATHS):
|
||||
block = build(i)
|
||||
assert reviews[path]["source_sha"] == block["source_sha1"]
|
||||
assert "fixed_version_document" not in previous[path]
|
||||
reviews[path]["fixed_version_document"] = block
|
||||
return reviews, previous
|
||||
|
||||
|
||||
def main():
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
reviews, previous = build_all()
|
||||
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
|
||||
pins = {}
|
||||
for i, path in enumerate(PATHS):
|
||||
block = reviews[path]["fixed_version_document"]
|
||||
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
|
||||
(OUT / f"definition-{i}.json").write_text(
|
||||
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
|
||||
module = REPO / ("calliope-backend/src/calliope/comfyui/fixed_document.py")
|
||||
text = module.read_text()
|
||||
for path, digest in pins.items():
|
||||
old_block = current[path].get("fixed_version_document")
|
||||
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
|
||||
if old_digest and old_digest in text:
|
||||
text = text.replace(old_digest, digest)
|
||||
elif digest in text:
|
||||
pass
|
||||
else:
|
||||
text = text.replace(
|
||||
"DEFINITIONS = {",
|
||||
"DEFINITIONS = {\n (\n"
|
||||
+ "".join(
|
||||
" " + repr(path[i : i + 40]) + "\n" for i in range(0, len(path), 40)
|
||||
)
|
||||
+ " ): "
|
||||
+ repr(digest)
|
||||
+ ",",
|
||||
)
|
||||
module.write_text(text)
|
||||
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
|
||||
print(("PASS one definition; other 155 reviews and old 33 blocks unchanged"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory
|
||||
PASS actual ce9502a upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 34 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS exact bytes, source identities, release hashes, Git blobs, citations and 35/0 inventory
|
||||
PASS actual ce9502a upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 34 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,330 @@
|
||||
"Actual ce9502a upgrade, one-row protection/rollback, frozen boundaries and packages."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import sqlite3
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, canonical
|
||||
from rebuild import BASE, RESOURCE, build_all
|
||||
|
||||
sys.path.insert(0, str(REPO / "calliope-backend"))
|
||||
|
||||
|
||||
def write(name, value):
|
||||
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
def require_packages():
|
||||
dist = REPO / "calliope-backend/dist"
|
||||
w = sorted(dist.glob("*.whl"))
|
||||
s = sorted(dist.glob("*.tar.gz"))
|
||||
if not w or not s:
|
||||
raise SystemExit(
|
||||
(
|
||||
"缺少wheel/sdist包产物,请先在仓库根执行:"
|
||||
"uv build --project calliop"
|
||||
"e-backend --offline"
|
||||
)
|
||||
)
|
||||
return w[-1], s[-1]
|
||||
|
||||
|
||||
def main():
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS
|
||||
from calliope.comfyui.library import rollback_batch
|
||||
from scripts.audit_library_documents import audit
|
||||
|
||||
wheels, sdists = require_packages()
|
||||
from verify_sources import main as verify_sources
|
||||
|
||||
verify_sources()
|
||||
rebuilt, previous = build_all()
|
||||
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
|
||||
old_blocks = {
|
||||
p: r["fixed_version_document"] for p, r in previous.items() if "fixed_version_document" in r
|
||||
}
|
||||
assert len(old_blocks) == 33
|
||||
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
|
||||
assert sum(len(b["fields"]) for b in old_blocks.values()) == 1034
|
||||
for p, d in DEFINITIONS.items():
|
||||
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
|
||||
write(
|
||||
"review-delta.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
changed_paths=PATHS,
|
||||
other_reviews_unchanged=155,
|
||||
old_blocks_unchanged=33,
|
||||
old_saved=1034,
|
||||
old_notes=25,
|
||||
new_saved=35,
|
||||
new_notes=0,
|
||||
total_documents=34,
|
||||
total_saved=1069,
|
||||
total_notes=25,
|
||||
),
|
||||
)
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
work = Path(directory)
|
||||
old = work / "old"
|
||||
old.mkdir()
|
||||
data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO)
|
||||
with tarfile.open(fileobj=io.BytesIO(data)) as a:
|
||||
a.extractall(old, filter="data")
|
||||
db = work / "library.db"
|
||||
|
||||
def run(name, historical=False):
|
||||
out = work / name
|
||||
env = {
|
||||
**os.environ,
|
||||
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
|
||||
}
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"calliope.comfyui.library_cli",
|
||||
"import",
|
||||
"--root",
|
||||
str(REPO / "example_ComfyUI_workflows"),
|
||||
"--db",
|
||||
str(db),
|
||||
"--source-commit",
|
||||
BASE,
|
||||
"--companions",
|
||||
str(REPO / "docs/hel-892/supplied-api/manifest.json"),
|
||||
"--output-dir",
|
||||
str(out),
|
||||
],
|
||||
cwd=REPO,
|
||||
env=env,
|
||||
check=True,
|
||||
stdout=subprocess.DEVNULL,
|
||||
)
|
||||
return json.loads((out / "import_report.json").read_bytes()), out
|
||||
|
||||
def rows():
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
return {
|
||||
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
|
||||
}
|
||||
|
||||
first, _ = run("historical", True)
|
||||
before = rows()
|
||||
assert first["counts"] == {"imported": 155, "user_excluded": 1}
|
||||
assert all("fixed_version" not in json.loads(before[p]["doc_json"]) for p in PATHS)
|
||||
assert all(
|
||||
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
|
||||
for p in DEFINITIONS
|
||||
if p not in PATHS
|
||||
)
|
||||
original = db
|
||||
protected = []
|
||||
|
||||
def protect(name):
|
||||
nonlocal db
|
||||
db = work / (name + ".db")
|
||||
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
|
||||
src.backup(dst)
|
||||
for p in PATHS:
|
||||
dst.execute(
|
||||
("UPDATE workflows SET description=? WHERE source_repo_path=?"),
|
||||
(name, p),
|
||||
)
|
||||
snapshot = rows()
|
||||
r, _ = run(name)
|
||||
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
|
||||
assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS)
|
||||
protected.append(dict(phase=name, counts=r["counts"], whole_rows=1, columns=29))
|
||||
db = original
|
||||
|
||||
protect("user-before")
|
||||
upgrade, exported = run("upgrade")
|
||||
after = rows()
|
||||
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
|
||||
for p, row in after.items():
|
||||
if p not in PATHS:
|
||||
assert row == before[p]
|
||||
continue
|
||||
assert len(row) == 29
|
||||
assert all(
|
||||
row[k] == before[p][k]
|
||||
for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
|
||||
)
|
||||
d = json.loads(row["doc_json"])
|
||||
assert d["fixed_version"]["matched"]
|
||||
old_doc = json.loads(before[p]["doc_json"])
|
||||
without = dict(d)
|
||||
fixed = without.pop("fixed_version")
|
||||
assert without["steps"] == old_doc["steps"][:-3] + fixed["steps"]
|
||||
without["steps"] = old_doc["steps"]
|
||||
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
|
||||
assert without == old_doc
|
||||
write("actual-" + Path(p).stem + ".json", d)
|
||||
repeat, _ = run("repeat")
|
||||
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
r = rollback_batch(c, upgrade["batch_id"])
|
||||
assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"])
|
||||
assert rows() == before
|
||||
redo, _ = run("redo")
|
||||
assert redo["counts"] == upgrade["counts"]
|
||||
protect("user-after")
|
||||
db = work / "fresh.db"
|
||||
fresh, exported = run("fresh")
|
||||
fresh_repeat, _ = run("fresh-repeat")
|
||||
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
|
||||
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
|
||||
companion = 0
|
||||
for row in rows().values():
|
||||
d = json.loads(row["doc_json"])
|
||||
companion += sum(p.get("value_origin") == "supplied_api_companion" for p in d["params"])
|
||||
assert (
|
||||
not row["is_enabled"]
|
||||
and row["doc_completed_at"] is None
|
||||
and row["exec_verified_at"] is None
|
||||
)
|
||||
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
report = audit(REPO, exported)
|
||||
assert (
|
||||
report["named_values_preserved"] == 1217
|
||||
and report["unnamed_widget_nodes"] == 3660
|
||||
and companion == 294
|
||||
)
|
||||
assert report["full_documents_completed"] == report["real_executions"] == 0
|
||||
write("audit-summary.json", {k: v for k, v in report.items() if k != "files"})
|
||||
write(
|
||||
"import-protection.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
first=first["counts"],
|
||||
upgrade=upgrade["counts"],
|
||||
repeat=repeat["counts"],
|
||||
restored_rows=1,
|
||||
untouched_whole_rows=154,
|
||||
eligibility_unchanged=True,
|
||||
redo=redo["counts"],
|
||||
user_protection=protected,
|
||||
fresh=fresh["counts"],
|
||||
fresh_repeat=fresh_repeat["counts"],
|
||||
states=fresh["states"],
|
||||
source_named_fields=1217,
|
||||
positional_widgets=3660,
|
||||
companion_values=companion,
|
||||
new_saved=35,
|
||||
new_notes=0,
|
||||
old_saved=1034,
|
||||
old_notes=25,
|
||||
overviews=34,
|
||||
all_disabled=True,
|
||||
doc_done=0,
|
||||
executed=0,
|
||||
),
|
||||
)
|
||||
old_reviews = json.loads(
|
||||
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
|
||||
)
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
for p in PATHS:
|
||||
current[p].pop("fixed_version_document")
|
||||
assert current == old_reviews
|
||||
boundaries = json.loads(
|
||||
(REPO / ("docs/hel-892/h3-document-evidence/unchanged-boundaries.json")).read_bytes()
|
||||
)
|
||||
paths = (
|
||||
[f["path"] for f in boundaries["files"]]
|
||||
+ boundaries["frozen_conversion_and_audits"]
|
||||
+ ["calliope-backend/src/calliope/comfyui/library.py"]
|
||||
)
|
||||
kept = []
|
||||
for p in paths:
|
||||
raw = (REPO / p).read_bytes()
|
||||
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
|
||||
kept.append(dict(path=p, sha256=hashlib.sha256(raw).hexdigest()))
|
||||
ui = "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte"
|
||||
drawer_bytes = (REPO / ui).read_bytes()
|
||||
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
|
||||
|
||||
write(
|
||||
"boundaries.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
files=kept,
|
||||
originals=163,
|
||||
old_thirty_three_blocks_unchanged=True,
|
||||
drawer_css_unchanged=True,
|
||||
drawer_whole_file_unchanged=True,
|
||||
drawer_sha256=hashlib.sha256(drawer_bytes).hexdigest(),
|
||||
conversion_rerun=False,
|
||||
profiles_28_candidates_9_diffs_6="unchanged",
|
||||
),
|
||||
)
|
||||
tracked = (
|
||||
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
|
||||
.decode()
|
||||
.rstrip("\0")
|
||||
.split("\0")
|
||||
)
|
||||
frozen = [
|
||||
p
|
||||
for p in tracked
|
||||
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
|
||||
or p.startswith("calliope-backend/src/calliope/comfyui/")
|
||||
and p not in [RESOURCE, ("calliope-backend/src/calliope/comfyui/fixed_document.py")]
|
||||
]
|
||||
for p in frozen:
|
||||
assert (REPO / p).read_bytes() == subprocess.check_output(
|
||||
["git", "show", f"{BASE}:{p}"], cwd=REPO
|
||||
)
|
||||
write(
|
||||
"frozen-resource-check.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
files=[
|
||||
dict(path=p, sha256=hashlib.sha256((REPO / p).read_bytes()).hexdigest())
|
||||
for p in frozen
|
||||
],
|
||||
original_files=sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
|
||||
all_unchanged=True,
|
||||
),
|
||||
)
|
||||
packages = []
|
||||
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
|
||||
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
|
||||
raw = (REPO / "calliope-backend/src/calliope/comfyui" / name).read_bytes()
|
||||
assert w.read("calliope/comfyui/" + name) == raw
|
||||
member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name))
|
||||
assert s.extractfile(member).read() == raw
|
||||
packages.append(
|
||||
dict(
|
||||
file=name,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
wheel=True,
|
||||
sdist=True,
|
||||
definitions=34,
|
||||
)
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
"PASS actual ce9502a upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1/29cols, fresh155,"
|
||||
" 1217/3660/294, 34 definitions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,121 @@
|
||||
"Readable complete Chinese definitions and fixed source index from delivered data."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
lines = [
|
||||
"# 图像放大比较固定参考中文说明",
|
||||
"",
|
||||
"新增35保存位置/0注释;旧33图1034位置+25注释逐对象不变,现34图1069+25仅参考。155定稿0/实跑0/新增转换0。",
|
||||
"",
|
||||
(
|
||||
"来源local_file以docs/hel-892/resize-compare-document"
|
||||
"-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。"
|
||||
),
|
||||
"",
|
||||
]
|
||||
index = []
|
||||
for i in range(1):
|
||||
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
|
||||
lines += [
|
||||
"## " + Path(b["source_path"]).stem,
|
||||
"",
|
||||
b["user_overview"],
|
||||
"",
|
||||
b["notice"],
|
||||
"",
|
||||
"源路径:`" + b["source_path"] + "`",
|
||||
"",
|
||||
"SHA1:" + b["source_sha1"],
|
||||
"",
|
||||
"原字节SHA256:" + b["source_sha256"],
|
||||
"",
|
||||
"规范全图SHA256:" + b["canonical_sha256"],
|
||||
"",
|
||||
*[v + "\n" for v in b["versions"]],
|
||||
"### 具体连线与处理条件",
|
||||
"",
|
||||
*[v + "\n" for v in b["flow"]],
|
||||
"### 使用与核对",
|
||||
"",
|
||||
*[v + "\n" for v in b["steps"]],
|
||||
"### 逐保存位置说明",
|
||||
"",
|
||||
]
|
||||
for j, f in enumerate(b["fields"], 1):
|
||||
lines += [
|
||||
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
|
||||
"",
|
||||
f["effect"],
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
|
||||
"",
|
||||
"源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_pointer"] + "`",
|
||||
"",
|
||||
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
|
||||
"",
|
||||
"范围/条件:" + f["limits"],
|
||||
"",
|
||||
f["execution_note"],
|
||||
"",
|
||||
"依据:",
|
||||
]
|
||||
for k in f["evidence"]:
|
||||
e = b["sources"][k]
|
||||
lines += [
|
||||
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
]
|
||||
if "named_value" in f and f["named_value"] != f["value"]:
|
||||
lines += [
|
||||
"具名保存完整形态(与位置列表分开保留):",
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["named_value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += [""]
|
||||
lines += ["### 零保存节点与源注释", ""]
|
||||
for z in b["zero_saved_nodes"]:
|
||||
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
|
||||
for n in b["comments"]:
|
||||
lines += [
|
||||
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
|
||||
"",
|
||||
n["meaning"],
|
||||
"",
|
||||
"```text",
|
||||
n["text"],
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += ["### 固定原件索引", ""]
|
||||
for k, e in enumerate(b["sources"]):
|
||||
data = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
lines += [
|
||||
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
|
||||
"",
|
||||
]
|
||||
index.append(dict(document=b["source_path"], **e))
|
||||
(OUT.parent / "图像放大比较固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n")
|
||||
(OUT / "fixed-source-index.json").write_text(
|
||||
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,42 @@
|
||||
"Compare deterministic definitions and rendered artifacts without repeating unrelated tests."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REPO, canonical
|
||||
from rebuild import RESOURCE, build_all
|
||||
from render_report import main as render
|
||||
|
||||
|
||||
def main():
|
||||
a, old = build_all()
|
||||
b, previous = build_all()
|
||||
assert a == b and old == previous
|
||||
assert a == json.loads((REPO / RESOURCE).read_bytes())
|
||||
render()
|
||||
paths = [
|
||||
OUT / "fixed-source-index.json",
|
||||
OUT.parent / "图像放大比较固定参考中文说明.md",
|
||||
]
|
||||
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
render()
|
||||
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
(OUT / "repeatability.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
definitions=34,
|
||||
repeated_build_equal=True,
|
||||
repeated_render_equal=True,
|
||||
resource_sha256=hashlib.sha256(canonical(a)).hexdigest(),
|
||||
artifacts=before,
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(("PASS deterministic definitions and rendered artifacts: zero difference"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"definitions": 34,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "f6f5ac49e04438a48f5db97a3f1fd658addb8665502b0111f02d73c18729c924",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "4baa16c535c694eefaa6e242881602262b163369feb96e1656cb7b246e5e2030",
|
||||
"图像放大比较固定参考中文说明.md": "12f803a7266ece6fda13fcb999fd363260435d6e45c8602f41d99f9aa4140835"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
"Count actual local server GETs separately from browser intercepted requests."
|
||||
|
||||
import collections
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
text = (OUT / "service-0.txt").read_text()
|
||||
gets = re.findall(r'"GET ([^ ]+) HTTP/', text)
|
||||
polling = [p for p in gets if p in ["/api/jobs", "/api/events"]]
|
||||
result = dict(
|
||||
total=len(gets),
|
||||
fixed_count=len(gets) - len(polling),
|
||||
polling_count=len(polling),
|
||||
paths=dict(collections.Counter(gets)),
|
||||
readiness_included=1,
|
||||
reason=(
|
||||
"就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,"
|
||||
"服务日志只含真正到后端者,不机械等同。"
|
||||
"轮询可随计时边界±1,禁止请求始终零容忍。"
|
||||
),
|
||||
)
|
||||
browser = json.loads((OUT / "browser-results.json").read_bytes())
|
||||
assert browser["errors"] == []
|
||||
assert all(r["method"] == "GET" for r in browser["requests"])
|
||||
assert all(not p.startswith("/api/view") for p in gets)
|
||||
assert abs(result["polling_count"] - browser["request_accounting"]["polling_count"]) <= 1
|
||||
(OUT / "server-request-accounting.json").write_text(
|
||||
json.dumps(result, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print(json.dumps(result, ensure_ascii=False))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "ce9502af89dcc2b0047785e4425a95c010da2fec",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 33,
|
||||
"old_saved": 1034,
|
||||
"old_notes": 25,
|
||||
"new_saved": 35,
|
||||
"new_notes": 0,
|
||||
"total_documents": 34,
|
||||
"total_saved": 1069,
|
||||
"total_notes": 25
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"total": 120,
|
||||
"fixed_count": 110,
|
||||
"polling_count": 10,
|
||||
"paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/33": 4,
|
||||
"/api/workflows/31": 4,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/jobs": 10,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"readiness_included": 1,
|
||||
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
INFO: Started server process [765521]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
|
||||
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:60380 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60404 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60396 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39916 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39904 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39922 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39930 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39940 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39956 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39970 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39982 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39984 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39998 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40004 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40016 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40018 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40022 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40028 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40036 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:40040 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:40056 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37288 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37304 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37308 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:37322 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37332 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37334 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37340 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37350 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37354 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37370 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37382 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37398 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37406 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37414 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37422 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37426 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37430 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37434 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37436 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37448 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37458 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37472 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37480 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:37494 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:37502 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50666 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50678 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50682 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50686 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50700 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50704 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50718 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50734 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50738 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50744 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50750 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50760 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50764 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50772 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50788 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50790 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50800 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50810 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50822 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50830 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50838 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50846 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50856 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47480 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47486 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47494 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47504 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47514 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47528 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47530 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47532 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47546 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47558 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47574 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47582 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47598 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47606 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47614 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47618 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47624 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47628 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [765521]
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"all_pass": true,
|
||||
"commits": {
|
||||
"load": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"core": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"kj": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"layer": "89014d833d2ad0998d724090eff1456692692a1d"
|
||||
},
|
||||
"citations": 34,
|
||||
"texts": 26,
|
||||
"saved_positions": 35,
|
||||
"source_notes": 0,
|
||||
"local_file_base": "docs/hel-892/resize-compare-document-evidence",
|
||||
"package_git_binding": "unknown",
|
||||
"frontend": "1.45.20 reference hypothesis only; source/host unknown",
|
||||
"upstream_executed": false
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# From repo root. Locked existing dependencies only; no upstream code execution.
|
||||
PYTHONDONTWRITEBYTECODE=1 uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
|
||||
npm ci --prefix calliope-web --ignore-scripts --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/rebuild.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_resize_compare_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/check_code.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/resize-compare-document-evidence/recompute.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-resize-compare-document.py
|
||||
# Foreground browser finally stops both owned services and verifies ports 8247/5173.
|
||||
# Copy browser-results.json/service-stop.json/service-0.log (as .txt) to this evidence dir.
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/resize-compare-document-evidence/request_counts.py
|
||||
# Optional exact static source retrieval only, in this order: fetch_sources.py, fetch_packages.py, fetch_frontend.py.
|
||||
# No package installation or source/plugin/media execution. Frontend1.45.20 only explicit reference hypothesis.
|
||||
# local_file base docs/hel-892/resize-compare-document-evidence; see fixed-source-index.json.
|
||||
# Old code baseline ce9502af89dcc2b0047785e4425a95c010da2fec.
|
||||
# Source review, actual doc, import-protection.json, package-check.json, boundaries.json, repeatability.json are independent evidence.
|
||||
# Screenshot files are only local and in delivery attachments, never committed.
|
||||
@@ -0,0 +1,74 @@
|
||||
"""Offline byte, release, Git, citation and independent pointer inventory checks."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import zipfile
|
||||
|
||||
from build_definition import OUT, REF, REPO, build
|
||||
|
||||
|
||||
def main():
|
||||
b = build()
|
||||
identities = {e["id"]: e["commit"] for e in json.loads((REF / "identities.json").read_bytes())}
|
||||
for e in b["sources"]:
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()), e
|
||||
if "package_sha256" in e:
|
||||
archive = REF / (e["id"] + "-source.zip")
|
||||
assert hashlib.sha256(archive.read_bytes()).hexdigest() == e["package_sha256"]
|
||||
assert e["git_commit_binding"] == "unknown"
|
||||
with zipfile.ZipFile(archive) as z:
|
||||
assert z.read(e["file"]) == raw
|
||||
else:
|
||||
root = REF.parent / "seedvr2-reference" if e["id"] == "frontend" else REF
|
||||
tree = json.loads((root / (e["id"] + "-tree.json")).read_bytes())
|
||||
assert tree["sha"] == e["commit"] and not tree["truncated"]
|
||||
assert (
|
||||
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
== e["git_blob_sha1"]
|
||||
== next(x["sha"] for x in tree["tree"] if x["path"] == e["file"])
|
||||
)
|
||||
tag = root / (e["id"] + "-tag.json")
|
||||
if tag.exists():
|
||||
obj = json.loads(tag.read_bytes())["object"]
|
||||
assert obj["type"] == "commit" and obj["sha"] == e["commit"]
|
||||
g = json.loads((REPO / b["source_path"]).read_bytes())
|
||||
expected = [
|
||||
f"/nodes/{i}/widgets_values/{j}"
|
||||
for i, n in enumerate(g["nodes"])
|
||||
for j in range(len(n["widgets_values"]))
|
||||
]
|
||||
assert expected == [f["pointer"] for f in b["fields"]] and len(expected) == 35
|
||||
assert len(g["nodes"]) == 17 and len(g["links"]) == 20 and "definitions" not in g
|
||||
assert all(n["mode"] == 0 and "widgets_values_named" not in n for n in g["nodes"])
|
||||
assert "frontendVersion" not in g["extra"] and not b["comments"]
|
||||
(OUT / "source-check.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
all_pass=True,
|
||||
commits=identities,
|
||||
citations=len(b["sources"]),
|
||||
texts=len({e["local_file"] for e in b["sources"]}),
|
||||
saved_positions=35,
|
||||
source_notes=0,
|
||||
local_file_base=str(OUT.relative_to(REPO)),
|
||||
package_git_binding="unknown",
|
||||
frontend="1.45.20 reference hypothesis only; source/host unknown",
|
||||
upstream_executed=False,
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
(
|
||||
"PASS exact bytes, source identities, release has"
|
||||
"hes, Git blobs, citations and 35/0 inventory"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
{"ref":"refs/tags/v0.3.65","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMy42NQ","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.3.65","object":{"sha":"51696e3fdcdfad657cb15854345fbcbbe70eef8d","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/51696e3fdcdfad657cb15854345fbcbbe70eef8d"}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,429 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
+136
@@ -0,0 +1,136 @@
|
||||
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
|
||||
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
|
||||
import { t } from '@/i18n'
|
||||
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||
import type { IComboWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
import type { ResultItem, ResultItemType } from '@/schemas/apiSchema'
|
||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
|
||||
import { useNodeOutputStore } from '@/stores/nodeOutputStore'
|
||||
import { isImageUploadInput } from '@/types/nodeDefAugmentation'
|
||||
import { createAnnotatedPath } from '@/utils/createAnnotatedPath'
|
||||
import { addToComboValues } from '@/utils/litegraphUtil'
|
||||
|
||||
import {
|
||||
ACCEPTED_IMAGE_TYPES,
|
||||
ACCEPTED_VIDEO_TYPES
|
||||
} from '@/utils/mediaUploadUtil'
|
||||
|
||||
const isImageFile = (file: File) => file.type.startsWith('image/')
|
||||
const isVideoFile = (file: File) => file.type.startsWith('video/')
|
||||
|
||||
const findFileComboWidget = (
|
||||
node: LGraphNode,
|
||||
inputName: string
|
||||
): IComboWidget | undefined =>
|
||||
node.widgets?.find((w): w is IComboWidget => w.name === inputName)
|
||||
|
||||
export const useImageUploadWidget = () => {
|
||||
const widgetConstructor: ComfyWidgetConstructor = (
|
||||
node: LGraphNode,
|
||||
inputName: string,
|
||||
inputData: InputSpec
|
||||
) => {
|
||||
if (!isImageUploadInput(inputData)) {
|
||||
throw new Error(
|
||||
'Image upload widget requires imageInputName augmentation'
|
||||
)
|
||||
}
|
||||
|
||||
const inputOptions = inputData[1]
|
||||
const { imageInputName, allow_batch, image_folder = 'input' } = inputOptions
|
||||
const folder: ResultItemType | undefined = image_folder
|
||||
const nodeOutputStore = useNodeOutputStore()
|
||||
|
||||
const isAnimated = !!inputOptions.animated_image_upload
|
||||
const isVideo = !!inputOptions.video_upload
|
||||
const accept = isVideo ? ACCEPTED_VIDEO_TYPES : ACCEPTED_IMAGE_TYPES
|
||||
const { showPreview } = isVideo ? useNodeVideo(node) : useNodeImage(node)
|
||||
|
||||
const fileFilter = isVideo ? isVideoFile : isImageFile
|
||||
const fileComboWidget = findFileComboWidget(node, imageInputName)
|
||||
if (!fileComboWidget) {
|
||||
throw new Error(`Widget "${imageInputName}" not found on node`)
|
||||
}
|
||||
const formatPath = (value: string | ResultItem) =>
|
||||
createAnnotatedPath(value, { rootFolder: image_folder })
|
||||
|
||||
// Setup file upload handling
|
||||
let rollback: (() => void) | undefined
|
||||
const { openFileSelection } = useNodeImageUpload(node, {
|
||||
allow_batch,
|
||||
fileFilter,
|
||||
accept,
|
||||
folder,
|
||||
onUploadStart: (files) => {
|
||||
if (files.length > 0) {
|
||||
const prev = fileComboWidget.value
|
||||
fileComboWidget.value = files[0].name
|
||||
rollback = () => {
|
||||
fileComboWidget.value = prev
|
||||
}
|
||||
}
|
||||
},
|
||||
onUploadError: () => {
|
||||
rollback?.()
|
||||
rollback = undefined
|
||||
},
|
||||
onUploadComplete: (output) => {
|
||||
rollback = undefined
|
||||
const annotated = output.map(formatPath)
|
||||
annotated.forEach((path) => {
|
||||
addToComboValues(fileComboWidget, path)
|
||||
})
|
||||
|
||||
const newValue = allow_batch ? annotated : annotated[0]
|
||||
const oldValue = fileComboWidget.value
|
||||
|
||||
// @ts-expect-error litegraph combo value type does not support arrays yet
|
||||
fileComboWidget.value = newValue
|
||||
fileComboWidget.callback?.(newValue)
|
||||
node.onWidgetChanged?.(
|
||||
fileComboWidget.name,
|
||||
newValue,
|
||||
oldValue,
|
||||
fileComboWidget
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
// Create the button widget for selecting the files
|
||||
const uploadWidget = node.addWidget(
|
||||
'button',
|
||||
inputName,
|
||||
'image',
|
||||
() => openFileSelection(),
|
||||
{
|
||||
serialize: false,
|
||||
canvasOnly: true
|
||||
}
|
||||
)
|
||||
uploadWidget.label = t('g.choose_file_to_upload')
|
||||
|
||||
// Add our own callback to the combo widget to render an image when it changes
|
||||
fileComboWidget.callback = function () {
|
||||
node.imgs = undefined
|
||||
nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), {
|
||||
isAnimated
|
||||
})
|
||||
node.graph?.setDirtyCanvas(true)
|
||||
}
|
||||
|
||||
// On load if we have a value then render the image
|
||||
// The value isn't set immediately so we need to wait a moment
|
||||
// No change callbacks seem to be fired on initial setting of the value
|
||||
requestAnimationFrame(() => {
|
||||
nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), {
|
||||
isAnimated
|
||||
})
|
||||
showPreview({ block: false })
|
||||
})
|
||||
|
||||
return { widget: uploadWidget }
|
||||
}
|
||||
|
||||
return widgetConstructor
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"id": "load",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"repo": "kijai/ComfyUI-KJNodes",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,75 @@
|
||||
[
|
||||
".github/workflows/publish.yml",
|
||||
".gitignore",
|
||||
".gitmodules",
|
||||
"LICENSE.txt",
|
||||
"README.md",
|
||||
"__init__.py",
|
||||
"custom_wildcards/put_wildcards_here",
|
||||
"example_workflows/1-FaceDetailer.jpg",
|
||||
"example_workflows/1-FaceDetailer.json",
|
||||
"example_workflows/2-MaskDetailer.jpg",
|
||||
"example_workflows/2-MaskDetailer.json",
|
||||
"example_workflows/3-SEGSDetailer.jpg",
|
||||
"example_workflows/3-SEGSDetailer.json",
|
||||
"example_workflows/4-MakeTileSEGS-Upscale.jpg",
|
||||
"example_workflows/4-MakeTileSEGS-Upscale.json",
|
||||
"example_workflows/5-PreviewDetailerHookProvider.jpg",
|
||||
"example_workflows/5-PreviewDetailerHookProvider.json",
|
||||
"example_workflows/5-prompt-per-tile.jpg",
|
||||
"example_workflows/5-prompt-per-tile.json",
|
||||
"example_workflows/6-DetailerWildcard.jpg",
|
||||
"example_workflows/6-DetailerWildcard.json",
|
||||
"install.py",
|
||||
"js/common.js",
|
||||
"js/impact-image-util.js",
|
||||
"js/impact-pack.js",
|
||||
"js/impact-sam-editor.js",
|
||||
"js/impact-segs-picker.js",
|
||||
"js/mask-rect-area-advanced.js",
|
||||
"js/mask-rect-area.js",
|
||||
"latent.png",
|
||||
"locales/ko/nodeDefs.json",
|
||||
"modules/impact/additional_dependencies.py",
|
||||
"modules/impact/animatediff_nodes.py",
|
||||
"modules/impact/bridge_nodes.py",
|
||||
"modules/impact/config.py",
|
||||
"modules/impact/core.py",
|
||||
"modules/impact/defs.py",
|
||||
"modules/impact/detectors.py",
|
||||
"modules/impact/hf_nodes.py",
|
||||
"modules/impact/hook_nodes.py",
|
||||
"modules/impact/hooks.py",
|
||||
"modules/impact/impact_onnx.py",
|
||||
"modules/impact/impact_pack.py",
|
||||
"modules/impact/impact_sampling.py",
|
||||
"modules/impact/impact_server.py",
|
||||
"modules/impact/logics.py",
|
||||
"modules/impact/pipe.py",
|
||||
"modules/impact/segs_nodes.py",
|
||||
"modules/impact/segs_upscaler.py",
|
||||
"modules/impact/special_samplers.py",
|
||||
"modules/impact/util_nodes.py",
|
||||
"modules/impact/utils.py",
|
||||
"modules/impact/wildcards.py",
|
||||
"modules/thirdparty/noise_nodes.py",
|
||||
"node_list.json",
|
||||
"notebook/comfyui_colab_impact_pack.ipynb",
|
||||
"pyproject.toml",
|
||||
"requirements.txt",
|
||||
"ruff.toml",
|
||||
"test/advanced-sampler.json",
|
||||
"test/detailer-pipe-test-sdxl.json",
|
||||
"test/detailer-pipe-test.json",
|
||||
"test/impactwildcardprocessor_separate_tests.json",
|
||||
"test/impactwildcardprocessor_yaml_tests.json",
|
||||
"test/loop-test.json",
|
||||
"test/masks.json",
|
||||
"test/regional_prompt.json",
|
||||
"troubleshooting/TROUBLESHOOTING.md",
|
||||
"troubleshooting/black1.png",
|
||||
"troubleshooting/black2.png",
|
||||
"wildcards/put_wildcards_here",
|
||||
"wildcards/samples/flower.txt",
|
||||
"wildcards/samples/jewel.txt"
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"changelog":"","createdAt":"2025-10-09T16:47:03.479217Z","dependencies":["segment-anything","scikit-image","piexif","transformers","opencv-python-headless","GitPython","scipy\u003e=1.11.4"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip","id":"e1f51319-20ae-46a0-96ac-2c5edda159d5","node_id":"comfyui-impact-pack","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"8.25.1"}
|
||||
Binary file not shown.
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,456 @@
|
||||
"""
|
||||
@author: Dr.Lt.Data
|
||||
@title: Impact Pack
|
||||
@nickname: Impact Pack
|
||||
@description: This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler.
|
||||
"""
|
||||
|
||||
import folder_paths
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
comfy_path = os.path.dirname(folder_paths.__file__)
|
||||
impact_path = os.path.join(os.path.dirname(__file__))
|
||||
modules_path = os.path.join(os.path.dirname(__file__), "modules")
|
||||
|
||||
sys.path.append(modules_path)
|
||||
|
||||
import impact.config
|
||||
logging.info(f"### Loading: ComfyUI-Impact-Pack ({impact.config.version})")
|
||||
|
||||
# Core
|
||||
# recheck dependencies for colab
|
||||
try:
|
||||
import folder_paths
|
||||
import torch # noqa: F401
|
||||
import cv2 # noqa: F401
|
||||
from cv2 import setNumThreads # noqa: F401
|
||||
import numpy as np # noqa: F401
|
||||
import comfy.samplers
|
||||
import comfy.sd # noqa: F401
|
||||
from PIL import Image, ImageFilter # noqa: F401
|
||||
from skimage.measure import label, regionprops # noqa: F401
|
||||
from collections import namedtuple # noqa: F401
|
||||
import piexif # noqa: F401
|
||||
import nodes
|
||||
except Exception as e:
|
||||
import logging
|
||||
logging.error("[Impact Pack] Failed to import due to several dependencies are missing!!!!")
|
||||
raise e
|
||||
|
||||
|
||||
import impact.impact_server # to load server api
|
||||
|
||||
from .modules.impact.impact_pack import * # noqa: F403
|
||||
from .modules.impact.detectors import * # noqa: F403
|
||||
from .modules.impact.pipe import * # noqa: F403
|
||||
from .modules.impact.logics import * # noqa: F403
|
||||
from .modules.impact.util_nodes import * # noqa: F403
|
||||
from .modules.impact.segs_nodes import * # noqa: F403
|
||||
from .modules.impact.special_samplers import * # noqa: F403
|
||||
from .modules.impact.hf_nodes import * # noqa: F403
|
||||
from .modules.impact.bridge_nodes import * # noqa: F403
|
||||
from .modules.impact.hook_nodes import * # noqa: F403
|
||||
from .modules.impact.animatediff_nodes import * # noqa: F403
|
||||
from .modules.impact.segs_upscaler import * # noqa: F403
|
||||
|
||||
import threading
|
||||
|
||||
|
||||
threading.Thread(target=impact.wildcards.wildcard_load).start()
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"SAMLoader": SAMLoader, # noqa: F405
|
||||
"CLIPSegDetectorProvider": CLIPSegDetectorProvider, # noqa: F405
|
||||
"ONNXDetectorProvider": ONNXDetectorProvider, # noqa: F405
|
||||
|
||||
"BitwiseAndMaskForEach": BitwiseAndMaskForEach, # noqa: F405
|
||||
"SubtractMaskForEach": SubtractMaskForEach, # noqa: F405
|
||||
|
||||
"DetailerForEach": DetailerForEach, # noqa: F405
|
||||
"DetailerForEachAutoRetry": DetailerForEachAutoRetry, # noqa: F405
|
||||
"DetailerForEachDebug": DetailerForEachTest, # noqa: F405
|
||||
"DetailerForEachPipe": DetailerForEachPipe, # noqa: F405
|
||||
"DetailerForEachDebugPipe": DetailerForEachTestPipe, # noqa: F405
|
||||
"DetailerForEachPipeForAnimateDiff": DetailerForEachPipeForAnimateDiff, # noqa: F405
|
||||
|
||||
"SAMDetectorCombined": SAMDetectorCombined, # noqa: F405
|
||||
"SAMDetectorSegmented": SAMDetectorSegmented, # noqa: F405
|
||||
|
||||
"FaceDetailer": FaceDetailer, # noqa: F405
|
||||
"FaceDetailerPipe": FaceDetailerPipe, # noqa: F405
|
||||
"MaskDetailerPipe": MaskDetailerPipe, # noqa: F405
|
||||
|
||||
"ToDetailerPipe": ToDetailerPipe, # noqa: F405
|
||||
"ToDetailerPipeSDXL": ToDetailerPipeSDXL, # noqa: F405
|
||||
"FromDetailerPipe": FromDetailerPipe, # noqa: F405
|
||||
"FromDetailerPipe_v2": FromDetailerPipe_v2, # noqa: F405
|
||||
"FromDetailerPipeSDXL": FromDetailerPipe_SDXL, # noqa: F405
|
||||
"AnyPipeToBasic": AnyPipeToBasic, # noqa: F405
|
||||
"ToBasicPipe": ToBasicPipe, # noqa: F405
|
||||
"FromBasicPipe": FromBasicPipe, # noqa: F405
|
||||
"FromBasicPipe_v2": FromBasicPipe_v2, # noqa: F405
|
||||
"BasicPipeToDetailerPipe": BasicPipeToDetailerPipe, # noqa: F405
|
||||
"BasicPipeToDetailerPipeSDXL": BasicPipeToDetailerPipeSDXL, # noqa: F405
|
||||
"DetailerPipeToBasicPipe": DetailerPipeToBasicPipe, # noqa: F405
|
||||
"EditBasicPipe": EditBasicPipe, # noqa: F405
|
||||
"EditDetailerPipe": EditDetailerPipe, # noqa: F405
|
||||
"EditDetailerPipeSDXL": EditDetailerPipeSDXL, # noqa: F405
|
||||
|
||||
"LatentPixelScale": LatentPixelScale, # noqa: F405
|
||||
"PixelKSampleUpscalerProvider": PixelKSampleUpscalerProvider, # noqa: F405
|
||||
"PixelKSampleUpscalerProviderPipe": PixelKSampleUpscalerProviderPipe, # noqa: F405
|
||||
"IterativeLatentUpscale": IterativeLatentUpscale, # noqa: F405
|
||||
"IterativeImageUpscale": IterativeImageUpscale, # noqa: F405
|
||||
"PixelTiledKSampleUpscalerProvider": PixelTiledKSampleUpscalerProvider, # noqa: F405
|
||||
"PixelTiledKSampleUpscalerProviderPipe": PixelTiledKSampleUpscalerProviderPipe, # noqa: F405
|
||||
"TwoSamplersForMaskUpscalerProvider": TwoSamplersForMaskUpscalerProvider, # noqa: F405
|
||||
"TwoSamplersForMaskUpscalerProviderPipe": TwoSamplersForMaskUpscalerProviderPipe, # noqa: F405
|
||||
|
||||
"PixelKSampleHookCombine": PixelKSampleHookCombine, # noqa: F405
|
||||
"DenoiseScheduleHookProvider": DenoiseScheduleHookProvider, # noqa: F405
|
||||
"StepsScheduleHookProvider": StepsScheduleHookProvider, # noqa: F405
|
||||
"CfgScheduleHookProvider": CfgScheduleHookProvider, # noqa: F405
|
||||
"NoiseInjectionHookProvider": NoiseInjectionHookProvider, # noqa: F405
|
||||
"UnsamplerHookProvider": UnsamplerHookProvider, # noqa: F405
|
||||
"CoreMLDetailerHookProvider": CoreMLDetailerHookProvider, # noqa: F405
|
||||
"PreviewDetailerHookProvider": PreviewDetailerHookProvider, # noqa: F405
|
||||
"BlackPatchRetryHookProvider": BlackPatchRetryHookProvider, # noqa: F405
|
||||
"CustomSamplerDetailerHookProvider": CustomSamplerDetailerHookProvider, # noqa: F405
|
||||
"LamaRemoverDetailerHookProvider": LamaRemoverDetailerHookProvider, # noqa: F405
|
||||
|
||||
"DetailerHookCombine": DetailerHookCombine, # noqa: F405
|
||||
"NoiseInjectionDetailerHookProvider": NoiseInjectionDetailerHookProvider, # noqa: F405
|
||||
"UnsamplerDetailerHookProvider": UnsamplerDetailerHookProvider, # noqa: F405
|
||||
"DenoiseSchedulerDetailerHookProvider": DenoiseSchedulerDetailerHookProvider, # noqa: F405
|
||||
"SEGSOrderedFilterDetailerHookProvider": SEGSOrderedFilterDetailerHookProvider, # noqa: F405
|
||||
"SEGSRangeFilterDetailerHookProvider": SEGSRangeFilterDetailerHookProvider, # noqa: F405
|
||||
"SEGSLabelFilterDetailerHookProvider": SEGSLabelFilterDetailerHookProvider, # noqa: F405
|
||||
"VariationNoiseDetailerHookProvider": VariationNoiseDetailerHookProvider, # noqa: F405
|
||||
# "CustomNoiseDetailerHookProvider": CustomNoiseDetailerHookProvider,
|
||||
|
||||
"BitwiseAndMask": BitwiseAndMask, # noqa: F405
|
||||
"SubtractMask": SubtractMask, # noqa: F405
|
||||
"AddMask": AddMask, # noqa: F405
|
||||
"MaskRectArea": MaskRectArea, # noqa: F405
|
||||
"MaskRectAreaAdvanced": MaskRectAreaAdvanced, # noqa: F405
|
||||
"ImpactSegsAndMask": SegsBitwiseAndMask, # noqa: F405
|
||||
"ImpactSegsAndMaskForEach": SegsBitwiseAndMaskForEach, # noqa: F405
|
||||
"EmptySegs": EmptySEGS, # noqa: F405
|
||||
"ImpactFlattenMask": FlattenMask, # noqa: F405
|
||||
|
||||
"MediaPipeFaceMeshToSEGS": MediaPipeFaceMeshToSEGS, # noqa: F405
|
||||
"MaskToSEGS": MaskToSEGS, # noqa: F405
|
||||
"MaskToSEGS_for_AnimateDiff": MaskToSEGS_for_AnimateDiff, # noqa: F405
|
||||
"ToBinaryMask": ToBinaryMask, # noqa: F405
|
||||
"MasksToMaskList": MasksToMaskList, # noqa: F405
|
||||
"MaskListToMaskBatch": MaskListToMaskBatch, # noqa: F405
|
||||
"ImageListToImageBatch": ImageListToImageBatch, # noqa: F405
|
||||
"SetDefaultImageForSEGS": DefaultImageForSEGS, # noqa: F405
|
||||
"RemoveImageFromSEGS": RemoveImageFromSEGS, # noqa: F405
|
||||
|
||||
"BboxDetectorSEGS": BboxDetectorForEach, # noqa: F405
|
||||
"SegmDetectorSEGS": SegmDetectorForEach, # noqa: F405
|
||||
"ONNXDetectorSEGS": BboxDetectorForEach, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGS_for_AD": SimpleDetectorForAnimateDiff, # noqa: F405
|
||||
"ImpactSAM2VideoDetectorSEGS": SAM2VideoDetectorSEGS, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGS": SimpleDetectorForEach, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGSPipe": SimpleDetectorForEachPipe, # noqa: F405
|
||||
"ImpactControlNetApplySEGS": ControlNetApplySEGS, # noqa: F405
|
||||
"ImpactControlNetApplyAdvancedSEGS": ControlNetApplyAdvancedSEGS, # noqa: F405
|
||||
"ImpactControlNetClearSEGS": ControlNetClearSEGS, # noqa: F405
|
||||
"ImpactIPAdapterApplySEGS": IPAdapterApplySEGS, # noqa: F405
|
||||
|
||||
"ImpactDecomposeSEGS": DecomposeSEGS, # noqa: F405
|
||||
"ImpactAssembleSEGS": AssembleSEGS, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT": From_SEG_ELT, # noqa: F405
|
||||
"ImpactEdit_SEG_ELT": Edit_SEG_ELT, # noqa: F405
|
||||
"ImpactDilate_Mask_SEG_ELT": Dilate_SEG_ELT, # noqa: F405
|
||||
"ImpactDilateMask": DilateMask, # noqa: F405
|
||||
"ImpactGaussianBlurMask": GaussianBlurMask, # noqa: F405
|
||||
"ImpactDilateMaskInSEGS": DilateMaskInSEGS, # noqa: F405
|
||||
"ImpactGaussianBlurMaskInSEGS": GaussianBlurMaskInSEGS, # noqa: F405
|
||||
"ImpactScaleBy_BBOX_SEG_ELT": SEG_ELT_BBOX_ScaleBy, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT_bbox": From_SEG_ELT_bbox, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT_crop_region": From_SEG_ELT_crop_region, # noqa: F405
|
||||
"ImpactCount_Elts_in_SEGS": Count_Elts_in_SEGS, # noqa: F405
|
||||
|
||||
"BboxDetectorCombined_v2": BboxDetectorCombined, # noqa: F405
|
||||
"SegmDetectorCombined_v2": SegmDetectorCombined, # noqa: F405
|
||||
"SegsToCombinedMask": SegsToCombinedMask, # noqa: F405
|
||||
|
||||
"KSamplerProvider": KSamplerProvider, # noqa: F405
|
||||
"TwoSamplersForMask": TwoSamplersForMask, # noqa: F405
|
||||
"TiledKSamplerProvider": TiledKSamplerProvider, # noqa: F405
|
||||
|
||||
"KSamplerAdvancedProvider": KSamplerAdvancedProvider, # noqa: F405
|
||||
"TwoAdvancedSamplersForMask": TwoAdvancedSamplersForMask, # noqa: F405
|
||||
|
||||
"ImpactNegativeConditioningPlaceholder": NegativeConditioningPlaceholder, # noqa: F405
|
||||
|
||||
"PreviewBridge": PreviewBridge, # noqa: F405
|
||||
"PreviewBridgeLatent": PreviewBridgeLatent, # noqa: F405
|
||||
"ImageSender": ImageSender, # noqa: F405
|
||||
"ImageReceiver": ImageReceiver, # noqa: F405
|
||||
"LatentSender": LatentSender, # noqa: F405
|
||||
"LatentReceiver": LatentReceiver, # noqa: F405
|
||||
"ImageMaskSwitch": ImageMaskSwitch, # noqa: F405
|
||||
"LatentSwitch": GeneralSwitch, # noqa: F405
|
||||
"SEGSSwitch": GeneralSwitch, # noqa: F405
|
||||
"ImpactSwitch": GeneralSwitch, # noqa: F405
|
||||
"ImpactInversedSwitch": GeneralInversedSwitch, # noqa: F405
|
||||
|
||||
"ImpactWildcardProcessor": ImpactWildcardProcessor, # noqa: F405
|
||||
"ImpactWildcardEncode": ImpactWildcardEncode, # noqa: F405
|
||||
|
||||
"SEGSUpscaler": SEGSUpscaler, # noqa: F405
|
||||
"SEGSUpscalerPipe": SEGSUpscalerPipe, # noqa: F405
|
||||
"SEGSDetailer": SEGSDetailer, # noqa: F405
|
||||
"SEGSPaste": SEGSPaste, # noqa: F405
|
||||
"SEGSPreview": SEGSPreview, # noqa: F405
|
||||
"SEGSPreviewCNet": SEGSPreviewCNet, # noqa: F405
|
||||
"SEGSToImageList": SEGSToImageList, # noqa: F405
|
||||
"ImpactSEGSToMaskList": SEGSToMaskList, # noqa: F405
|
||||
"ImpactSEGSToMaskBatch": SEGSToMaskBatch, # noqa: F405
|
||||
"ImpactSEGSConcat": SEGSConcat, # noqa: F405
|
||||
"ImpactSEGSPicker": SEGSPicker, # noqa: F405
|
||||
"ImpactMakeTileSEGS": MakeTileSEGS, # noqa: F405
|
||||
"ImpactSEGSMerge": SEGSMerge, # noqa: F405
|
||||
|
||||
"SEGSDetailerForAnimateDiff": SEGSDetailerForAnimateDiff, # noqa: F405
|
||||
|
||||
"ImpactKSamplerBasicPipe": KSamplerBasicPipe, # noqa: F405
|
||||
"ImpactKSamplerAdvancedBasicPipe": KSamplerAdvancedBasicPipe, # noqa: F405
|
||||
|
||||
"ReencodeLatent": ReencodeLatent, # noqa: F405
|
||||
"ReencodeLatentPipe": ReencodeLatentPipe, # noqa: F405
|
||||
|
||||
"ImpactImageBatchToImageList": ImageBatchToImageList, # noqa: F405
|
||||
"ImpactMakeImageList": MakeImageList, # noqa: F405
|
||||
"ImpactMakeImageBatch": MakeImageBatch, # noqa: F405
|
||||
"ImpactMakeAnyList": MakeAnyList, # noqa: F405
|
||||
"ImpactMakeMaskList": MakeMaskList, # noqa: F405
|
||||
"ImpactMakeMaskBatch": MakeMaskBatch, # noqa: F405
|
||||
"ImpactSelectNthItemOfAnyList": NthItemOfAnyList, # noqa: F405
|
||||
|
||||
"RegionalSampler": RegionalSampler, # noqa: F405
|
||||
"RegionalSamplerAdvanced": RegionalSamplerAdvanced, # noqa: F405
|
||||
"CombineRegionalPrompts": CombineRegionalPrompts, # noqa: F405
|
||||
"RegionalPrompt": RegionalPrompt, # noqa: F405
|
||||
|
||||
"ImpactCombineConditionings": CombineConditionings, # noqa: F405
|
||||
"ImpactConcatConditionings": ConcatConditionings, # noqa: F405
|
||||
|
||||
"ImpactSEGSLabelAssign": SEGSLabelAssign, # noqa: F405
|
||||
"ImpactSEGSLabelFilter": SEGSLabelFilter, # noqa: F405
|
||||
"ImpactSEGSRangeFilter": SEGSRangeFilter, # noqa: F405
|
||||
"ImpactSEGSOrderedFilter": SEGSOrderedFilter, # noqa: F405
|
||||
"ImpactSEGSIntersectionFilter": SEGSIntersectionFilter, # noqa: F405
|
||||
"ImpactSEGSNMSFilter": SEGSNMSFilter, # noqa: F405
|
||||
|
||||
"ImpactCompare": ImpactCompare, # noqa: F405
|
||||
"ImpactConditionalBranch": ImpactConditionalBranch, # noqa: F405
|
||||
"ImpactConditionalBranchSelMode": ImpactConditionalBranchSelMode, # noqa: F405
|
||||
"ImpactIfNone": ImpactIfNone, # noqa: F405
|
||||
"ImpactConvertDataType": ImpactConvertDataType, # noqa: F405
|
||||
"ImpactLogicalOperators": ImpactLogicalOperators, # noqa: F405
|
||||
"ImpactInt": ImpactInt, # noqa: F405
|
||||
"ImpactFloat": ImpactFloat, # noqa: F405
|
||||
"ImpactBoolean": ImpactBoolean, # noqa: F405
|
||||
"ImpactValueSender": ImpactValueSender, # noqa: F405
|
||||
"ImpactValueReceiver": ImpactValueReceiver, # noqa: F405
|
||||
"ImpactImageInfo": ImpactImageInfo, # noqa: F405
|
||||
"ImpactLatentInfo": ImpactLatentInfo, # noqa: F405
|
||||
"ImpactMinMax": ImpactMinMax, # noqa: F405
|
||||
"ImpactNeg": ImpactNeg, # noqa: F405
|
||||
"ImpactConditionalStopIteration": ImpactConditionalStopIteration, # noqa: F405
|
||||
"ImpactStringSelector": StringSelector, # noqa: F405
|
||||
"StringListToString": StringListToString, # noqa: F405
|
||||
"WildcardPromptFromString": WildcardPromptFromString, # noqa: F405
|
||||
"ImpactExecutionOrderController": ImpactExecutionOrderController, # noqa: F405
|
||||
"ImpactListBridge": ImpactListBridge, # noqa: F405
|
||||
|
||||
"RemoveNoiseMask": RemoveNoiseMask, # noqa: F405
|
||||
|
||||
"ImpactLogger": ImpactLogger, # noqa: F405
|
||||
"ImpactDummyInput": ImpactDummyInput, # noqa: F405
|
||||
|
||||
"ImpactQueueTrigger": ImpactQueueTrigger, # noqa: F405
|
||||
"ImpactQueueTriggerCountdown": ImpactQueueTriggerCountdown, # noqa: F405
|
||||
"ImpactSetWidgetValue": ImpactSetWidgetValue, # noqa: F405
|
||||
"ImpactNodeSetMuteState": ImpactNodeSetMuteState, # noqa: F405
|
||||
"ImpactControlBridge": ImpactControlBridge, # noqa: F405
|
||||
"ImpactIsNotEmptySEGS": ImpactNotEmptySEGS, # noqa: F405
|
||||
"ImpactSleep": ImpactSleep, # noqa: F405
|
||||
"ImpactRemoteBoolean": ImpactRemoteBoolean, # noqa: F405
|
||||
"ImpactRemoteInt": ImpactRemoteInt, # noqa: F405
|
||||
|
||||
"ImpactHFTransformersClassifierProvider": HF_TransformersClassifierProvider, # noqa: F405
|
||||
"ImpactSEGSClassify": SEGS_Classify, # noqa: F405
|
||||
|
||||
"ImpactSchedulerAdapter": ImpactSchedulerAdapter, # noqa: F405
|
||||
"GITSSchedulerFuncProvider": GITSSchedulerFuncProvider # noqa: F405
|
||||
}
|
||||
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"SAMLoader": "SAMLoader (Impact)",
|
||||
|
||||
"BboxDetectorSEGS": "BBOX Detector (SEGS)",
|
||||
"SegmDetectorSEGS": "SEGM Detector (SEGS)",
|
||||
"ONNXDetectorSEGS": "ONNX Detector (SEGS/legacy) - use BBOXDetector",
|
||||
"ImpactSimpleDetectorSEGS_for_AD": "Simple Detector for Video (SEGS)",
|
||||
"ImpactSAM2VideoDetectorSEGS": "SAM2 Video Detector (SEGS)",
|
||||
"ImpactSimpleDetectorSEGS": "Simple Detector (SEGS)",
|
||||
"ImpactSimpleDetectorSEGSPipe": "Simple Detector (SEGS/pipe)",
|
||||
"ImpactControlNetApplySEGS": "ControlNetApply (SEGS) - DEPRECATED",
|
||||
"ImpactControlNetApplyAdvancedSEGS": "ControlNetApply (SEGS)",
|
||||
"ImpactIPAdapterApplySEGS": "IPAdapterApply (SEGS)",
|
||||
|
||||
"BboxDetectorCombined_v2": "BBOX Detector (combined)",
|
||||
"SegmDetectorCombined_v2": "SEGM Detector (combined)",
|
||||
"SegsToCombinedMask": "SEGS to MASK (combined)",
|
||||
"MediaPipeFaceMeshToSEGS": "MediaPipe FaceMesh to SEGS",
|
||||
"MaskToSEGS": "MASK to SEGS",
|
||||
"MaskToSEGS_for_AnimateDiff": "MASK to SEGS for Video",
|
||||
"BitwiseAndMaskForEach": "Pixelwise(SEGS & SEGS)",
|
||||
"SubtractMaskForEach": "Pixelwise(SEGS - SEGS)",
|
||||
"ImpactSegsAndMask": "Pixelwise(SEGS & MASK)",
|
||||
"ImpactSegsAndMaskForEach": "Pixelwise(SEGS & MASKS ForEach)",
|
||||
"BitwiseAndMask": "Pixelwise(MASK & MASK)",
|
||||
"SubtractMask": "Pixelwise(MASK - MASK)",
|
||||
"AddMask": "Pixelwise(MASK + MASK)",
|
||||
"MaskRectArea": "Mask Rect Area",
|
||||
"MaskRectAreaAdvanced": "Mask Rect Area (Advanced)",
|
||||
"ImpactFlattenMask": "Flatten Mask Batch",
|
||||
"DetailerForEach": "Detailer (SEGS)",
|
||||
"DetailerForEachAutoRetry": "Detailer (SEGS) with auto retry",
|
||||
"DetailerForEachPipe": "Detailer (SEGS/pipe)",
|
||||
"DetailerForEachDebug": "DetailerDebug (SEGS)",
|
||||
"DetailerForEachDebugPipe": "DetailerDebug (SEGS/pipe)",
|
||||
"SEGSDetailerForAnimateDiff": "SEGSDetailer For Video (SEGS/pipe)",
|
||||
"DetailerForEachPipeForAnimateDiff": "Detailer For Video (SEGS/pipe)",
|
||||
"SEGSUpscaler": "Upscaler (SEGS)",
|
||||
"SEGSUpscalerPipe": "Upscaler (SEGS/pipe)",
|
||||
|
||||
"SAMDetectorCombined": "SAMDetector (combined)",
|
||||
"SAMDetectorSegmented": "SAMDetector (segmented)",
|
||||
"FaceDetailerPipe": "FaceDetailer (pipe)",
|
||||
"MaskDetailerPipe": "MaskDetailer (pipe)",
|
||||
|
||||
"FromDetailerPipeSDXL": "FromDetailer (SDXL/pipe)",
|
||||
"BasicPipeToDetailerPipeSDXL": "BasicPipe -> DetailerPipe (SDXL)",
|
||||
"EditDetailerPipeSDXL": "Edit DetailerPipe (SDXL)",
|
||||
|
||||
"BasicPipeToDetailerPipe": "BasicPipe -> DetailerPipe",
|
||||
"DetailerPipeToBasicPipe": "DetailerPipe -> BasicPipe",
|
||||
"EditBasicPipe": "Edit BasicPipe",
|
||||
"EditDetailerPipe": "Edit DetailerPipe",
|
||||
"AnyPipeToBasic": "Any PIPE -> BasicPipe",
|
||||
|
||||
"LatentPixelScale": "Latent Scale (on Pixel Space)",
|
||||
"IterativeLatentUpscale": "Iterative Upscale (Latent/on Pixel Space)",
|
||||
"IterativeImageUpscale": "Iterative Upscale (Image)",
|
||||
|
||||
"TwoSamplersForMaskUpscalerProvider": "TwoSamplersForMask Upscaler Provider",
|
||||
"TwoSamplersForMaskUpscalerProviderPipe": "TwoSamplersForMask Upscaler Provider (pipe)",
|
||||
|
||||
"ReencodeLatent": "Reencode Latent",
|
||||
"ReencodeLatentPipe": "Reencode Latent (pipe)",
|
||||
|
||||
"ImpactKSamplerBasicPipe": "KSampler (pipe)",
|
||||
"ImpactKSamplerAdvancedBasicPipe": "KSampler (Advanced/pipe)",
|
||||
"ImpactSEGSLabelAssign": "SEGS Assign (label)",
|
||||
"ImpactSEGSLabelFilter": "SEGS Filter (label)",
|
||||
"ImpactSEGSRangeFilter": "SEGS Filter (range)",
|
||||
"ImpactSEGSOrderedFilter": "SEGS Filter (ordered)",
|
||||
"ImpactSEGSIntersectionFilter": "SEGS Filter (intersection)",
|
||||
"ImpactSEGSNMSFilter": "SEGS Filter (non max suppression)",
|
||||
"ImpactSEGSConcat": "SEGS Concat",
|
||||
"ImpactSEGSToMaskList": "SEGS to Mask List",
|
||||
"ImpactSEGSToMaskBatch": "SEGS to Mask Batch",
|
||||
"ImpactSEGSPicker": "Picker (SEGS)",
|
||||
"ImpactMakeTileSEGS": "Make Tile SEGS",
|
||||
"ImpactSEGSMerge": "SEGS Merge",
|
||||
|
||||
"ImpactDecomposeSEGS": "Decompose (SEGS)",
|
||||
"ImpactAssembleSEGS": "Assemble (SEGS)",
|
||||
"ImpactFrom_SEG_ELT": "From SEG_ELT",
|
||||
"ImpactEdit_SEG_ELT": "Edit SEG_ELT",
|
||||
"ImpactFrom_SEG_ELT_bbox": "From SEG_ELT bbox",
|
||||
"ImpactFrom_SEG_ELT_crop_region": "From SEG_ELT crop_region",
|
||||
"ImpactDilate_Mask_SEG_ELT": "Dilate Mask (SEG_ELT)",
|
||||
"ImpactScaleBy_BBOX_SEG_ELT": "ScaleBy BBOX (SEG_ELT)",
|
||||
"ImpactCount_Elts_in_SEGS": "Count Elts in SEGS",
|
||||
"ImpactDilateMask": "Dilate Mask",
|
||||
"ImpactGaussianBlurMask": "Gaussian Blur Mask",
|
||||
"ImpactDilateMaskInSEGS": "Dilate Mask (SEGS)",
|
||||
"ImpactGaussianBlurMaskInSEGS": "Gaussian Blur Mask (SEGS)",
|
||||
|
||||
"PreviewBridge": "Preview Bridge (Image)",
|
||||
"PreviewBridgeLatent": "Preview Bridge (Latent)",
|
||||
"ImageSender": "Image Sender",
|
||||
"ImageReceiver": "Image Receiver",
|
||||
"ImageMaskSwitch": "Switch (images, mask)",
|
||||
"ImpactSwitch": "Switch (Any)",
|
||||
"ImpactInversedSwitch": "Inversed Switch (Any)",
|
||||
"ImpactExecutionOrderController": "Execution Order Controller",
|
||||
"ImpactListBridge": "List Bridge",
|
||||
|
||||
"MasksToMaskList": "Mask Batch to Mask List",
|
||||
"MaskListToMaskBatch": "Mask List to Mask Batch",
|
||||
"ImpactImageBatchToImageList": "Image Batch to Image List",
|
||||
"ImageListToImageBatch": "Image List to Image Batch",
|
||||
|
||||
"ImpactMakeImageList": "Make Image List",
|
||||
"ImpactMakeImageBatch": "Make Image Batch",
|
||||
"ImpactMakeMaskList": "Make Mask List",
|
||||
"ImpactMakeMaskBatch": "Make Mask Batch",
|
||||
"ImpactMakeAnyList": "Make List (Any)",
|
||||
"ImpactSelectNthItemOfAnyList": "Select Nth Item (Any list)",
|
||||
|
||||
"ImpactStringSelector": "String Selector",
|
||||
"StringListToString": "String List to String",
|
||||
"WildcardPromptFromString": "Wildcard Prompt from String",
|
||||
"ImpactIsNotEmptySEGS": "SEGS isn't Empty",
|
||||
"SetDefaultImageForSEGS": "Set Default Image for SEGS",
|
||||
"RemoveImageFromSEGS": "Remove Image from SEGS",
|
||||
|
||||
"RemoveNoiseMask": "Remove Noise Mask",
|
||||
|
||||
"ImpactCombineConditionings": "Combine Conditionings",
|
||||
"ImpactConcatConditionings": "Concat Conditionings",
|
||||
|
||||
"ImpactQueueTrigger": "Queue Trigger",
|
||||
"ImpactQueueTriggerCountdown": "Queue Trigger (Countdown)",
|
||||
"ImpactSetWidgetValue": "Set Widget Value",
|
||||
"ImpactNodeSetMuteState": "Set Mute State",
|
||||
"ImpactControlBridge": "Control Bridge",
|
||||
"ImpactSleep": "Sleep",
|
||||
"ImpactRemoteBoolean": "Remote Boolean (on prompt)",
|
||||
"ImpactRemoteInt": "Remote Int (on prompt)",
|
||||
|
||||
"ImpactHFTransformersClassifierProvider": "HF Transformers Classifier Provider",
|
||||
"ImpactSEGSClassify": "SEGS Classify",
|
||||
|
||||
"LatentSwitch": "Switch (latent/legacy)",
|
||||
"SEGSSwitch": "Switch (SEGS/legacy)",
|
||||
|
||||
"SEGSPreviewCNet": "SEGSPreview (CNET Image)",
|
||||
|
||||
"ImpactSchedulerAdapter": "Impact Scheduler Adapter",
|
||||
"GITSSchedulerFuncProvider": "GITSScheduler Func Provider",
|
||||
"ImpactNegativeConditioningPlaceholder": "Negative Cond Placeholder"
|
||||
}
|
||||
|
||||
|
||||
# NOTE: Inject directly into EXTENSION_WEB_DIRS instead of WEB_DIRECTORY
|
||||
# Provide the js path fixed as ComfyUI-Impact-Pack instead of the path name, making it available for external use
|
||||
|
||||
# WEB_DIRECTORY = "js" -- deprecated method
|
||||
nodes.EXTENSION_WEB_DIRS["ComfyUI-Impact-Pack"] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'js')
|
||||
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
||||
@@ -0,0 +1,779 @@
|
||||
import sys
|
||||
import time
|
||||
|
||||
import execution
|
||||
import impact.impact_server
|
||||
from server import PromptServer
|
||||
from impact.utils import any_typ
|
||||
import impact.core as core
|
||||
import re
|
||||
import nodes
|
||||
import logging
|
||||
|
||||
|
||||
class ImpactCompare:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"cmp": (['a = b', 'a <> b', 'a > b', 'a < b', 'a >= b', 'a <= b', 'tt', 'ff'],),
|
||||
"a": (any_typ, ),
|
||||
"b": (any_typ, ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, cmp, a, b):
|
||||
if cmp == "a = b":
|
||||
return (a == b, )
|
||||
elif cmp == "a <> b":
|
||||
return (a != b, )
|
||||
elif cmp == "a > b":
|
||||
return (a > b, )
|
||||
elif cmp == "a < b":
|
||||
return (a < b, )
|
||||
elif cmp == "a >= b":
|
||||
return (a >= b, )
|
||||
elif cmp == "a <= b":
|
||||
return (a <= b, )
|
||||
elif cmp == 'tt':
|
||||
return (True, )
|
||||
else:
|
||||
return (False, )
|
||||
|
||||
|
||||
class ImpactNotEmptySEGS:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {"segs": ("SEGS",)}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, segs):
|
||||
return (segs[1] != [], )
|
||||
|
||||
|
||||
class ImpactConditionalBranch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"cond": ("BOOLEAN",),
|
||||
"tt_value": (any_typ,{"lazy": True}),
|
||||
"ff_value": (any_typ,{"lazy": True}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def check_lazy_status(self, cond, tt_value=None, ff_value=None):
|
||||
if cond and tt_value is None:
|
||||
return ["tt_value"]
|
||||
if not cond and ff_value is None:
|
||||
return ["ff_value"]
|
||||
|
||||
def doit(self, cond, tt_value=None, ff_value=None):
|
||||
if cond:
|
||||
return (tt_value,)
|
||||
else:
|
||||
return (ff_value,)
|
||||
|
||||
|
||||
class ImpactConditionalBranchSelMode:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
if not core.is_execution_model_version_supported():
|
||||
required_inputs = {
|
||||
"cond": ("BOOLEAN",),
|
||||
"sel_mode": ("BOOLEAN", {"default": True, "label_on": "select_on_prompt", "label_off": "select_on_execution"}),
|
||||
}
|
||||
else:
|
||||
required_inputs = {
|
||||
"cond": ("BOOLEAN",),
|
||||
}
|
||||
|
||||
return {
|
||||
"required": required_inputs,
|
||||
"optional": {
|
||||
"tt_value": (any_typ,),
|
||||
"ff_value": (any_typ,),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def doit(self, cond, tt_value=None, ff_value=None, **kwargs):
|
||||
if cond:
|
||||
return (tt_value,)
|
||||
else:
|
||||
return (ff_value,)
|
||||
|
||||
|
||||
class ImpactConvertDataType:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {"value": (any_typ,)}}
|
||||
|
||||
RETURN_TYPES = ("STRING", "FLOAT", "INT", "BOOLEAN")
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
@staticmethod
|
||||
def is_number(string):
|
||||
pattern = re.compile(r'^[-+]?[0-9]*\.?[0-9]+$')
|
||||
return bool(pattern.match(string))
|
||||
|
||||
def doit(self, value):
|
||||
if self.is_number(str(value)):
|
||||
num = value
|
||||
else:
|
||||
if str.lower(str(value)) != "false":
|
||||
num = 1
|
||||
else:
|
||||
num = 0
|
||||
return (str(value), float(num), int(float(num)), bool(float(num)), )
|
||||
|
||||
|
||||
class ImpactIfNone:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {},
|
||||
"optional": {"signal": (any_typ,), "any_input": (any_typ,), }
|
||||
}
|
||||
|
||||
RETURN_TYPES = (any_typ, "BOOLEAN")
|
||||
RETURN_NAMES = ("signal_opt", "bool")
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
def doit(self, signal=None, any_input=None):
|
||||
if any_input is None:
|
||||
return (signal, False, )
|
||||
else:
|
||||
return (signal, True, )
|
||||
|
||||
|
||||
class ImpactLogicalOperators:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"operator": (['and', 'or', 'xor'],),
|
||||
"bool_a": ("BOOLEAN", {"forceInput": True}),
|
||||
"bool_b": ("BOOLEAN", {"forceInput": True}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, operator, bool_a, bool_b):
|
||||
if operator == "and":
|
||||
return (bool_a and bool_b, )
|
||||
elif operator == "or":
|
||||
return (bool_a or bool_b, )
|
||||
else:
|
||||
return (bool_a != bool_b, )
|
||||
|
||||
|
||||
class ImpactConditionalStopIteration:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": { "cond": ("BOOLEAN", {"forceInput": True}), },
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ()
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, cond):
|
||||
if cond:
|
||||
PromptServer.instance.send_sync("stop-iteration", {})
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactNeg:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": { "value": ("BOOLEAN", {"forceInput": True}), },
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, value):
|
||||
return (not value, )
|
||||
|
||||
|
||||
class ImpactInt:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("INT", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactFloat:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("FLOAT", {"default": 1.0, "min": -3.402823466e+38, "max": 3.402823466e+38}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("FLOAT", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactBoolean:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("BOOLEAN", {"default": False}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactValueSender:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": (any_typ, ),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
"optional": {
|
||||
"signal_opt": (any_typ,),
|
||||
}
|
||||
}
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
RETURN_NAMES = ("signal", )
|
||||
|
||||
def doit(self, value, link_id=0, signal_opt=None):
|
||||
PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value})
|
||||
return (signal_opt, )
|
||||
|
||||
|
||||
class ImpactIntConstSender:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ, ),
|
||||
"value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ()
|
||||
|
||||
def doit(self, signal, value, link_id=0):
|
||||
PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value})
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactValueReceiver:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"typ": (["STRING", "INT", "FLOAT", "BOOLEAN"], ),
|
||||
"value": ("STRING", {"default": ""}),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def doit(self, typ, value, link_id=0):
|
||||
if typ == "INT":
|
||||
return (int(value), )
|
||||
elif typ == "FLOAT":
|
||||
return (float(value), )
|
||||
elif typ == "BOOLEAN":
|
||||
return (value.lower() == "true", )
|
||||
else:
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactImageInfo:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": ("IMAGE", ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", "INT", "INT", "INT")
|
||||
RETURN_NAMES = ("batch", "height", "width", "channel")
|
||||
|
||||
def doit(self, value):
|
||||
return (value.shape[0], value.shape[1], value.shape[2], value.shape[3])
|
||||
|
||||
|
||||
class ImpactLatentInfo:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": ("LATENT", ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", "INT", "INT", "INT")
|
||||
RETURN_NAMES = ("batch", "height", "width", "channel")
|
||||
|
||||
def doit(self, value):
|
||||
shape = value['samples'].shape
|
||||
return (shape[0], shape[2] * 8, shape[3] * 8, shape[1])
|
||||
|
||||
|
||||
class ImpactMinMax:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "max", "label_off": "min"}),
|
||||
"a": (any_typ,),
|
||||
"b": (any_typ,),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", )
|
||||
|
||||
def doit(self, mode, a, b):
|
||||
if mode:
|
||||
return (max(a, b), )
|
||||
else:
|
||||
return (min(a, b),)
|
||||
|
||||
|
||||
class ImpactQueueTrigger:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, mode):
|
||||
if(mode):
|
||||
PromptServer.instance.send_sync("impact-add-queue", {})
|
||||
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactQueueTriggerCountdown:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"count": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"total": ("INT", {"default": 10, "min": 1, "max": 0xffffffffffffffff}),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}),
|
||||
},
|
||||
"optional": {"signal": (any_typ,),},
|
||||
"hidden": {"unique_id": "UNIQUE_ID"}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ, "INT", "INT")
|
||||
RETURN_NAMES = ("signal_opt", "count", "total")
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, count, total, mode, unique_id, signal=None):
|
||||
if (mode):
|
||||
if count < total - 1:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": unique_id, "widget_name": "count", "type": "int", "value": count+1})
|
||||
PromptServer.instance.send_sync("impact-add-queue", {})
|
||||
if count >= total - 1:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": unique_id, "widget_name": "count", "type": "int", "value": 0})
|
||||
|
||||
return (signal, count, total)
|
||||
|
||||
|
||||
|
||||
class ImpactSetWidgetValue:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
},
|
||||
"optional": {
|
||||
"boolean_value": ("BOOLEAN", {"forceInput": True}),
|
||||
"int_value": ("INT", {"forceInput": True}),
|
||||
"float_value": ("FLOAT", {"forceInput": True}),
|
||||
"string_value": ("STRING", {"forceInput": True}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, node_id, widget_name, boolean_value=None, int_value=None, float_value=None, string_value=None, ):
|
||||
kind = None
|
||||
if boolean_value is not None:
|
||||
value = boolean_value
|
||||
kind = "BOOLEAN"
|
||||
elif int_value is not None:
|
||||
value = int_value
|
||||
kind = "INT"
|
||||
elif float_value is not None:
|
||||
value = float_value
|
||||
kind = "FLOAT"
|
||||
elif string_value is not None:
|
||||
value = string_value
|
||||
kind = "STRING"
|
||||
else:
|
||||
value = None
|
||||
|
||||
if value is not None:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": node_id, "widget_name": widget_name, "type": kind, "value": value})
|
||||
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactNodeSetMuteState:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"set_state": ("BOOLEAN", {"default": True, "label_on": "active", "label_off": "mute"}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, node_id, set_state):
|
||||
PromptServer.instance.send_sync("impact-node-mute-state", {"node_id": node_id, "is_active": set_state})
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactSleep:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"seconds": ("FLOAT", {"default": 0.5, "min": 0, "max": 3600}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, seconds):
|
||||
time.sleep(seconds)
|
||||
return (signal,)
|
||||
|
||||
|
||||
def workflow_to_map(workflow):
|
||||
nodes = {}
|
||||
links = {}
|
||||
for link in workflow['links']:
|
||||
links[link[0]] = link[1:]
|
||||
for node in workflow['nodes']:
|
||||
nodes[str(node['id'])] = node
|
||||
|
||||
return nodes, links
|
||||
|
||||
|
||||
class ImpactRemoteBoolean:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
"value": ("BOOLEAN", {"default": True, "label_on": "True", "label_off": "False"}),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = ()
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, **kwargs):
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactRemoteInt:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
"value": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff}),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = ()
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, **kwargs):
|
||||
return {}
|
||||
|
||||
class ImpactControlBridge:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": (any_typ,),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Active", "label_off": "Stop/Mute/Bypass"}),
|
||||
"behavior": (["Stop", "Mute", "Bypass"], ),
|
||||
},
|
||||
"hidden": {"unique_id": "UNIQUE_ID", "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("value",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
DESCRIPTION = ("When behavior is Stop and mode is active, the input value is passed directly to the output.\n"
|
||||
"When behavior is Mute/Bypass and mode is active, the node connected to the output is changed to active state.\n"
|
||||
"When behavior is Stop and mode is Stop/Mute/Bypass, the workflow execution of the current node is halted.\n"
|
||||
"When behavior is Mute/Bypass and mode is Stop/Mute/Bypass, the node connected to the output is changed to Mute/Bypass state.")
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None):
|
||||
if behavior == "Stop":
|
||||
return value, mode, behavior
|
||||
else:
|
||||
# NOTE: extra_pnginfo is not populated for IS_CHANGED.
|
||||
# so extra_pnginfo is useless in here
|
||||
try:
|
||||
workflow = core.current_prompt['extra_data']['extra_pnginfo']['workflow']
|
||||
except Exception:
|
||||
logging.info("[Impact Pack] core.current_prompt['extra_data']['extra_pnginfo']['workflow']")
|
||||
return 0
|
||||
|
||||
nodes, links = workflow_to_map(workflow)
|
||||
next_nodes = []
|
||||
|
||||
for link in nodes[unique_id]['outputs'][0]['links']:
|
||||
node_id = str(links[link][2])
|
||||
impact.utils.collect_non_reroute_nodes(nodes, links, next_nodes, node_id)
|
||||
|
||||
return next_nodes
|
||||
|
||||
def doit(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None):
|
||||
global error_skip_flag
|
||||
|
||||
if core.is_execution_model_version_supported():
|
||||
from comfy_execution.graph import ExecutionBlocker
|
||||
else:
|
||||
logging.info("[Impact Pack] ImpactControlBridge: ComfyUI is outdated. The 'Stop' behavior cannot function properly.")
|
||||
|
||||
if behavior == "Stop":
|
||||
if mode:
|
||||
return (value, )
|
||||
else:
|
||||
return (ExecutionBlocker(None), )
|
||||
elif extra_pnginfo is None:
|
||||
logging.warning(f"[Impact Pack] limitation: '{behavior}' behavior cannot be used in API execution.")
|
||||
return (value,)
|
||||
else:
|
||||
workflow_nodes, links = workflow_to_map(extra_pnginfo['workflow'])
|
||||
|
||||
active_nodes = []
|
||||
mute_nodes = []
|
||||
bypass_nodes = []
|
||||
|
||||
for link in workflow_nodes[unique_id]['outputs'][0]['links']:
|
||||
node_id = str(links[link][2])
|
||||
|
||||
next_nodes = []
|
||||
impact.utils.collect_non_reroute_nodes(workflow_nodes, links, next_nodes, node_id)
|
||||
|
||||
for next_node_id in next_nodes:
|
||||
node_mode = workflow_nodes[next_node_id]['mode']
|
||||
|
||||
if node_mode == 0:
|
||||
active_nodes.append(next_node_id)
|
||||
elif node_mode == 2:
|
||||
mute_nodes.append(next_node_id)
|
||||
elif node_mode == 4:
|
||||
bypass_nodes.append(next_node_id)
|
||||
|
||||
if mode:
|
||||
# active
|
||||
should_be_active_nodes = mute_nodes + bypass_nodes
|
||||
if len(should_be_active_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'actives': list(should_be_active_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
elif behavior == "Mute" or behavior == True: # noqa: E712
|
||||
# mute
|
||||
should_be_mute_nodes = active_nodes + bypass_nodes
|
||||
if len(should_be_mute_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'mutes': list(should_be_mute_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
else:
|
||||
# bypass
|
||||
should_be_bypass_nodes = active_nodes + mute_nodes
|
||||
if len(should_be_bypass_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'bypasses': list(should_be_bypass_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactExecutionOrderController:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"value": (any_typ,),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
RETURN_TYPES = (any_typ, any_typ)
|
||||
RETURN_NAMES = ("signal", "value")
|
||||
|
||||
def doit(self, signal, value):
|
||||
return signal, value
|
||||
|
||||
|
||||
class ImpactListBridge:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"list_input": (any_typ,),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
DESCRIPTION = "When passing the list output through this node, it collects and organizes the data before forwarding it, which ensures that the previous stage's sub-workflow has been completed."
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
RETURN_TYPES = (any_typ, )
|
||||
RETURN_NAMES = ("list_output", )
|
||||
|
||||
INPUT_IS_LIST = True
|
||||
OUTPUT_IS_LIST = (True, )
|
||||
|
||||
@staticmethod
|
||||
def doit(list_input):
|
||||
return (list_input,)
|
||||
|
||||
|
||||
original_handle_execution = execution.PromptExecutor.handle_execution_error
|
||||
|
||||
|
||||
def handle_execution_error(**kwargs):
|
||||
execution.PromptExecutor.handle_execution_error(**kwargs)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,235 @@
|
||||
from .nodes.nodes import *
|
||||
from .nodes.curve_nodes import *
|
||||
from .nodes.batchcrop_nodes import *
|
||||
from .nodes.audioscheduler_nodes import *
|
||||
from .nodes.image_nodes import *
|
||||
from .nodes.intrinsic_lora_nodes import *
|
||||
from .nodes.mask_nodes import *
|
||||
from .nodes.model_optimization_nodes import *
|
||||
NODE_CONFIG = {
|
||||
#constants
|
||||
"BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"},
|
||||
"INTConstant": {"class": INTConstant, "name": "INT Constant"},
|
||||
"FloatConstant": {"class": FloatConstant, "name": "Float Constant"},
|
||||
"StringConstant": {"class": StringConstant, "name": "String Constant"},
|
||||
"StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"},
|
||||
#conditioning
|
||||
"ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"},
|
||||
"ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"},
|
||||
"ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"},
|
||||
"ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"},
|
||||
"ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"},
|
||||
"CondPassThrough": {"class": CondPassThrough},
|
||||
#masking
|
||||
"DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"},
|
||||
"BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"},
|
||||
"ColorToMask": {"class": ColorToMask, "name": "Color To Mask"},
|
||||
"CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"},
|
||||
"CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"},
|
||||
"CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"},
|
||||
"CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"},
|
||||
"CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"},
|
||||
"CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"},
|
||||
"CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"},
|
||||
"CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"},
|
||||
"CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"},
|
||||
"GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"},
|
||||
"GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"},
|
||||
"MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"},
|
||||
"OffsetMask": {"class": OffsetMask, "name": "Offset Mask"},
|
||||
"RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"},
|
||||
"ResizeMask": {"class": ResizeMask, "name": "Resize Mask"},
|
||||
"RoundMask": {"class": RoundMask, "name": "Round Mask"},
|
||||
"SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"},
|
||||
#images
|
||||
"AddLabel": {"class": AddLabel, "name": "Add Label"},
|
||||
"ColorMatch": {"class": ColorMatch, "name": "Color Match"},
|
||||
"ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"},
|
||||
"CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"},
|
||||
"CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"},
|
||||
"GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"},
|
||||
"GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"},
|
||||
"GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"},
|
||||
"GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"},
|
||||
"FastPreview": {"class": FastPreview, "name": "Fast Preview"},
|
||||
"ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"},
|
||||
"ImageAndMaskPreview": {"class": ImageAndMaskPreview},
|
||||
"ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"},
|
||||
"ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"},
|
||||
"ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving},
|
||||
"ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"},
|
||||
"ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"},
|
||||
"ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"},
|
||||
"ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"},
|
||||
"ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"},
|
||||
"ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"},
|
||||
"ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"},
|
||||
"ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"},
|
||||
"ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"},
|
||||
"ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"},
|
||||
"ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"},
|
||||
"ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"},
|
||||
"ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"},
|
||||
"ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"},
|
||||
"ImagePass": {"class": ImagePass},
|
||||
"ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"},
|
||||
"ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"},
|
||||
"ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"},
|
||||
"ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"},
|
||||
"ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"},
|
||||
"ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"},
|
||||
"ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"},
|
||||
"InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"},
|
||||
"InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"},
|
||||
"LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"},
|
||||
"LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"},
|
||||
"MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"},
|
||||
"PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"},
|
||||
"PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"},
|
||||
"RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"},
|
||||
"ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"},
|
||||
"ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"},
|
||||
"SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"},
|
||||
"SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"},
|
||||
"ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"},
|
||||
"SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"},
|
||||
"TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"},
|
||||
"TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"},
|
||||
#batch cropping
|
||||
"BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"},
|
||||
"BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"},
|
||||
"FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages},
|
||||
"InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"},
|
||||
"BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"},
|
||||
"BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"},
|
||||
"SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"},
|
||||
"BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"},
|
||||
"BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"},
|
||||
#noise
|
||||
"GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"},
|
||||
"FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"},
|
||||
"InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"},
|
||||
"CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"},
|
||||
#utility
|
||||
"StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"},
|
||||
"WidgetToString": {"class": WidgetToString, "name": "Widget To String"},
|
||||
"SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"},
|
||||
"DummyOut": {"class": DummyOut, "name": "Dummy Out"},
|
||||
"GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"},
|
||||
"ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"},
|
||||
"CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"},
|
||||
"AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"},
|
||||
"JoinStrings": {"class": JoinStrings, "name": "Join Strings"},
|
||||
"JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"},
|
||||
"SomethingToString": {"class": SomethingToString, "name": "Something To String"},
|
||||
"Sleep": {"class": Sleep, "name": "Sleep"},
|
||||
"VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"},
|
||||
"SomethingToString": {"class": SomethingToString, "name": "Something To String"},
|
||||
"EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"},
|
||||
"EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"},
|
||||
"ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"},
|
||||
"ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"},
|
||||
"SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"},
|
||||
"StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"},
|
||||
#audioscheduler stuff
|
||||
"NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask},
|
||||
"NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList},
|
||||
"OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude},
|
||||
"ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude},
|
||||
"AudioConcatenate": {"class": AudioConcatenate},
|
||||
#curve nodes
|
||||
"SplineEditor": {"class": SplineEditor, "name": "Spline Editor"},
|
||||
"CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"},
|
||||
"CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"},
|
||||
"CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"},
|
||||
"CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"},
|
||||
"CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"},
|
||||
"GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"},
|
||||
"WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"},
|
||||
"MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"},
|
||||
"WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"},
|
||||
"FloatToMask": {"class": FloatToMask, "name": "Float To Mask"},
|
||||
"FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"},
|
||||
"SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"},
|
||||
"PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"},
|
||||
"InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"},
|
||||
"PointsEditor": {"class": PointsEditor, "name": "Points Editor"},
|
||||
#experimental
|
||||
"SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"},
|
||||
"StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"},
|
||||
"SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"},
|
||||
"LoadResAdapterNormalization": {"class": LoadResAdapterNormalization},
|
||||
"Superprompt": {"class": Superprompt, "name": "Superprompt"},
|
||||
"GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords},
|
||||
"Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"},
|
||||
"CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"},
|
||||
"Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"},
|
||||
"WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"},
|
||||
"DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"},
|
||||
"DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"},
|
||||
"FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"},
|
||||
"HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"},
|
||||
"Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"},
|
||||
"CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"},
|
||||
"CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"},
|
||||
"DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"},
|
||||
"TorchCompileModelFluxAdvanced": {"class": TorchCompileModelFluxAdvanced, "name": "TorchCompileModelFluxAdvanced"},
|
||||
"TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"},
|
||||
"TorchCompileModelHyVideo": {"class": TorchCompileModelHyVideo, "name": "TorchCompileModelHyVideo"},
|
||||
"TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"},
|
||||
"TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"},
|
||||
"PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"},
|
||||
"TorchCompileLTXModel": {"class": TorchCompileLTXModel, "name": "TorchCompileLTXModel"},
|
||||
"TorchCompileCosmosModel": {"class": TorchCompileCosmosModel, "name": "TorchCompileCosmosModel"},
|
||||
"TorchCompileModelWanVideo": {"class": TorchCompileModelWanVideo, "name": "TorchCompileModelWanVideo"},
|
||||
"TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"},
|
||||
"PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"},
|
||||
"LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"},
|
||||
"VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"},
|
||||
"ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"},
|
||||
"ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"},
|
||||
"ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"},
|
||||
"WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"},
|
||||
"WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"},
|
||||
"SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"},
|
||||
"TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"},
|
||||
"HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"},
|
||||
"CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"},
|
||||
"ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"},
|
||||
"WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"},
|
||||
|
||||
#instance diffusion
|
||||
"CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking},
|
||||
"AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking},
|
||||
"DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking},
|
||||
}
|
||||
|
||||
def generate_node_mappings(node_config):
|
||||
node_class_mappings = {}
|
||||
node_display_name_mappings = {}
|
||||
|
||||
for node_name, node_info in node_config.items():
|
||||
node_class_mappings[node_name] = node_info["class"]
|
||||
node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__)
|
||||
|
||||
return node_class_mappings, node_display_name_mappings
|
||||
|
||||
NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG)
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
|
||||
from aiohttp import web
|
||||
from server import PromptServer
|
||||
from pathlib import Path
|
||||
|
||||
if hasattr(PromptServer, "instance"):
|
||||
try:
|
||||
# NOTE: we add an extra static path to avoid comfy mechanism
|
||||
# that loads every script in web.
|
||||
PromptServer.instance.app.add_routes(
|
||||
[web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())]
|
||||
)
|
||||
except:
|
||||
pass
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 chflame163
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,48 @@
|
||||
import importlib.util
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
python = sys.executable
|
||||
|
||||
def get_ext_dir(subpath=None, mkdir=False):
|
||||
dir = os.path.dirname(__file__)
|
||||
if subpath is not None:
|
||||
dir = os.path.join(dir, subpath)
|
||||
|
||||
dir = os.path.abspath(dir)
|
||||
|
||||
if mkdir and not os.path.exists(dir):
|
||||
os.makedirs(dir)
|
||||
return dir
|
||||
|
||||
def serialize(obj):
|
||||
if isinstance(obj, (str, int, float, bool, list, dict, type(None))):
|
||||
return obj
|
||||
return str(obj) # 转为字符串
|
||||
|
||||
|
||||
py = get_ext_dir("py")
|
||||
files = os.listdir(py)
|
||||
all_nodes = {}
|
||||
for file in files:
|
||||
if not file.endswith(".py"):
|
||||
continue
|
||||
name = os.path.splitext(file)[0]
|
||||
imported_module = importlib.import_module(".py.{}".format(name), __name__)
|
||||
try:
|
||||
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS}
|
||||
serialized_CLASS_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_CLASS_MAPPINGS.items()}
|
||||
serialized_DISPLAY_NAME_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_DISPLAY_NAME_MAPPINGS.items()}
|
||||
all_nodes[file]={"NODE_CLASS_MAPPINGS": serialized_CLASS_MAPPINGS, "NODE_DISPLAY_NAME_MAPPINGS": serialized_DISPLAY_NAME_MAPPINGS}
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
WEB_DIRECTORY = "./js"
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
@@ -0,0 +1,186 @@
|
||||
import torch
|
||||
from PIL import Image
|
||||
import math
|
||||
from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask
|
||||
|
||||
|
||||
|
||||
class ImageScaleByAspectRatioV2:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageScaleByAspectRatio V2'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
ratio_list = ['original', 'custom', '1:1', '3:2', '4:3', '16:9', '2:3', '3:4', '9:16']
|
||||
fit_mode = ['letterbox', 'crop', 'fill']
|
||||
method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest']
|
||||
multiple_list = ['8', '16', '32', '64', '128', '256', '512', 'None']
|
||||
scale_to_list = ['None', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)']
|
||||
return {
|
||||
"required": {
|
||||
"aspect_ratio": (ratio_list,),
|
||||
"proportional_width": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
|
||||
"proportional_height": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
|
||||
"fit": (fit_mode,),
|
||||
"method": (method_mode,),
|
||||
"round_to_multiple": (multiple_list,),
|
||||
"scale_to_side": (scale_to_list,), # 是否按长边缩放
|
||||
"scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 1e8, "step": 1}),
|
||||
"background_color": ("STRING", {"default": "#000000"}), # 背景颜色
|
||||
},
|
||||
"optional": {
|
||||
"image": ("IMAGE",), #
|
||||
"mask": ("MASK",), #
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT",)
|
||||
RETURN_NAMES = ("image", "mask", "original_size", "width", "height",)
|
||||
FUNCTION = 'image_scale_by_aspect_ratio'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height,
|
||||
fit, method, round_to_multiple, scale_to_side, scale_to_length,
|
||||
background_color,
|
||||
image=None, mask = None,
|
||||
):
|
||||
orig_images = []
|
||||
orig_masks = []
|
||||
orig_width = 0
|
||||
orig_height = 0
|
||||
target_width = 0
|
||||
target_height = 0
|
||||
ratio = 1.0
|
||||
ret_images = []
|
||||
ret_masks = []
|
||||
if image is not None:
|
||||
for i in image:
|
||||
i = torch.unsqueeze(i, 0)
|
||||
orig_images.append(i)
|
||||
orig_width, orig_height = tensor2pil(orig_images[0]).size
|
||||
if mask is not None:
|
||||
if mask.dim() == 2:
|
||||
mask = torch.unsqueeze(mask, 0)
|
||||
for m in mask:
|
||||
m = torch.unsqueeze(m, 0)
|
||||
if not is_valid_mask(m) and m.shape==torch.Size([1,64,64]):
|
||||
log(f"Warning: {self.NODE_NAME} input mask is empty, ignore it.", message_type='warning')
|
||||
else:
|
||||
orig_masks.append(m)
|
||||
|
||||
if len(orig_masks) > 0:
|
||||
_width, _height = tensor2pil(orig_masks[0]).size
|
||||
if (orig_width > 0 and orig_width != _width) or (orig_height > 0 and orig_height != _height):
|
||||
log(f"Error: {self.NODE_NAME} execute failed, because the mask is does'nt match image.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
elif orig_width + orig_height == 0:
|
||||
orig_width = _width
|
||||
orig_height = _height
|
||||
|
||||
if orig_width + orig_height == 0:
|
||||
log(f"Error: {self.NODE_NAME} execute failed, because the image or mask at least one must be input.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
|
||||
if aspect_ratio == 'original':
|
||||
ratio = orig_width / orig_height
|
||||
elif aspect_ratio == 'custom':
|
||||
ratio = proportional_width / proportional_height
|
||||
else:
|
||||
s = aspect_ratio.split(":")
|
||||
ratio = int(s[0]) / int(s[1])
|
||||
|
||||
# calculate target width and height
|
||||
if ratio > 1:
|
||||
if scale_to_side == 'longest':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'shortest':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'width':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'height':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'total_pixel(kilo pixel)':
|
||||
target_width = math.sqrt(ratio * scale_to_length * 1000)
|
||||
target_height = target_width / ratio
|
||||
target_width = int(target_width)
|
||||
target_height = int(target_height)
|
||||
else:
|
||||
target_width = orig_width
|
||||
target_height = int(target_width / ratio)
|
||||
else:
|
||||
if scale_to_side == 'longest':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'shortest':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'width':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'height':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'total_pixel(kilo pixel)':
|
||||
target_width = math.sqrt(ratio * scale_to_length * 1000)
|
||||
target_height = target_width / ratio
|
||||
target_width = int(target_width)
|
||||
target_height = int(target_height)
|
||||
else:
|
||||
target_height = orig_height
|
||||
target_width = int(target_height * ratio)
|
||||
|
||||
if round_to_multiple != 'None':
|
||||
multiple = int(round_to_multiple)
|
||||
target_width = num_round_up_to_multiple(target_width, multiple)
|
||||
target_height = num_round_up_to_multiple(target_height, multiple)
|
||||
|
||||
_mask = Image.new('L', size=(target_width, target_height), color='black')
|
||||
_image = Image.new('RGB', size=(target_width, target_height), color='black')
|
||||
|
||||
resize_sampler = Image.LANCZOS
|
||||
if method == "bicubic":
|
||||
resize_sampler = Image.BICUBIC
|
||||
elif method == "hamming":
|
||||
resize_sampler = Image.HAMMING
|
||||
elif method == "bilinear":
|
||||
resize_sampler = Image.BILINEAR
|
||||
elif method == "box":
|
||||
resize_sampler = Image.BOX
|
||||
elif method == "nearest":
|
||||
resize_sampler = Image.NEAREST
|
||||
|
||||
if len(orig_images) > 0:
|
||||
for i in orig_images:
|
||||
_image = tensor2pil(i).convert('RGB')
|
||||
_image = fit_resize_image(_image, target_width, target_height, fit, resize_sampler, background_color)
|
||||
ret_images.append(pil2tensor(_image))
|
||||
if len(orig_masks) > 0:
|
||||
for m in orig_masks:
|
||||
_mask = tensor2pil(m).convert('L')
|
||||
_mask = fit_resize_image(_mask, target_width, target_height, fit, resize_sampler).convert('L')
|
||||
ret_masks.append(image2mask(_mask))
|
||||
if len(ret_images) > 0 and len(ret_masks) >0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0),[orig_width, orig_height], target_width, target_height,)
|
||||
elif len(ret_images) > 0 and len(ret_masks) == 0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0), None, [orig_width, orig_height], target_width, target_height,)
|
||||
elif len(ret_images) == 0 and len(ret_masks) > 0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_masks)} image(s).", message_type='finish')
|
||||
return (None, torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,)
|
||||
else:
|
||||
log(f"Error: {self.NODE_NAME} skipped, because the available image or mask is not found.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": ImageScaleByAspectRatioV2
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
import math
|
||||
import torch
|
||||
from PIL import Image
|
||||
from .imagefunc import log, tensor2pil, pil2tensor, image2mask
|
||||
|
||||
|
||||
class ImageScaleRestoreV2:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageScaleRestore V2'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest']
|
||||
scale_by_list = ['by_scale', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)']
|
||||
return {
|
||||
"required": {
|
||||
"image": ("IMAGE", ), #
|
||||
"scale": ("FLOAT", {"default": 1, "min": 0.01, "max": 100, "step": 0.01}),
|
||||
"method": (method_mode,),
|
||||
"scale_by": (scale_by_list,), # 是否按长边缩放
|
||||
"scale_by_length": ("INT", {"default": 1024, "min": 4, "max": 99999999, "step": 1}),
|
||||
},
|
||||
"optional": {
|
||||
"mask": ("MASK",), #
|
||||
"original_size": ("BOX",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT")
|
||||
RETURN_NAMES = ("image", "mask", "original_size", "width", "height",)
|
||||
FUNCTION = 'image_scale_restore'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_scale_restore(self, image, scale, method,
|
||||
scale_by, scale_by_length,
|
||||
mask = None, original_size = None
|
||||
):
|
||||
|
||||
l_images = []
|
||||
l_masks = []
|
||||
ret_images = []
|
||||
ret_masks = []
|
||||
for l in image:
|
||||
l_images.append(torch.unsqueeze(l, 0))
|
||||
m = tensor2pil(l)
|
||||
if m.mode == 'RGBA':
|
||||
l_masks.append(m.split()[-1])
|
||||
|
||||
if mask is not None:
|
||||
if mask.dim() == 2:
|
||||
mask = torch.unsqueeze(mask, 0)
|
||||
l_masks = []
|
||||
for m in mask:
|
||||
l_masks.append(tensor2pil(torch.unsqueeze(m, 0)).convert('L'))
|
||||
|
||||
max_batch = max(len(l_images), len(l_masks))
|
||||
|
||||
orig_width, orig_height = tensor2pil(l_images[0]).size
|
||||
if original_size is not None:
|
||||
target_width = original_size[0]
|
||||
target_height = original_size[1]
|
||||
else:
|
||||
target_width = int(orig_width * scale)
|
||||
target_height = int(orig_height * scale)
|
||||
if scale_by == 'longest':
|
||||
if orig_width > orig_height:
|
||||
target_width = scale_by_length
|
||||
target_height = int(target_width * orig_height / orig_width)
|
||||
else:
|
||||
target_height = scale_by_length
|
||||
target_width = int(target_height * orig_width / orig_height)
|
||||
if scale_by == 'shortest':
|
||||
if orig_width < orig_height:
|
||||
target_width = scale_by_length
|
||||
target_height = int(target_width * orig_height / orig_width)
|
||||
else:
|
||||
target_height = scale_by_length
|
||||
target_width = int(target_height * orig_width / orig_height)
|
||||
if scale_by == 'width':
|
||||
target_width = scale_by_length
|
||||
target_height = int(target_width * orig_height / orig_width)
|
||||
if scale_by == 'height':
|
||||
target_height = scale_by_length
|
||||
target_width = int(target_height * orig_width / orig_height)
|
||||
if scale_by == 'total_pixel(kilo pixel)':
|
||||
r = orig_width / orig_height
|
||||
target_width = math.sqrt(r * scale_by_length * 1000)
|
||||
target_height = target_width / r
|
||||
target_width = int(target_width)
|
||||
target_height = int(target_height)
|
||||
if target_width < 4:
|
||||
target_width = 4
|
||||
if target_height < 4:
|
||||
target_height = 4
|
||||
resize_sampler = Image.LANCZOS
|
||||
if method == "bicubic":
|
||||
resize_sampler = Image.BICUBIC
|
||||
elif method == "hamming":
|
||||
resize_sampler = Image.HAMMING
|
||||
elif method == "bilinear":
|
||||
resize_sampler = Image.BILINEAR
|
||||
elif method == "box":
|
||||
resize_sampler = Image.BOX
|
||||
elif method == "nearest":
|
||||
resize_sampler = Image.NEAREST
|
||||
|
||||
for i in range(max_batch):
|
||||
|
||||
_image = l_images[i] if i < len(l_images) else l_images[-1]
|
||||
|
||||
_canvas = tensor2pil(_image).convert('RGB')
|
||||
ret_image = _canvas.resize((target_width, target_height), resize_sampler)
|
||||
ret_mask = Image.new('L', size=ret_image.size, color='white')
|
||||
if mask is not None:
|
||||
_mask = l_masks[i] if i < len(l_masks) else l_masks[-1]
|
||||
ret_mask = _mask.resize((target_width, target_height), resize_sampler)
|
||||
|
||||
ret_images.append(pil2tensor(ret_image))
|
||||
ret_masks.append(image2mask(ret_mask))
|
||||
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,)
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleRestore V2": ImageScaleRestoreV2
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleRestore V2": "LayerUtility: ImageScaleRestore V2"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
{"ref":"refs/tags/v0.3.50","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMy41MA","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.3.50","object":{"sha":"d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8"}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,425 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,258 @@
|
||||
[
|
||||
".github/workflows/publish_comfy_registry_action.yml",
|
||||
".gitignore",
|
||||
".prettierrc.json",
|
||||
".pylintrc",
|
||||
".style.yapf",
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"__build__.py",
|
||||
"__commit__.py",
|
||||
"__init__.py",
|
||||
"__update_comfy__.py",
|
||||
"docs/rgthree_advanced.png",
|
||||
"docs/rgthree_advanced_metadata.png",
|
||||
"docs/rgthree_context.png",
|
||||
"docs/rgthree_context_metadata.png",
|
||||
"docs/rgthree_router.png",
|
||||
"docs/rgthree_seed.png",
|
||||
"package-lock.json",
|
||||
"package.json",
|
||||
"prestartup_script.py",
|
||||
"py/__init__.py",
|
||||
"py/any_switch.py",
|
||||
"py/config.py",
|
||||
"py/constants.py",
|
||||
"py/context.py",
|
||||
"py/context_big.py",
|
||||
"py/context_merge.py",
|
||||
"py/context_merge_big.py",
|
||||
"py/context_switch.py",
|
||||
"py/context_switch_big.py",
|
||||
"py/context_utils.py",
|
||||
"py/display_any.py",
|
||||
"py/dynamic_context.py",
|
||||
"py/dynamic_context_switch.py",
|
||||
"py/image_comparer.py",
|
||||
"py/image_inset_crop.py",
|
||||
"py/image_or_latent_size.py",
|
||||
"py/image_resize.py",
|
||||
"py/ksampler_config.py",
|
||||
"py/log.py",
|
||||
"py/lora_stack.py",
|
||||
"py/power_lora_loader.py",
|
||||
"py/power_primitive.py",
|
||||
"py/power_prompt.py",
|
||||
"py/power_prompt_simple.py",
|
||||
"py/power_prompt_utils.py",
|
||||
"py/power_puter.py",
|
||||
"py/pyproject.py",
|
||||
"py/sdxl_empty_latent_image.py",
|
||||
"py/sdxl_power_prompt_postive.py",
|
||||
"py/sdxl_power_prompt_simple.py",
|
||||
"py/seed.py",
|
||||
"py/server/rgthree_server.py",
|
||||
"py/server/routes_config.py",
|
||||
"py/server/routes_model_info.py",
|
||||
"py/server/utils_info.py",
|
||||
"py/server/utils_server.py",
|
||||
"py/utils.py",
|
||||
"py/utils_userdata.py",
|
||||
"pyproject.toml",
|
||||
"requirements.txt",
|
||||
"rgthree_config.json.default",
|
||||
"src_web/comfyui/any_switch.ts",
|
||||
"src_web/comfyui/base_any_input_connected_node.ts",
|
||||
"src_web/comfyui/base_node.ts",
|
||||
"src_web/comfyui/base_node_collector.ts",
|
||||
"src_web/comfyui/base_node_mode_changer.ts",
|
||||
"src_web/comfyui/base_power_prompt.ts",
|
||||
"src_web/comfyui/bookmark.ts",
|
||||
"src_web/comfyui/bypasser.ts",
|
||||
"src_web/comfyui/comfy_ui_bar.ts",
|
||||
"src_web/comfyui/config.ts",
|
||||
"src_web/comfyui/constants.ts",
|
||||
"src_web/comfyui/context.ts",
|
||||
"src_web/comfyui/dialog_info.ts",
|
||||
"src_web/comfyui/display_any.ts",
|
||||
"src_web/comfyui/dynamic_context.ts",
|
||||
"src_web/comfyui/dynamic_context_base.ts",
|
||||
"src_web/comfyui/dynamic_context_switch.ts",
|
||||
"src_web/comfyui/fast_actions_button.ts",
|
||||
"src_web/comfyui/fast_groups_bypasser.ts",
|
||||
"src_web/comfyui/fast_groups_muter.ts",
|
||||
"src_web/comfyui/feature_group_fast_toggle.ts",
|
||||
"src_web/comfyui/feature_import_individual_nodes.ts",
|
||||
"src_web/comfyui/image_comparer.ts",
|
||||
"src_web/comfyui/image_inset_crop.ts",
|
||||
"src_web/comfyui/image_or_latent_size.ts",
|
||||
"src_web/comfyui/label.ts",
|
||||
"src_web/comfyui/menu_auto_nest.ts",
|
||||
"src_web/comfyui/menu_copy_image.ts",
|
||||
"src_web/comfyui/menu_queue_node.ts",
|
||||
"src_web/comfyui/muter.ts",
|
||||
"src_web/comfyui/node_collector.ts",
|
||||
"src_web/comfyui/node_mode_relay.ts",
|
||||
"src_web/comfyui/node_mode_repeater.ts",
|
||||
"src_web/comfyui/power_conductor.ts",
|
||||
"src_web/comfyui/power_lora_loader.ts",
|
||||
"src_web/comfyui/power_primitive.ts",
|
||||
"src_web/comfyui/power_prompt.ts",
|
||||
"src_web/comfyui/power_puter.ts",
|
||||
"src_web/comfyui/random_unmuter.ts",
|
||||
"src_web/comfyui/reroute.ts",
|
||||
"src_web/comfyui/rgthree.scss",
|
||||
"src_web/comfyui/rgthree.ts",
|
||||
"src_web/comfyui/seed.ts",
|
||||
"src_web/comfyui/services/bookmarks_services.ts",
|
||||
"src_web/comfyui/services/config_service.ts",
|
||||
"src_web/comfyui/services/context_service.ts",
|
||||
"src_web/comfyui/services/fast_groups_service.ts",
|
||||
"src_web/comfyui/services/key_events_services.ts",
|
||||
"src_web/comfyui/testing/comfyui_env.ts",
|
||||
"src_web/comfyui/testing/runner.ts",
|
||||
"src_web/comfyui/tests/context_dynamic_tests.ts",
|
||||
"src_web/comfyui/tests/image_or_latent_size_tests.ts",
|
||||
"src_web/comfyui/tests/power_puter.ts",
|
||||
"src_web/comfyui/utils.ts",
|
||||
"src_web/comfyui/utils_canvas.ts",
|
||||
"src_web/comfyui/utils_inputs_outputs.ts",
|
||||
"src_web/comfyui/utils_menu.ts",
|
||||
"src_web/comfyui/utils_widgets.ts",
|
||||
"src_web/common/comfyui_shim.ts",
|
||||
"src_web/common/comfyui_shim_pnginfo.ts",
|
||||
"src_web/common/components/base_custom_element.ts",
|
||||
"src_web/common/css/buttons.scss",
|
||||
"src_web/common/css/dialog.scss",
|
||||
"src_web/common/css/dialog_lora_chooser.scss",
|
||||
"src_web/common/css/dialog_model_info.scss",
|
||||
"src_web/common/css/menu.scss",
|
||||
"src_web/common/css/pages_base.scss",
|
||||
"src_web/common/dialog.ts",
|
||||
"src_web/common/link_fixer.ts",
|
||||
"src_web/common/media/rgthree.svg",
|
||||
"src_web/common/media/svgs.ts",
|
||||
"src_web/common/menu.ts",
|
||||
"src_web/common/model_info_service.ts",
|
||||
"src_web/common/progress_bar.ts",
|
||||
"src_web/common/prompt_service.ts",
|
||||
"src_web/common/py_parser.ts",
|
||||
"src_web/common/rgthree_api.ts",
|
||||
"src_web/common/shared_utils.ts",
|
||||
"src_web/common/utils_dom.ts",
|
||||
"src_web/common/utils_templates.ts",
|
||||
"src_web/common/utils_workflow.ts",
|
||||
"src_web/lib/tree-sitter-python.wasm",
|
||||
"src_web/lib/tree-sitter.js",
|
||||
"src_web/lib/tree-sitter.wasm",
|
||||
"src_web/link_fixer/icon_file_json.png",
|
||||
"src_web/link_fixer/index.html",
|
||||
"src_web/link_fixer/link_page.ts",
|
||||
"src_web/models/components/model-info-card.html",
|
||||
"src_web/models/components/model-info-card.scss",
|
||||
"src_web/models/components/model-info-card.ts",
|
||||
"src_web/models/index.html",
|
||||
"src_web/models/models.scss",
|
||||
"src_web/models/models_info_page.ts",
|
||||
"src_web/scripts_comfy/README.md",
|
||||
"src_web/scripts_comfy/api.ts",
|
||||
"src_web/scripts_comfy/app.ts",
|
||||
"src_web/scripts_comfy/ui/components/button.ts",
|
||||
"src_web/scripts_comfy/ui/components/buttonGroup.ts",
|
||||
"src_web/scripts_comfy/ui/components/popup.ts",
|
||||
"src_web/scripts_comfy/widgets.ts",
|
||||
"src_web/typings/comfy.d.ts",
|
||||
"src_web/typings/index.d.ts",
|
||||
"src_web/typings/litegraph.d.ts",
|
||||
"src_web/typings/rgthree.d.ts",
|
||||
"src_web/typings/web-tree-sitter.d.ts",
|
||||
"tsconfig.json",
|
||||
"web/comfyui/any_switch.js",
|
||||
"web/comfyui/base_any_input_connected_node.js",
|
||||
"web/comfyui/base_node.js",
|
||||
"web/comfyui/base_node_collector.js",
|
||||
"web/comfyui/base_node_mode_changer.js",
|
||||
"web/comfyui/base_power_prompt.js",
|
||||
"web/comfyui/bookmark.js",
|
||||
"web/comfyui/bypasser.js",
|
||||
"web/comfyui/comfy_ui_bar.js",
|
||||
"web/comfyui/config.js",
|
||||
"web/comfyui/constants.js",
|
||||
"web/comfyui/context.js",
|
||||
"web/comfyui/dialog_info.js",
|
||||
"web/comfyui/display_any.js",
|
||||
"web/comfyui/dynamic_context.js",
|
||||
"web/comfyui/dynamic_context_base.js",
|
||||
"web/comfyui/dynamic_context_switch.js",
|
||||
"web/comfyui/fast_actions_button.js",
|
||||
"web/comfyui/fast_groups_bypasser.js",
|
||||
"web/comfyui/fast_groups_muter.js",
|
||||
"web/comfyui/feature_group_fast_toggle.js",
|
||||
"web/comfyui/feature_import_individual_nodes.js",
|
||||
"web/comfyui/image_comparer.js",
|
||||
"web/comfyui/image_inset_crop.js",
|
||||
"web/comfyui/image_or_latent_size.js",
|
||||
"web/comfyui/label.js",
|
||||
"web/comfyui/menu_auto_nest.js",
|
||||
"web/comfyui/menu_copy_image.js",
|
||||
"web/comfyui/menu_queue_node.js",
|
||||
"web/comfyui/muter.js",
|
||||
"web/comfyui/node_collector.js",
|
||||
"web/comfyui/node_mode_relay.js",
|
||||
"web/comfyui/node_mode_repeater.js",
|
||||
"web/comfyui/power_conductor.js",
|
||||
"web/comfyui/power_lora_loader.js",
|
||||
"web/comfyui/power_primitive.js",
|
||||
"web/comfyui/power_prompt.js",
|
||||
"web/comfyui/power_puter.js",
|
||||
"web/comfyui/random_unmuter.js",
|
||||
"web/comfyui/reroute.js",
|
||||
"web/comfyui/rgthree.css",
|
||||
"web/comfyui/rgthree.js",
|
||||
"web/comfyui/seed.js",
|
||||
"web/comfyui/services/bookmarks_services.js",
|
||||
"web/comfyui/services/config_service.js",
|
||||
"web/comfyui/services/context_service.js",
|
||||
"web/comfyui/services/fast_groups_service.js",
|
||||
"web/comfyui/services/key_events_services.js",
|
||||
"web/comfyui/utils.js",
|
||||
"web/comfyui/utils_canvas.js",
|
||||
"web/comfyui/utils_inputs_outputs.js",
|
||||
"web/comfyui/utils_menu.js",
|
||||
"web/comfyui/utils_widgets.js",
|
||||
"web/common/comfyui_shim.js",
|
||||
"web/common/comfyui_shim_pnginfo.js",
|
||||
"web/common/components/base_custom_element.js",
|
||||
"web/common/css/buttons.css",
|
||||
"web/common/css/dialog.css",
|
||||
"web/common/css/dialog_lora_chooser.css",
|
||||
"web/common/css/dialog_model_info.css",
|
||||
"web/common/css/menu.css",
|
||||
"web/common/css/pages_base.css",
|
||||
"web/common/dialog.js",
|
||||
"web/common/link_fixer.js",
|
||||
"web/common/media/rgthree.svg",
|
||||
"web/common/media/svgs.js",
|
||||
"web/common/menu.js",
|
||||
"web/common/model_info_service.js",
|
||||
"web/common/progress_bar.js",
|
||||
"web/common/prompt_service.js",
|
||||
"web/common/py_parser.js",
|
||||
"web/common/rgthree_api.js",
|
||||
"web/common/shared_utils.js",
|
||||
"web/common/utils_dom.js",
|
||||
"web/common/utils_templates.js",
|
||||
"web/common/utils_workflow.js",
|
||||
"web/lib/tree-sitter-python.wasm",
|
||||
"web/lib/tree-sitter.js",
|
||||
"web/lib/tree-sitter.wasm",
|
||||
"web/link_fixer/icon_file_json.png",
|
||||
"web/link_fixer/index.html",
|
||||
"web/link_fixer/link_page.js",
|
||||
"web/models/components/model-info-card.css",
|
||||
"web/models/components/model-info-card.html",
|
||||
"web/models/components/model-info-card.js",
|
||||
"web/models/index.html",
|
||||
"web/models/models.css",
|
||||
"web/models/models_info_page.js"
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"changelog":"","createdAt":"2025-10-06T00:58:58.121407Z","dependencies":[],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip","id":"35df2680-1544-442a-9bc5-af7862d244a5","node_id":"rgthree-comfy","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.0.2510052058"}
|
||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Regis Gaughan, III (rgthree)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,112 @@
|
||||
"""
|
||||
@author: rgthree
|
||||
@title: Comfy Nodes
|
||||
@nickname: rgthree
|
||||
@description: A bunch of nodes I created that I also find useful.
|
||||
"""
|
||||
|
||||
from glob import glob
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import re
|
||||
import random
|
||||
|
||||
import execution
|
||||
|
||||
from .py.log import log
|
||||
from .py.config import get_config_value
|
||||
from .py.server.rgthree_server import *
|
||||
|
||||
from .py.context import RgthreeContext
|
||||
from .py.context_switch import RgthreeContextSwitch
|
||||
from .py.context_switch_big import RgthreeContextSwitchBig
|
||||
from .py.display_any import RgthreeDisplayAny, RgthreeDisplayInt
|
||||
from .py.lora_stack import RgthreeLoraLoaderStack
|
||||
from .py.seed import RgthreeSeed
|
||||
from .py.sdxl_empty_latent_image import RgthreeSDXLEmptyLatentImage
|
||||
from .py.power_prompt import RgthreePowerPrompt
|
||||
from .py.power_prompt_simple import RgthreePowerPromptSimple
|
||||
from .py.image_inset_crop import RgthreeImageInsetCrop
|
||||
from .py.context_big import RgthreeBigContext
|
||||
from .py.dynamic_context import RgthreeDynamicContext
|
||||
from .py.dynamic_context_switch import RgthreeDynamicContextSwitch
|
||||
from .py.ksampler_config import RgthreeKSamplerConfig
|
||||
from .py.sdxl_power_prompt_postive import RgthreeSDXLPowerPromptPositive
|
||||
from .py.sdxl_power_prompt_simple import RgthreeSDXLPowerPromptSimple
|
||||
from .py.any_switch import RgthreeAnySwitch
|
||||
from .py.context_merge import RgthreeContextMerge
|
||||
from .py.context_merge_big import RgthreeContextMergeBig
|
||||
from .py.image_comparer import RgthreeImageComparer
|
||||
from .py.power_lora_loader import RgthreePowerLoraLoader
|
||||
from .py.power_primitive import RgthreePowerPrimitive
|
||||
from .py.image_or_latent_size import RgthreeImageOrLatentSize
|
||||
from .py.image_resize import RgthreeImageResize
|
||||
from .py.power_puter import RgthreePowerPuter
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
RgthreeBigContext.NAME: RgthreeBigContext,
|
||||
RgthreeContext.NAME: RgthreeContext,
|
||||
RgthreeContextSwitch.NAME: RgthreeContextSwitch,
|
||||
RgthreeContextSwitchBig.NAME: RgthreeContextSwitchBig,
|
||||
RgthreeContextMerge.NAME: RgthreeContextMerge,
|
||||
RgthreeContextMergeBig.NAME: RgthreeContextMergeBig,
|
||||
RgthreeDisplayInt.NAME: RgthreeDisplayInt,
|
||||
RgthreeDisplayAny.NAME: RgthreeDisplayAny,
|
||||
RgthreeLoraLoaderStack.NAME: RgthreeLoraLoaderStack,
|
||||
RgthreeSeed.NAME: RgthreeSeed,
|
||||
RgthreeImageInsetCrop.NAME: RgthreeImageInsetCrop,
|
||||
RgthreePowerPrompt.NAME: RgthreePowerPrompt,
|
||||
RgthreePowerPromptSimple.NAME: RgthreePowerPromptSimple,
|
||||
RgthreeKSamplerConfig.NAME: RgthreeKSamplerConfig,
|
||||
RgthreeSDXLEmptyLatentImage.NAME: RgthreeSDXLEmptyLatentImage,
|
||||
RgthreeSDXLPowerPromptPositive.NAME: RgthreeSDXLPowerPromptPositive,
|
||||
RgthreeSDXLPowerPromptSimple.NAME: RgthreeSDXLPowerPromptSimple,
|
||||
RgthreeAnySwitch.NAME: RgthreeAnySwitch,
|
||||
RgthreeImageComparer.NAME: RgthreeImageComparer,
|
||||
RgthreePowerLoraLoader.NAME: RgthreePowerLoraLoader,
|
||||
RgthreePowerPrimitive.NAME: RgthreePowerPrimitive,
|
||||
RgthreeImageOrLatentSize.NAME: RgthreeImageOrLatentSize,
|
||||
RgthreeImageResize.NAME: RgthreeImageResize,
|
||||
RgthreePowerPuter.NAME: RgthreePowerPuter,
|
||||
}
|
||||
|
||||
if get_config_value('unreleased.dynamic_context.enabled') is True:
|
||||
NODE_CLASS_MAPPINGS[RgthreeDynamicContext.NAME] = RgthreeDynamicContext
|
||||
NODE_CLASS_MAPPINGS[RgthreeDynamicContextSwitch.NAME] = RgthreeDynamicContextSwitch
|
||||
|
||||
# WEB_DIRECTORY is the comfyui nodes directory that ComfyUI will link and auto-load.
|
||||
WEB_DIRECTORY = "./web/comfyui"
|
||||
|
||||
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DIR_WEB = os.path.abspath(f'{THIS_DIR}/{WEB_DIRECTORY}')
|
||||
DIR_PY = os.path.abspath(f'{THIS_DIR}/py')
|
||||
|
||||
# remove old directories
|
||||
OLD_DIRS = [
|
||||
os.path.abspath(f'{THIS_DIR}/../../web/extensions/rgthree'),
|
||||
os.path.abspath(f'{THIS_DIR}/../../web/extensions/rgthree-comfy'),
|
||||
]
|
||||
for old_dir in OLD_DIRS:
|
||||
if os.path.exists(old_dir):
|
||||
shutil.rmtree(old_dir)
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'WEB_DIRECTORY']
|
||||
|
||||
NOT_NODES = ['constants', 'log', 'utils', 'rgthree', 'rgthree_server', 'image_clipbaord', 'config']
|
||||
|
||||
nodes = []
|
||||
for file in glob(os.path.join(DIR_PY, '*.py')) + glob(os.path.join(DIR_WEB, '*.js')):
|
||||
name = os.path.splitext(os.path.basename(file))[0]
|
||||
if name in NOT_NODES or name in nodes:
|
||||
continue
|
||||
if name.startswith('_') or name.startswith('base') or 'utils' in name:
|
||||
continue
|
||||
nodes.append(name)
|
||||
if name == 'display_any':
|
||||
nodes.append('display_int')
|
||||
|
||||
print()
|
||||
adjs = ['exciting', 'extraordinary', 'epic', 'fantastic', 'magnificent']
|
||||
log(f'Loaded {len(nodes)} {random.choice(adjs)} nodes. 🎉', color='BRIGHT_GREEN')
|
||||
print()
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
NAMESPACE='rgthree'
|
||||
|
||||
def get_name(name):
|
||||
return '{} ({})'.format(name, NAMESPACE)
|
||||
|
||||
def get_category(sub_dirs = None):
|
||||
if sub_dirs is None:
|
||||
return NAMESPACE
|
||||
else:
|
||||
return "{}/utils".format(NAMESPACE)
|
||||
@@ -0,0 +1,77 @@
|
||||
import json
|
||||
from .constants import get_category, get_name
|
||||
from .utils import any_type, get_dict_value
|
||||
|
||||
|
||||
class RgthreeDisplayAny:
|
||||
"""Display any data node."""
|
||||
|
||||
NAME = get_name('Display Any')
|
||||
CATEGORY = get_category()
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstring
|
||||
return {
|
||||
"required": {
|
||||
"source": (any_type, {}),
|
||||
},
|
||||
"hidden": {
|
||||
"unique_id": "UNIQUE_ID",
|
||||
"extra_pnginfo": "EXTRA_PNGINFO",
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "main"
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def main(self, source=None, unique_id=None, extra_pnginfo=None):
|
||||
value = 'None'
|
||||
if isinstance(source, str):
|
||||
value = source
|
||||
elif isinstance(source, (int, float, bool)):
|
||||
value = str(source)
|
||||
elif source is not None:
|
||||
try:
|
||||
value = json.dumps(source)
|
||||
except Exception:
|
||||
try:
|
||||
value = str(source)
|
||||
except Exception:
|
||||
value = 'source exists, but could not be serialized.'
|
||||
|
||||
# Save the output to the pnginfo so it's pre-filled when loading the data.
|
||||
if extra_pnginfo and unique_id:
|
||||
for node in get_dict_value(extra_pnginfo, 'workflow.nodes', []):
|
||||
if str(node['id']) == str(unique_id):
|
||||
node['widgets_values'] = [value]
|
||||
break
|
||||
|
||||
return {"ui": {"text": (value,)}}
|
||||
|
||||
|
||||
class RgthreeDisplayInt:
|
||||
"""Old DisplayInt node.
|
||||
|
||||
Can be ported over to DisplayAny if https://github.com/comfyanonymous/ComfyUI/issues/1527 fixed.
|
||||
"""
|
||||
|
||||
NAME = get_name('Display Int')
|
||||
CATEGORY = get_category()
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"input": ("INT", {
|
||||
"forceInput": True
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "main"
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def main(self, input=None):
|
||||
return {"ui": {"text": (input,)}}
|
||||
@@ -0,0 +1,162 @@
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
|
||||
from typing import Union
|
||||
|
||||
|
||||
class AnyType(str):
|
||||
"""A special class that is always equal in not equal comparisons. Credit to pythongosssss"""
|
||||
|
||||
def __ne__(self, __value: object) -> bool:
|
||||
return False
|
||||
|
||||
|
||||
class FlexibleOptionalInputType(dict):
|
||||
"""A special class to make flexible nodes that pass data to our python handlers.
|
||||
|
||||
Enables both flexible/dynamic input types (like for Any Switch) or a dynamic number of inputs
|
||||
(like for Any Switch, Context Switch, Context Merge, Power Lora Loader, etc).
|
||||
|
||||
Initially, ComfyUI only needed to return True for `__contains__` below, which told ComfyUI that
|
||||
our node will handle the input, regardless of what it is.
|
||||
|
||||
However, after https://github.com/comfyanonymous/ComfyUI/pull/2666 ComdyUI's execution changed
|
||||
also checking the data for the key; specifcially, the type which is the first tuple entry. This
|
||||
type is supplied to our FlexibleOptionalInputType and returned for any non-data key. This can be a
|
||||
real type, or use the AnyType for additional flexibility.
|
||||
"""
|
||||
|
||||
def __init__(self, type, data: Union[dict, None] = None):
|
||||
"""Initializes the FlexibleOptionalInputType.
|
||||
|
||||
Args:
|
||||
type: The flexible type to use when ComfyUI retrieves an unknown key (via `__getitem__`).
|
||||
data: An optional dict to use as the basis. This is stored both in a `data` attribute, so we
|
||||
can look it up without hitting our overrides, as well as iterated over and adding its key
|
||||
and values to our `self` keys. This way, when looked at, we will appear to represent this
|
||||
data. When used in an "optional" INPUT_TYPES, these are the starting optional node types.
|
||||
"""
|
||||
self.type = type
|
||||
self.data = data
|
||||
if self.data is not None:
|
||||
for k, v in self.data.items():
|
||||
self[k] = v
|
||||
|
||||
def __getitem__(self, key):
|
||||
# If we have this key in the initial data, then return it. Otherwise return the tuple with our
|
||||
# flexible type.
|
||||
if self.data is not None and key in self.data:
|
||||
val = self.data[key]
|
||||
return val
|
||||
return (self.type,)
|
||||
|
||||
def __contains__(self, key):
|
||||
"""Always contain a key, and we'll always return the tuple above when asked for it."""
|
||||
return True
|
||||
|
||||
|
||||
any_type = AnyType("*")
|
||||
|
||||
|
||||
def is_dict_value_falsy(data: dict, dict_key: str):
|
||||
"""Checks if a dict value is falsy."""
|
||||
val = get_dict_value(data, dict_key)
|
||||
return not val
|
||||
|
||||
|
||||
def get_dict_value(data: dict, dict_key: str, default=None):
|
||||
"""Gets a deeply nested value given a dot-delimited key."""
|
||||
keys = dict_key.split('.')
|
||||
key = keys.pop(0) if len(keys) > 0 else None
|
||||
found = data[key] if key in data else None
|
||||
if found is not None and len(keys) > 0:
|
||||
return get_dict_value(found, '.'.join(keys), default)
|
||||
return found if found is not None else default
|
||||
|
||||
|
||||
def set_dict_value(data: dict, dict_key: str, value, create_missing_objects=True):
|
||||
"""Sets a deeply nested value given a dot-delimited key."""
|
||||
keys = dict_key.split('.')
|
||||
key = keys.pop(0) if len(keys) > 0 else None
|
||||
if key not in data:
|
||||
if create_missing_objects is False:
|
||||
return data
|
||||
data[key] = {}
|
||||
if len(keys) == 0:
|
||||
data[key] = value
|
||||
else:
|
||||
set_dict_value(data[key], '.'.join(keys), value, create_missing_objects)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
def dict_has_key(data: dict, dict_key):
|
||||
"""Checks if a dict has a deeply nested dot-delimited key."""
|
||||
keys = dict_key.split('.')
|
||||
key = keys.pop(0) if len(keys) > 0 else None
|
||||
if key is None or key not in data:
|
||||
return False
|
||||
if len(keys) == 0:
|
||||
return True
|
||||
return dict_has_key(data[key], '.'.join(keys))
|
||||
|
||||
|
||||
def load_json_file(file: str, default=None):
|
||||
"""Reads a json file and returns the json dict, stripping out "//" comments first."""
|
||||
if path_exists(file):
|
||||
with open(file, 'r', encoding='UTF-8') as file:
|
||||
config = file.read()
|
||||
try:
|
||||
return json.loads(config)
|
||||
except json.decoder.JSONDecodeError:
|
||||
try:
|
||||
config = re.sub(r"^\s*//\s.*", "", config, flags=re.MULTILINE)
|
||||
return json.loads(config)
|
||||
except json.decoder.JSONDecodeError:
|
||||
try:
|
||||
config = re.sub(r"(?:^|\s)//.*", "", config, flags=re.MULTILINE)
|
||||
return json.loads(config)
|
||||
except json.decoder.JSONDecodeError:
|
||||
pass
|
||||
return default
|
||||
|
||||
|
||||
def save_json_file(file_path: str, data: dict):
|
||||
"""Saves a json file."""
|
||||
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
||||
with open(file_path, 'w+', encoding='UTF-8') as file:
|
||||
json.dump(data, file, sort_keys=False, indent=2, separators=(",", ": "))
|
||||
|
||||
|
||||
def path_exists(path):
|
||||
"""Checks if a path exists, accepting None type."""
|
||||
if path is not None:
|
||||
return os.path.exists(path)
|
||||
return False
|
||||
|
||||
|
||||
def file_exists(path):
|
||||
"""Checks if a file exists, accepting None type."""
|
||||
if path is not None:
|
||||
return os.path.isfile(path)
|
||||
return False
|
||||
|
||||
|
||||
def remove_path(path):
|
||||
"""Removes a path, if it exists."""
|
||||
if path_exists(path):
|
||||
os.remove(path)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class ByPassTypeTuple(tuple):
|
||||
"""A special class that will return additional "AnyType" strings beyond defined values.
|
||||
Credit to Trung0246
|
||||
"""
|
||||
|
||||
def __getitem__(self, index):
|
||||
if index > len(self) - 1:
|
||||
return AnyType("*")
|
||||
return super().__getitem__(index)
|
||||
@@ -0,0 +1,35 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
import { ComfyWidgets } from "../../scripts/widgets.js";
|
||||
import { addConnectionLayoutSupport } from "./utils.js";
|
||||
import { rgthree } from "./rgthree.js";
|
||||
let hasShownAlertForUpdatingInt = false;
|
||||
app.registerExtension({
|
||||
name: "rgthree.DisplayAny",
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === "Display Any (rgthree)" || nodeData.name === "Display Int (rgthree)") {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated;
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
onNodeCreated ? onNodeCreated.apply(this, []) : undefined;
|
||||
this.showValueWidget = ComfyWidgets["STRING"](this, "output", ["STRING", { multiline: true }], app).widget;
|
||||
this.showValueWidget.inputEl.readOnly = true;
|
||||
this.showValueWidget.serializeValue = async (node, index) => {
|
||||
const n = rgthree.getNodeFromInitialGraphToPromptSerializedWorkflowBecauseComfyUIBrokeStuff(node);
|
||||
if (n) {
|
||||
n.widgets_values[index] = "";
|
||||
}
|
||||
else {
|
||||
console.warn("No serialized node found in workflow. May be attributed to " +
|
||||
"https://github.com/comfyanonymous/ComfyUI/issues/2193");
|
||||
}
|
||||
return "";
|
||||
};
|
||||
};
|
||||
addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]);
|
||||
const onExecuted = nodeType.prototype.onExecuted;
|
||||
nodeType.prototype.onExecuted = function (message) {
|
||||
onExecuted === null || onExecuted === void 0 ? void 0 : onExecuted.apply(this, [message]);
|
||||
this.showValueWidget.value = message.text[0];
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,279 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "load",
|
||||
"file": "nodes.py",
|
||||
"local_file": "load__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5",
|
||||
"git_blob_sha1": "9448f9c1b383d06e1e62c191144731babe974375"
|
||||
},
|
||||
{
|
||||
"id": "load",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "load__folder_paths.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/folder_paths.py",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547",
|
||||
"git_blob_sha1": "9ec952940cdda022439f9dcd91c0d858b7801bf4"
|
||||
},
|
||||
{
|
||||
"id": "load",
|
||||
"file": "LICENSE",
|
||||
"local_file": "load__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE",
|
||||
"commit": "d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7",
|
||||
"git_blob_sha1": "7cfa8ca1411da9f6802d27a424f6dde11da0d83b"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "comfy/utils.py",
|
||||
"local_file": "core__comfy__utils.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509",
|
||||
"git_blob_sha1": "0fd03f165b7c97a9b27dfdbd350a66a6981d5d8d"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "core__folder_paths.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/folder_paths.py",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a",
|
||||
"git_blob_sha1": "f110d832bb23c84ec27fa3135eb958cb66acb069"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "LICENSE",
|
||||
"local_file": "core__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE",
|
||||
"commit": "51696e3fdcdfad657cb15854345fbcbbe70eef8d",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "__init__.py",
|
||||
"local_file": "kj____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a",
|
||||
"git_blob_sha1": "fce7a50fb20726cefb84215911b01500acfbab35"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "nodes/image_nodes.py",
|
||||
"local_file": "kj__nodes__image_nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb",
|
||||
"git_blob_sha1": "20cc0cd0013cf41c87ccfb51fff046fbfa6c639a"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "LICENSE",
|
||||
"local_file": "kj__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE",
|
||||
"commit": "f7eb33abc80a2aded1b46dff0dd14d07856a7d50",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "__init__.py",
|
||||
"local_file": "layer____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/image_scale_restore_v2.py",
|
||||
"local_file": "layer__py__image_scale_restore_v2.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43",
|
||||
"git_blob_sha1": "3007676cbee5c8d3db21b5000ce05588aadd5f13"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/image_scale_by_aspect_ratio_v2.py",
|
||||
"local_file": "layer__py__image_scale_by_aspect_ratio_v2.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
|
||||
"git_blob_sha1": "c6e573c19cfa5a1e862cff779cace72bf298a3d5"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "layer__py__imagefunc.py",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "LICENSE",
|
||||
"local_file": "layer__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"file": "__init__.py",
|
||||
"local_file": "impact____init__.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"file": "LICENSE.txt",
|
||||
"local_file": "impact__LICENSE.txt",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "__init__.py",
|
||||
"local_file": "rgthree____init__.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "py/display_any.py",
|
||||
"local_file": "rgthree__py__display_any.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "py/constants.py",
|
||||
"local_file": "rgthree__py__constants.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "web/comfyui/display_any.js",
|
||||
"local_file": "rgthree__web__comfyui__display_any.js",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "LICENSE",
|
||||
"local_file": "rgthree__LICENSE",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"file": "modules/impact/logics.py",
|
||||
"local_file": "impact__modules__impact__logics.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip",
|
||||
"commit": "发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c",
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"file": "py/utils.py",
|
||||
"local_file": "rgthree__py__utils.py",
|
||||
"url": "https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip",
|
||||
"commit": "发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1",
|
||||
"sha256": "47dcb57dae78b6562abd51e6796fb64df5b3820a081273394a41d250e6b14284"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/lib/litegraph/src/LGraphNode.ts",
|
||||
"local_file": "../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588",
|
||||
"git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"local_file": "../seedvr2-reference/frontend__src__scripts__widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c",
|
||||
"git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/extensions/core/uploadImage.ts",
|
||||
"local_file": "../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
|
||||
"git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../seedvr2-reference/frontend__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
|
||||
"local_file": "frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
|
||||
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
|
||||
"sha256": "219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c",
|
||||
"git_blob_sha1": "da4e45f89c7742304913c92f8f8cf4130973dbc0",
|
||||
"identity_binding": "reference hypothesis v1.45.20 only; source frontendVersion absent"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,998 @@
|
||||
# 图像放大比较固定参考中文说明
|
||||
|
||||
新增35保存位置/0注释;旧33图1034位置+25注释逐对象不变,现34图1069+25仅参考。155定稿0/实跑0/新增转换0。
|
||||
|
||||
来源local_file以docs/hel-892/resize-compare-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。
|
||||
|
||||
## 图像放大比较
|
||||
|
||||
这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。
|
||||
|
||||
仅固定来源参考;KJ接口冲突、前端恢复/素材尺寸/设备/实际效果未知,转换关闭、未实跑。
|
||||
|
||||
源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json`
|
||||
|
||||
SHA1:b16eb7cea17ce125be95637c2309c941870cd25b
|
||||
|
||||
原字节SHA256:1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4
|
||||
|
||||
规范全图SHA256:bb8e2be66e72bf1ffb37837ce13dfc18b9c66182dc8ea1d2593c1f925a486061
|
||||
|
||||
load→d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8
|
||||
|
||||
core→51696e3fdcdfad657cb15854345fbcbbe70eef8d
|
||||
|
||||
kj→f7eb33abc80a2aded1b46dff0dd14d07856a7d50
|
||||
|
||||
layer→89014d833d2ad0998d724090eff1456692692a1d
|
||||
|
||||
impact→发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;Git绑定未知
|
||||
|
||||
rgthree→发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;Git绑定未知
|
||||
|
||||
frontend→7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;仅参考假设1.45.20,源前端未知
|
||||
|
||||
### 具体连线与处理条件
|
||||
|
||||
这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。
|
||||
|
||||
17节点/20物理边,全mode0,无子图、无源Note;35标量保存位置含6空字符串与1上传占位,四Preview空[]各为零位置。
|
||||
|
||||
四并行链:1.LoadImage→2.ImageResizeKJv2→3.PreviewImage;1→4.ImageScale→8.PreviewImage;1→5.ImageScaleRestoreV2→9.PreviewImage;1→7.ImageScaleByAspectRatioV2→10.PreviewImage。没有比较滑块、模型超分或正式SaveImage。
|
||||
|
||||
11.ImpactInt保存480,边9/14分别覆盖2.width/4.width;12保存720,边10/11分别覆盖2.height/4.height,边12/13分别覆盖5.scale_by_length/7.scale_to_length。缓存仍保留,不构造prompt。
|
||||
|
||||
5保存scale为JSON int1但schema为FLOAT;original_size未接,scale_by=by_scale按原宽高乘倍率并至少4像素,不采用外接长度720。只有longest/shortest/width/height/total_pixel分支才采用长度,original_size若有值则优先。
|
||||
|
||||
7保存original与custom宽高1/1,当前用原图比例;scale_to_side是字符串None,故不采用720长度;再将宽高各向上取8倍数。letterbox按比例缩放、居中贴黑底,不保证与原图逐像素一致。
|
||||
|
||||
2当前stretch/lanczos/cpu,width480、height720经过divisible_by16向下对齐;pad_color与crop_position在当前stretch不参与。准确KJ源码keep_proportion默认False与枚举不一致,保留原文;gpu+lanczos抛错仅静态条件。
|
||||
|
||||
源2保存可选mask输入及第四mask出口,但准确f7eb33ab实现没有mask输入或输出、只有IMAGE/width/height三出口。该接口冲突未修图、不借新版补齐,实际恢复与运行仍未知,转换关闭。
|
||||
|
||||
4当前nearest-exact/disabled,直接按请求宽高伸缩;六DisplayAny分别13/14显示2.width/height,15/16显示5.width/height,17/18显示7.width/height。它们保存空文本,仅ui.text更新,不是比较器或测量证据。
|
||||
|
||||
未接:1.MASK;源2.mask输入与mask出口;5.mask及original_size输入、mask及original_size出口;7.mask输入、mask及original_size出口。3/8/9/10无数据输出。没有模型节点,不编造模型依赖。
|
||||
|
||||
准确core0.3.65 PreviewImage继承RETURN_TYPES=(),写temp PNG返回ui.images文件描述符而无result数据出口;不是正式输出保证。图片名只文本,实际素材存在/尺寸/设备/内存/像素及效果均未知。
|
||||
|
||||
身份分层:LoadImage声明core0.3.50,ImageScale及四Preview声明0.3.65;KJ与LayerStyle按各自完整提交,ImpactPack8.25.1和rgthree1.0.2510052058固定发布包SHA256,发布包Git绑定未知。源extra只有ds,无frontendVersion;frontend1.45.20仅恢复/序列化参考假设,不称宿主版本。
|
||||
|
||||
UE7.1只在源LoadImage和KJ节点properties声明;可连接表、mask接口与实际扩展恢复顺序未知,不重复历史调查。源无widgets_values_named,只有位置与可得inputs.widget.name指针,未制造具名保存值。
|
||||
|
||||
旧33块1034位置+25注释逐对象冻结;新增35保存位置/0注释,现34图1069+25仅参考。155停用未检查、定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭;case06排除。
|
||||
|
||||
原边 root [1, 1, 0, 2, 0, "IMAGE"]
|
||||
|
||||
原边 root [2, 2, 0, 3, 0, "IMAGE"]
|
||||
|
||||
原边 root [3, 1, 0, 4, 0, "IMAGE"]
|
||||
|
||||
原边 root [4, 1, 0, 5, 0, "IMAGE"]
|
||||
|
||||
原边 root [5, 1, 0, 7, 0, "IMAGE"]
|
||||
|
||||
原边 root [6, 4, 0, 8, 0, "IMAGE"]
|
||||
|
||||
原边 root [7, 5, 0, 9, 0, "IMAGE"]
|
||||
|
||||
原边 root [8, 7, 0, 10, 0, "IMAGE"]
|
||||
|
||||
原边 root [9, 11, 0, 2, 2, "INT"]
|
||||
|
||||
原边 root [10, 12, 0, 2, 3, "INT"]
|
||||
|
||||
原边 root [11, 12, 0, 4, 3, "INT"]
|
||||
|
||||
原边 root [12, 12, 0, 5, 6, "INT"]
|
||||
|
||||
原边 root [13, 12, 0, 7, 9, "INT"]
|
||||
|
||||
原边 root [14, 11, 0, 4, 2, "INT"]
|
||||
|
||||
原边 root [17, 2, 1, 13, 0, "*"]
|
||||
|
||||
原边 root [18, 2, 2, 14, 0, "*"]
|
||||
|
||||
原边 root [19, 5, 3, 15, 0, "*"]
|
||||
|
||||
原边 root [20, 5, 4, 16, 0, "*"]
|
||||
|
||||
原边 root [21, 7, 3, 17, 0, "*"]
|
||||
|
||||
原边 root [22, 7, 4, 18, 0, "*"]
|
||||
|
||||
### 使用与核对
|
||||
|
||||
这张图把同一张图片送到四条缩放链分别预览,并显示三个插件分支的宽高。它没有模型超分节点或比较滑块,也没有正式保存节点。480/720只覆盖KJ和核心分支的宽高;另外两支当前不采用外接720长度。素材尺寸、接口恢复与实际效果未知;仅供参考,转换和生成保持关闭。
|
||||
|
||||
操作1:只读核对四链、输入素材文件名和外线覆盖,保留停用,不上传图片。
|
||||
|
||||
操作2:区分当前长度未采用与尺寸对齐、KJ接口冲突,先核准确运行定义;不改源或构造prompt。
|
||||
|
||||
操作3:全量完成并审核前仅读参考说明;实际尺寸、设备及质量仍未测。
|
||||
|
||||
### 逐保存位置说明
|
||||
|
||||
#### 1. 节点1 · 输入图片文件名(image)
|
||||
|
||||
选择四条缩放链共同的输入图片。当前仅保存文件名,不能推出素材存在或原始宽高。
|
||||
|
||||
```json
|
||||
"360截图20251018220547863.jpg"
|
||||
```
|
||||
|
||||
类:LoadImage;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/0/widgets_values/0`;源输入口:`/nodes/0/inputs/0`
|
||||
|
||||
定义默认:未显式指定默认;输入目录图片排序枚举;单位:文件名
|
||||
|
||||
范围/条件:依赖准确运行目录和素材;不存在或校验失败不能加载
|
||||
|
||||
节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [0] 准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得;nodes.py 1626~1700行;commit d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 2. 节点1 · 上传控件保存占位(upload)
|
||||
|
||||
保留上传控件位置的image占位,它不是第二张图片或后端参数,也不是已完成上传;参考前端serialize=false不恢复此位置,不能把源占位当已恢复参数。
|
||||
|
||||
```json
|
||||
"image"
|
||||
```
|
||||
|
||||
类:LoadImage;JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/0/widgets_values/1`;源输入口:`/nodes/0/inputs/1`
|
||||
|
||||
定义默认:后端无upload参数;参考前端自动补控件;单位:前端状态
|
||||
|
||||
范围/条件:保存字符串image;准确宿主前端及扩展恢复未知
|
||||
|
||||
节点1保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [24] 仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数;src/extensions/core/uploadImage.ts 10~40行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 3. 节点4 · 核心重采样方法(upscale_method)
|
||||
|
||||
核心分支保存nearest-exact,用最近邻精确模式调整像素;不表示模型超分或画质提升。
|
||||
|
||||
```json
|
||||
"nearest-exact"
|
||||
```
|
||||
|
||||
类:ImageScale;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/1/widgets_values/0`;源输入口:`/nodes/1/inputs/1`
|
||||
|
||||
定义默认:未显式默认;首选项nearest-exact;单位:枚举
|
||||
|
||||
范围/条件:nearest-exact/bilinear/area/bicubic/lanczos
|
||||
|
||||
节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 4. 节点4 · 核心分支宽度缓存(width)
|
||||
|
||||
缓存480被11.value经边14覆盖;当前外线480。crop=disabled按请求宽高伸缩,实际像素未测。
|
||||
|
||||
```json
|
||||
480
|
||||
```
|
||||
|
||||
类:ImageScale;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/1/widgets_values/1`;源输入口:`/nodes/1/inputs/2`
|
||||
|
||||
定义默认:512;单位:像素
|
||||
|
||||
范围/条件:INT 0~16384,step1;0按另一轴推算;两轴0直接返回
|
||||
|
||||
节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边14覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 5. 节点4 · 核心分支高度缓存(height)
|
||||
|
||||
缓存720被12.value经边11覆盖;当前外线720,不从保存缓存推实际输出。
|
||||
|
||||
```json
|
||||
720
|
||||
```
|
||||
|
||||
类:ImageScale;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/1/widgets_values/2`;源输入口:`/nodes/1/inputs/3`
|
||||
|
||||
定义默认:512;单位:像素
|
||||
|
||||
范围/条件:INT 0~16384,step1;0按另一轴推算
|
||||
|
||||
节点4保存mode0;源无具名保存表,不制造具名保存值。源输入边11覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 6. 节点4 · 核心裁剪开关(crop)
|
||||
|
||||
当前disabled不裁剪,按两轴伸缩;center才按中心裁切以匹配比例。
|
||||
|
||||
```json
|
||||
"disabled"
|
||||
```
|
||||
|
||||
类:ImageScale;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/1/widgets_values/3`;源输入口:`/nodes/1/inputs/4`
|
||||
|
||||
定义默认:未显式默认;首选项disabled;单位:枚举
|
||||
|
||||
范围/条件:disabled/center
|
||||
|
||||
节点4保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [2] 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 1778~1806行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 7. 节点12 · 高度及长度整数(value)
|
||||
|
||||
保存720;边10接2.height、11接4.height、12接5.scale_by_length、13接7.scale_to_length。后两项在当前分支不用于计算尺寸。
|
||||
|
||||
```json
|
||||
720
|
||||
```
|
||||
|
||||
类:ImpactInt;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/2/widgets_values/0`;源输入口:`/nodes/2/inputs/0`
|
||||
|
||||
定义默认:0;单位:整数;长度输入为像素
|
||||
|
||||
范围/条件:INT 0~sys.maxsize,step1;不是内存或图像尺寸保证
|
||||
|
||||
节点12保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [15] 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 239~255行;commit 发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 8. 节点11 · 共同宽度整数(value)
|
||||
|
||||
保存480原样输出,边9接2.width、边14接4.width;不是所有分支的统一宽度。
|
||||
|
||||
```json
|
||||
480
|
||||
```
|
||||
|
||||
类:ImpactInt;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/3/widgets_values/0`;源输入口:`/nodes/3/inputs/0`
|
||||
|
||||
定义默认:0;单位:整数;接宽度时为像素
|
||||
|
||||
范围/条件:INT 0~sys.maxsize,step1;资源上限另受下游约束
|
||||
|
||||
节点11保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [15] 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 239~255行;commit 发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 9. 节点2 · KJ宽度缓存(width)
|
||||
|
||||
缓存480被11.value经边9覆盖;stretch直接缩放,divisible_by再向下对齐。
|
||||
|
||||
```json
|
||||
480
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/0`;源输入口:`/nodes/4/inputs/2`
|
||||
|
||||
定义默认:512;单位:像素
|
||||
|
||||
范围/条件:INT 0~宿主MAX_RESOLUTION,step1;宿主未知,core0.3.65参考上限16384
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边9覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 10. 节点2 · KJ高度缓存(height)
|
||||
|
||||
缓存720被12.value经边10覆盖;与480均为16倍数,但未实际输出图片。
|
||||
|
||||
```json
|
||||
720
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/1`;源输入口:`/nodes/4/inputs/3`
|
||||
|
||||
定义默认:512;单位:像素
|
||||
|
||||
范围/条件:INT 0~宿主MAX_RESOLUTION,step1
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。源输入边10覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 11. 节点2 · KJ重采样方法(upscale_method)
|
||||
|
||||
保存lanczos且device=cpu;经common_upscale的PIL插值,不是加载超分模型,实际效果未知。
|
||||
|
||||
```json
|
||||
"lanczos"
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/2`;源输入口:`/nodes/4/inputs/4`
|
||||
|
||||
定义默认:未显式默认;首选项nearest-exact;单位:枚举
|
||||
|
||||
范围/条件:nearest-exact/bilinear/area/bicubic/lanczos;gpu不支持lanczos
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 12. 节点2 · KJ比例处理(keep_proportion)
|
||||
|
||||
当前stretch直接按两轴伸缩,不走保比例、填边或裁剪分支;可能改变原图比例,素材宽高未知。
|
||||
|
||||
```json
|
||||
"stretch"
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/3`;源输入口:`/nodes/4/inputs/5`
|
||||
|
||||
定义默认:源码显式False(与枚举类型不一致);不改写为stretch;单位:枚举
|
||||
|
||||
范围/条件:stretch/resize/pad/pad_edge/crop;保存值有效性与默认冲突分开
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 13. 节点2 · KJ填充颜色(pad_color)
|
||||
|
||||
保存黑色0, 0, 0,当前stretch不采用该颜色。
|
||||
|
||||
```json
|
||||
"0, 0, 0"
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/4`;源输入口:`/nodes/4/inputs/6`
|
||||
|
||||
定义默认:0, 0, 0;单位:RGB文本
|
||||
|
||||
范围/条件:STRING;仅pad/pad_edge路径调用填边
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 14. 节点2 · KJ裁剪位置(crop_position)
|
||||
|
||||
保存center仅在crop决定裁剪起点,当前stretch不裁剪也不采用此位置。
|
||||
|
||||
```json
|
||||
"center"
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/5`;源输入口:`/nodes/4/inputs/7`
|
||||
|
||||
定义默认:center;单位:枚举
|
||||
|
||||
范围/条件:center/top/bottom/left/right;仅crop分支
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 15. 节点2 · KJ尺寸倍数(divisible_by)
|
||||
|
||||
保存16,width/height分别减去除16余数;当前外接480/720整除,不据此保证运行成功。
|
||||
|
||||
```json
|
||||
16
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/6`;源输入口:`/nodes/4/inputs/8`
|
||||
|
||||
定义默认:2;单位:像素倍数
|
||||
|
||||
范围/条件:INT 0~512,step1;>1向下取整,0/1不对齐
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 16. 节点2 · KJ处理设备(device)
|
||||
|
||||
保存cpu,把输入副本放CPU处理并返回CPU图像;不证明素材、依赖或设备资源可用。
|
||||
|
||||
```json
|
||||
"cpu"
|
||||
```
|
||||
|
||||
类:ImageResizeKJv2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/4/widgets_values/7`;源输入口:`/nodes/4/inputs/9`
|
||||
|
||||
定义默认:schema未显式;首项cpu,函数默认cpu;单位:设备枚举
|
||||
|
||||
范围/条件:cpu/gpu;gpu+lanczos主动抛错
|
||||
|
||||
节点2保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [7] KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 2376~2502行;commit f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [6] lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 858~900行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
- [5] MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 52~52行;commit 51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
#### 17. 节点5 · 恢复分支倍率(scale)
|
||||
|
||||
当前by_scale且original_size未接,按原宽高乘1取int并至少4;不是模型放大,不保证像素完全不变。
|
||||
|
||||
```json
|
||||
1
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleRestore V2;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/5/widgets_values/0`;源输入口:`/nodes/5/inputs/3`
|
||||
|
||||
定义默认:1;单位:倍数
|
||||
|
||||
范围/条件:FLOAT 0.01~100,step0.01;源JSON为int1
|
||||
|
||||
节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 18. 节点5 · 恢复分支重采样(method)
|
||||
|
||||
保存lanczos,经PIL RGB resize;是否改善观感未知。
|
||||
|
||||
```json
|
||||
"lanczos"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleRestore V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/5/widgets_values/1`;源输入口:`/nodes/5/inputs/4`
|
||||
|
||||
定义默认:未显式默认;首项lanczos;单位:枚举
|
||||
|
||||
范围/条件:lanczos/bicubic/hamming/bilinear/box/nearest
|
||||
|
||||
节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 19. 节点5 · 恢复分支尺寸方式(scale_by)
|
||||
|
||||
当前by_scale走倍率,不采用scale_by_length。若original_size非空优先使用其两轴,但本图该口未接。
|
||||
|
||||
```json
|
||||
"by_scale"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleRestore V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/5/widgets_values/2`;源输入口:`/nodes/5/inputs/5`
|
||||
|
||||
定义默认:未显式默认;首项by_scale;单位:枚举
|
||||
|
||||
范围/条件:by_scale/longest/shortest/width/height/total_pixel(kilo pixel)
|
||||
|
||||
节点5保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 20. 节点5 · 恢复分支长度缓存(scale_by_length)
|
||||
|
||||
缓存720由12.value经边12覆盖为720;当前by_scale不读取它计算尺寸,不能称该支固定720。
|
||||
|
||||
```json
|
||||
720
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleRestore V2;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/5/widgets_values/3`;源输入口:`/nodes/5/inputs/6`
|
||||
|
||||
定义默认:1024;单位:像素;total_pixel模式为千像素
|
||||
|
||||
范围/条件:INT 4~99999999,step1;仅长度/面积分支采用
|
||||
|
||||
节点5保存mode0;源无具名保存表,不制造具名保存值。源输入边12覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [10] 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 7~132行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 21. 节点7 · 比例分支目标比例(aspect_ratio)
|
||||
|
||||
保存original从输入宽高取比例;不是custom的1:1。
|
||||
|
||||
```json
|
||||
"original"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/0`;源输入口:`/nodes/6/inputs/2`
|
||||
|
||||
定义默认:未显式默认;首项original;单位:枚举
|
||||
|
||||
范围/条件:original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 22. 节点7 · 自定比例宽(proportional_width)
|
||||
|
||||
保存1,当前original不使用该值计算目标比例。
|
||||
|
||||
```json
|
||||
1
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/1`;源输入口:`/nodes/6/inputs/3`
|
||||
|
||||
定义默认:1;单位:比例份数
|
||||
|
||||
范围/条件:INT 1~1e8,step1;仅custom读取
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 23. 节点7 · 自定比例高(proportional_height)
|
||||
|
||||
保存1,当前original不使用该值,不据两项1声称方图。
|
||||
|
||||
```json
|
||||
1
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/2`;源输入口:`/nodes/6/inputs/4`
|
||||
|
||||
定义默认:1;单位:比例份数
|
||||
|
||||
范围/条件:INT 1~1e8,step1;仅custom读取
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 24. 节点7 · 比例分支适配方式(fit)
|
||||
|
||||
letterbox保比例缩放后居中放入背景画布;两轴分别向上对齐可能产生边框,实际范围依赖原尺寸。
|
||||
|
||||
```json
|
||||
"letterbox"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/3`;源输入口:`/nodes/6/inputs/5`
|
||||
|
||||
定义默认:未显式默认;首项letterbox;单位:枚举
|
||||
|
||||
范围/条件:letterbox/crop/fill
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [12] letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 591~618行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
|
||||
#### 25. 节点7 · 比例分支重采样(method)
|
||||
|
||||
保存lanczos,供适配图片的PIL resize使用,不保证画质。
|
||||
|
||||
```json
|
||||
"lanczos"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/4`;源输入口:`/nodes/6/inputs/6`
|
||||
|
||||
定义默认:未显式默认;首项lanczos;单位:枚举
|
||||
|
||||
范围/条件:lanczos/bicubic/hamming/bilinear/box/nearest
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 26. 节点7 · 比例分支倍数对齐(round_to_multiple)
|
||||
|
||||
源保存字符串8而非JSON int;目标宽高各向上取整到8倍数,不是KJ向下取整。
|
||||
|
||||
```json
|
||||
"8"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/5`;源输入口:`/nodes/6/inputs/7`
|
||||
|
||||
定义默认:未显式默认;首项字符串8;单位:像素倍数枚举
|
||||
|
||||
范围/条件:8/16/32/64/128/256/512/None,全部字符串
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [13] 向上取整到倍数;不同于KJ向下取整;py/imagefunc.py 1967~1973行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
|
||||
#### 27. 节点7 · 比例分支缩放基准(scale_to_side)
|
||||
|
||||
当前字符串None走原尺寸比例分支,不采用scale_to_length=720;随后仍执行8倍数对齐及letterbox。
|
||||
|
||||
```json
|
||||
"None"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/6`;源输入口:`/nodes/6/inputs/8`
|
||||
|
||||
定义默认:未显式默认;首项字符串None;单位:枚举
|
||||
|
||||
范围/条件:None/longest/shortest/width/height/total_pixel(kilo pixel)
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 28. 节点7 · 比例分支长度缓存(scale_to_length)
|
||||
|
||||
缓存720由12.value经边13覆盖;当前None分支不用于最终尺寸,不能称720长边。
|
||||
|
||||
```json
|
||||
720
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:int;角色:linked_cache。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/7`;源输入口:`/nodes/6/inputs/9`
|
||||
|
||||
定义默认:1024;单位:像素;total_pixel模式为千像素
|
||||
|
||||
范围/条件:INT 4~1e8,step1;按scale_to_side分支读取
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。源输入边13覆盖该缓存;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
#### 29. 节点7 · 比例分支背景色(background_color)
|
||||
|
||||
保存#000000黑色,在letterbox画布居中贴图时用于未覆盖区域;是否有可见边框依赖原尺寸与对齐。
|
||||
|
||||
```json
|
||||
"#000000"
|
||||
```
|
||||
|
||||
类:LayerUtility: ImageScaleByAspectRatio V2;JSON类型:str;角色:scalar。
|
||||
|
||||
源保存位置:`/nodes/6/widgets_values/8`;源输入口:`/nodes/6/inputs/10`
|
||||
|
||||
定义默认:#000000;单位:颜色字符串
|
||||
|
||||
范围/条件:STRING;letterbox用PIL颜色创建背景
|
||||
|
||||
节点7保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [12] letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 591~618行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [11] 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 8~186行;commit 89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
|
||||
#### 30. 节点17 · 显示宽度文本(output)
|
||||
|
||||
节点17接7.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/7/widgets_values/0`;源输入口:`/nodes/7/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点17保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
#### 31. 节点13 · 显示宽度文本(output)
|
||||
|
||||
节点13接2.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/8/widgets_values/0`;源输入口:`/nodes/8/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点13保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
#### 32. 节点18 · 显示高度文本(output)
|
||||
|
||||
节点18接7.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/9/widgets_values/0`;源输入口:`/nodes/9/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点18保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
#### 33. 节点15 · 显示宽度文本(output)
|
||||
|
||||
节点15接5.width,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/10/widgets_values/0`;源输入口:`/nodes/10/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点15保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
#### 34. 节点16 · 显示高度文本(output)
|
||||
|
||||
节点16接5.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/11/widgets_values/0`;源输入口:`/nodes/11/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点16保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
#### 35. 节点14 · 显示高度文本(output)
|
||||
|
||||
节点14接2.height,当前保存空字符串;执行后的ui.text才会更新显示,不能把空串当0或已测结果。
|
||||
|
||||
```json
|
||||
""
|
||||
```
|
||||
|
||||
类:Display Any (rgthree);JSON类型:str;角色:frontend_control。
|
||||
|
||||
源保存位置:`/nodes/12/widgets_values/0`;源输入口:`/nodes/12/widgets_values/0`
|
||||
|
||||
定义默认:前端创建STRING输出框;没有后端output输入;单位:显示文本
|
||||
|
||||
范围/条件:只读前端STRING,序列化返回空字符串;不是实际宽高
|
||||
|
||||
节点14保存mode0;源无具名保存表,不制造具名保存值。该控件无源输入边覆盖;前端恢复仅参考假设,目标/宿主未知;未构造prompt、未实跑。
|
||||
|
||||
依据:
|
||||
- [19] 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 1~35行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
- [22] 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 917~925行;commit 7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
- [18] 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 6~50行;commit 发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
### 零保存节点与源注释
|
||||
|
||||
3 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。
|
||||
|
||||
8 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。
|
||||
|
||||
9 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。
|
||||
|
||||
10 PreviewImage:源保存空[],零位置。图像经准确core0.3.65 PreviewImage写临时PNG并返回ui.images,RETURN_TYPES为空,无图像数据输出;未实跑。
|
||||
|
||||
### 固定原件索引
|
||||
|
||||
0. 准确core0.3.50 LoadImage枚举、素材检查和IMAGE/MASK;素材本身未取得;nodes.py 第1626~1700行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py
|
||||
|
||||
1. 准确core0.3.50 LoadImage注册;nodes.py 第1957~1959行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 06cb07d99c7c845ce9f88655aeb4d13891e617f5a9c79d2fd44d722154a599d5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/nodes.py
|
||||
|
||||
2. 准确core0.3.65 ImageScale具名schema、零尺寸条件和common_upscale调用;nodes.py 第1778~1806行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
3. PreviewImage继承SaveImage,无数据出口,只临时PNG及ui.images描述符;nodes.py 第1561~1628行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
4. 准确核心节点注册;nodes.py 第1957~1967行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
5. MAX_RESOLUTION=16384;KJ从宿主nodes导入,不证明真实宿主版本;nodes.py 第52~52行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 88f3c18338cfc2dc6b5bef1a24dbe9f49898e23ef01df05093189ae2e432d3d7;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/nodes.py
|
||||
|
||||
6. lanczos经8bit PIL重采样与common_upscale裁剪/插值;不执行媒体;comfy/utils.py 第858~900行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 a4d0b6662456aca5998817a5e5133c3d8306d666e628e2a2ceb90bb053d50509;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/comfy/utils.py
|
||||
|
||||
7. KJ准确schema与resize实现;无mask输入或输出,源接口冲突保留;nodes/image_nodes.py 第2376~2502行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
|
||||
8. KJ MAX_RESOLUTION来自运行宿主nodes,宿主版本未知;nodes/image_nodes.py 第21~21行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 07835ad0b2a1371e7de2f5a13f2571867952e817bfa0c509218a7e0b7061e6fb;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/nodes/image_nodes.py
|
||||
|
||||
9. 准确KJ ImageResizeKJv2注册;__init__.py 第75~85行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 e8e7f70d9f7b0c4db7cf18f5365da534ae7d32fa81e1cef8a3c815aeed79106a;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/__init__.py
|
||||
|
||||
10. 准确ScaleRestore schema、original_size优先及by_scale/长度分支、最小4像素与返回;py/image_scale_restore_v2.py 第7~132行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 2a5f949ca391f0d7811b7528f9c60a74400ed4d696783a7953d3bcd57787ac43;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_restore_v2.py
|
||||
|
||||
11. 准确AspectRatio schema、original/custom、None长度不采用、对齐及返回;py/image_scale_by_aspect_ratio_v2.py 第8~186行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/image_scale_by_aspect_ratio_v2.py
|
||||
|
||||
12. letterbox居中填色、crop居中裁剪、fill直接伸缩;py/imagefunc.py 第591~618行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py
|
||||
|
||||
13. 向上取整到倍数;不同于KJ向下取整;py/imagefunc.py 第1967~1973行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py
|
||||
|
||||
14. LayerStyle包逐模块合并注册,未执行;__init__.py 第29~48行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py
|
||||
|
||||
15. 准确8.25.1 ImpactInt整数默认0、范围0到sys.maxsize及原样返回;modules/impact/logics.py 第239~255行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
|
||||
16. ImpactPack logics导入;__init__.py 第48~48行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
|
||||
17. ImpactInt注册;__init__.py 第259~259行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
|
||||
18. 准确发布包DisplayAny接source并只返回ui.text;保存显示文本不是模型参数;py/display_any.py 第6~50行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
19. 只读output控件;serializeValue返回空字符串/onExecuted更新;web/comfyui/display_any.js 第1~35行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
20. Display Any (rgthree)准确命名;py/constants.py 第2~5行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
21. DisplayAny准确注册;__init__.py 第47~54行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 55ca0464daa52a1578c49f032180ee1c7896a09d3b6ae864d0d6f2e7378d33fb;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
22. 仅参考假设frontend1.45.20位置恢复,跳过serialize=false;源无前端版本;src/lib/litegraph/src/LGraphNode.ts 第917~925行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
23. 仅参考假设位置序列化;不证明目标实际恢复;src/lib/litegraph/src/LGraphNode.ts 第972~984行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts
|
||||
|
||||
24. 仅参考假设为image_upload节点补IMAGEUPLOAD前端输入,不是后端参数;src/extensions/core/uploadImage.ts 第10~40行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts
|
||||
|
||||
25. 仅参考假设IMAGEUPLOAD控件构造入口;src/scripts/widgets.ts 第305~308行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts
|
||||
|
||||
26. 仅参考假设上传控件行为;源保存image原样保留,未上传;src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts 第1~136行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 219415a04a69199aaf103dadcddeade496036f594ed222a200e1956534b3366c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts
|
||||
|
||||
27. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/d5c1954d5cd4a789bbf84d2b75a955a5a3f93de8/LICENSE
|
||||
|
||||
28. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交51696e3fdcdfad657cb15854345fbcbbe70eef8d;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/51696e3fdcdfad657cb15854345fbcbbe70eef8d/LICENSE
|
||||
|
||||
29. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交f7eb33abc80a2aded1b46dff0dd14d07856a7d50;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/f7eb33abc80a2aded1b46dff0dd14d07856a7d50/LICENSE
|
||||
|
||||
30. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~21行;提交89014d833d2ad0998d724090eff1456692692a1d;SHA256 5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE
|
||||
|
||||
31. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE.txt 第1~674行;提交发布包SHA256:f02132b797ad8f9e459f11c8af7e86c024cea7c3e1c4bde50ec359a3d85be50c;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.25.1/node.zip
|
||||
|
||||
32. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~21行;提交发布包SHA256:16deb1770f59c67386e4c8b8bf163eb1008711e2b6e3cfc47b8e4ce7cd2fe7f1;SHA256 b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1;https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2510052058/node.zip
|
||||
|
||||
33. 准确来源许可文本;发布包Git绑定未知,前端仅显式假设;LICENSE 第1~674行;提交7bd9f8b0d0b854ccb5a947623468f36a392ea0ff;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE
|
||||
@@ -0,0 +1,102 @@
|
||||
// Local GET-only: 35 interpolation positions, no source Notes, 33 frozen summaries.
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
|
||||
const out='.local-evidence/resize-compare-document/browser';fs.mkdirSync(out,{recursive:true});
|
||||
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={},interceptions=[];let group='aggregate';
|
||||
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
|
||||
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
|
||||
try {
|
||||
const page=await browser.newPage({viewport:{width:1440,height:1000}});
|
||||
await page.route('**/*',route=>{
|
||||
const u=new URL(route.request().url());
|
||||
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
|
||||
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
|
||||
return route.continue();
|
||||
});
|
||||
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
|
||||
page.on('pageerror',e=>errors.push(e.message));
|
||||
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
|
||||
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
|
||||
const names=['图像放大比较','VOSR2_图像超分放大','Seedvr2_3b_int8_视频放大','Seedvr2_3b_int8_图像放大','RTX_video_upscale','RTX_image_upscale','手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述'];
|
||||
const details=[];
|
||||
for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());}
|
||||
check(details.length===34&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===1069,'34图1069保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===25,'34图25源注释');
|
||||
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
|
||||
const dialog=page.getByRole('dialog',{name:'工作流说明'});
|
||||
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
|
||||
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
|
||||
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
|
||||
for(const width of [1440,390]){
|
||||
await page.setViewportSize({width,height:width===390?844:1000});
|
||||
for(const d of details){
|
||||
group=details.indexOf(d)<1?'new_resize_compare':'old_thirty_three';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded();
|
||||
const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})});
|
||||
check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`);
|
||||
check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`);
|
||||
check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`);
|
||||
const visible=await fixedCard.innerText();
|
||||
check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`);
|
||||
check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`);
|
||||
for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`);
|
||||
check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`);
|
||||
check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
|
||||
await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
|
||||
if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
|
||||
if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;}
|
||||
await dialog.getByText('源图与审校记录',{exact:true}).click();
|
||||
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
|
||||
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
|
||||
const flowText=await fixedCard.innerText();
|
||||
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});}
|
||||
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
|
||||
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
|
||||
const versionText=await fixedCard.innerText();
|
||||
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
|
||||
if(details.indexOf(d)<1){
|
||||
for(const f of b.fields){
|
||||
const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..');
|
||||
check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`);
|
||||
let text=await box.innerText();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`);
|
||||
check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`);
|
||||
check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`);
|
||||
await box.getByText('来源依据',{exact:true}).click();text=await box.innerText();
|
||||
check(text.includes(f.pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return text.includes(e.commit)&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`);
|
||||
if((width===1440&&f.field==='scale_by_length'&&f.node_id==='5')||(width===390&&f.field==='scale_to_side'&&f.node_id==='7'))await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});
|
||||
await summary.click();
|
||||
}
|
||||
for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${n.node_id}-note.png`});}await summary.click();}
|
||||
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
|
||||
}
|
||||
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
|
||||
}
|
||||
}
|
||||
group='shared_regressions';
|
||||
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
|
||||
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
|
||||
for(const variant of ['missing-overview','mismatched','html-summary']){
|
||||
const d=structuredClone(details[0]);
|
||||
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
|
||||
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
|
||||
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
|
||||
await page.route(`**/api/workflows/${d.id}`,route=>{interceptions.push({variant,url:route.request().url()});return route.fulfill({json:d});});await begin(d.name);await loaded();
|
||||
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
|
||||
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
|
||||
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
|
||||
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
|
||||
}
|
||||
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,async route=>{interceptions.push({variant:"late",url:route.request().url()});entered();await hold;await route.fulfill({json:details[0]});delivered();});
|
||||
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
|
||||
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到放大比较响应不覆盖旧VOSR2图片摘要/46字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,route=>{interceptions.push({variant:'failure',url:route.request().url()});return route.fulfill({status:500,json:{detail:'隔离失败夹具'}});});await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
|
||||
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
|
||||
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
|
||||
const fixed=requests.filter(r=>!polling.includes(r));
|
||||
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
|
||||
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
|
||||
} finally {await browser.close();}
|
||||
@@ -0,0 +1,92 @@
|
||||
"""Foreground local browser check; stop every owned service before returning."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
OUT = ROOT / ".local-evidence/resize-compare-document/browser"
|
||||
|
||||
|
||||
def main():
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
# Refuse to reuse another operator's service or port.
|
||||
import socket
|
||||
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
processes = []
|
||||
logs = []
|
||||
try:
|
||||
commands = [
|
||||
([sys.executable, str(ROOT / "e2e/workflow-document-server.py")], ROOT),
|
||||
(
|
||||
["node", "node_modules/vite/bin/vite.js", "--host", "127.0.0.1"],
|
||||
ROOT / "calliope-web",
|
||||
),
|
||||
]
|
||||
for i, (command, cwd) in enumerate(commands):
|
||||
log = (OUT / f"service-{i}.log").open("w")
|
||||
logs.append(log)
|
||||
processes.append(
|
||||
subprocess.Popen(command, cwd=cwd, stdout=log, stderr=log, start_new_session=True)
|
||||
)
|
||||
for url in (
|
||||
"http://127.0.0.1:8247/api/workflows",
|
||||
"http://127.0.0.1:5173/connections",
|
||||
):
|
||||
deadline = time.monotonic() + 30
|
||||
while True:
|
||||
if any(p.poll() is not None for p in processes):
|
||||
raise RuntimeError("Local service exited; inspect service logs")
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=1) as response:
|
||||
if response.status == 200:
|
||||
break
|
||||
except (urllib.error.URLError, TimeoutError):
|
||||
pass
|
||||
if time.monotonic() > deadline:
|
||||
raise TimeoutError(url)
|
||||
time.sleep(0.2)
|
||||
names = ["resize-compare"]
|
||||
for name in names:
|
||||
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
|
||||
finally:
|
||||
for p in processes:
|
||||
if p.poll() is None:
|
||||
os.killpg(p.pid, signal.SIGTERM)
|
||||
try:
|
||||
p.wait(timeout=10)
|
||||
except subprocess.TimeoutExpired:
|
||||
os.killpg(p.pid, signal.SIGKILL)
|
||||
p.wait(timeout=5)
|
||||
for log in logs:
|
||||
log.close()
|
||||
import json
|
||||
|
||||
released = []
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
released.append(port)
|
||||
(OUT / "service-stop.json").write_text(
|
||||
json.dumps(
|
||||
dict(ports_released=released, child_exit_codes=[p.returncode for p in processes])
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("All owned browser services stopped; ports released.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user