HEL-892: distinguish numeric UI edit steps from schema bounds
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -17,7 +17,7 @@ DEFINITION_SHA256 = "4da30b7b4314d6e3e37b3cefcaae710072ae0ee4e323e999789e63b3860
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json"
|
||||
): "928548bb722554748fc961f3f2750ef993648a597622a39a1775d5117cc3bd9e",
|
||||
): "6dd26b64aecccd272af43f17a66f162f5bfd746807af46c5514c3eb9c00d6cb5",
|
||||
SOURCE_PATH: DEFINITION_SHA256,
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合"
|
||||
|
||||
@@ -21180,10 +21180,11 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.0",
|
||||
"unit": "MP(1024×1024像素尺度)",
|
||||
"limits": "0.1..16.0,schema步进0.1。",
|
||||
"limits": "0.1..16.0,schema步进0.1。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "total_pixels=MP×1024×1024,再按比例开方;本图1.5,不当作1024宽高或输出验证。",
|
||||
"evidence": [
|
||||
12,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21208,10 +21209,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "8",
|
||||
"unit": "像素",
|
||||
"limits": "8..128,schema步进4。",
|
||||
"limits": "8..128,schema步进4。 UI编辑步进step2=4,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "width/height分别按round(比例×scale/multiple)×multiple对齐;preview只前端显示,不额外保存或执行。",
|
||||
"evidence": [
|
||||
12,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21431,13 +21433,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "8.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..100,schema步进0.1/round0.01。",
|
||||
"limits": "0..100,schema步进0.1/round0.01。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入条件引导参数。源1不同于默认8;注释关于负向/质量仅源建议,不作模型质量保证。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21480,13 +21483,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "20",
|
||||
"unit": "步",
|
||||
"limits": "1..10000。",
|
||||
"limits": "1..10000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给common_ksampler的去噪步数;不承诺更多步提高质量或固定耗时。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21529,10 +21533,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21575,10 +21580,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -21719,13 +21725,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "用于采样噪声。宿主同一seed还供文本生成,但两类含义各自独立;相同种子不保证目标推理可复现。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22351,10 +22358,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "0..4096,schema步进32;0保留参考尺寸后按32对齐。",
|
||||
"limits": "0..4096,schema步进32;0保留参考尺寸后按32对齐。 UI编辑步进step2=32,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "仅参考图分支按约resolution平方像素保比例缩放;本图images未接、输出latent未用,不能当最终生成尺寸,采样尺寸来自EmptyLatentImage。",
|
||||
"evidence": [
|
||||
6,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22527,10 +22535,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22573,10 +22582,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22619,10 +22629,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1",
|
||||
"unit": "张/批",
|
||||
"limits": "1..4096。",
|
||||
"limits": "1..4096。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "决定空latent批量维;本图1。实际显存/批量产出依赖模型执行,未验证。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22647,13 +22658,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "用于采样噪声。宿主同一seed还供文本生成,但两类含义各自独立;相同种子不保证目标推理可复现。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22734,13 +22746,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "20",
|
||||
"unit": "步",
|
||||
"limits": "1..10000。",
|
||||
"limits": "1..10000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给common_ksampler的去噪步数;不承诺更多步提高质量或固定耗时。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22783,13 +22796,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "8.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..100,schema步进0.1/round0.01。",
|
||||
"limits": "0..100,schema步进0.1/round0.01。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入条件引导参数。源1不同于默认8;注释关于负向/质量仅源建议,不作模型质量保证。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -22930,13 +22944,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入采样denoise;本图空latent值1,不能保证质量或推断实际图像。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23016,12 +23031,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "512",
|
||||
"unit": "token上限(非实际长度)",
|
||||
"limits": "1..32768。",
|
||||
"limits": "1..32768。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给clip.generate的max_length;不是汉字数保证或实际输出长度。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23076,12 +23092,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.7",
|
||||
"unit": "无量纲",
|
||||
"limits": "0.01..2.0,schema步进0.000001。",
|
||||
"limits": "0.01..2.0,schema步进0.000001。 UI编辑步进step2=0.000001,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传temperature;实际随机性/文本效果未实跑。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23106,12 +23123,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "64",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1000。",
|
||||
"limits": "0..1000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传top_k;不把schema默认与执行缺省50混同。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23136,12 +23154,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.95",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传top_p;不承诺质量与效果。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23166,12 +23185,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.05",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传min_p;本图0,不等于schema默认0.05。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23196,12 +23216,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.05",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..5,schema步进0.01。",
|
||||
"limits": "0..5,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传repetition_penalty;数值调整效果未验证。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23226,12 +23247,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考JS安全域另限。",
|
||||
"limits": "0..18446744073709551615;参考JS安全域另限。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "本图接同一宿主447606998181263;限定名不是裸seed,前端不自动附加control_after_generate。内部0被覆盖。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -23281,12 +23303,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "可选,0..5,schema步进0.01。",
|
||||
"limits": "可选,0..5,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传presence_penalty;本图0,效果未验证。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -24158,6 +24181,34 @@
|
||||
250
|
||||
],
|
||||
"claim": "Qwen扩展注册列表"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"license": "GPL-3.0",
|
||||
"local_file": "../promoted-reference/1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useIntWidget.ts",
|
||||
"lines": [
|
||||
12,
|
||||
90
|
||||
],
|
||||
"claim": "整数UI step2/旧step十倍、编辑回调取整与默认步进1;不执行回调"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"license": "GPL-3.0",
|
||||
"local_file": "../promoted-reference/1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useFloatWidget.ts",
|
||||
"lines": [
|
||||
12,
|
||||
82
|
||||
],
|
||||
"claim": "浮点UI step2/旧step十倍、设置控制precision/round与条件clamp;不执行回调"
|
||||
}
|
||||
],
|
||||
"flow": [
|
||||
@@ -24261,7 +24312,9 @@
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33
|
||||
33,
|
||||
34,
|
||||
35
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
|
||||
@@ -61,6 +61,8 @@ def test_every_saved_position_scope_and_citation(index):
|
||||
"evidence",
|
||||
]
|
||||
)
|
||||
if f["type"] in ("INT", "FLOAT"):
|
||||
assert "UI编辑步进step2=" in f["limits"]
|
||||
for i in f["evidence"]:
|
||||
e = BLOCK["sources"][i]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
|
||||
@@ -207,6 +207,20 @@ def build():
|
||||
core("nodes.py", 2075, 2135, "精确内置节点注册映射")
|
||||
core("nodes.py", 2470, 2535, "精确core扩展加载列表")
|
||||
core("comfy_extras__nodes_qwen.py", 237, 250, "Qwen扩展注册列表")
|
||||
int_ui = ref(
|
||||
"promoted-reference",
|
||||
"1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useIntWidget.ts",
|
||||
12,
|
||||
90,
|
||||
"整数UI step2/旧step十倍、编辑回调取整与默认步进1;不执行回调",
|
||||
)
|
||||
float_ui = ref(
|
||||
"promoted-reference",
|
||||
"1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useFloatWidget.ts",
|
||||
12,
|
||||
82,
|
||||
"浮点UI step2/旧step十倍、设置控制precision/round与条件clamp;不执行回调",
|
||||
)
|
||||
# Editorial specifications are explicit, not inferred from labels or widget positions.
|
||||
spec = {}
|
||||
|
||||
@@ -623,6 +637,34 @@ def build():
|
||||
)
|
||||
spec["SaveImageAdvanced", name]["evidence"] += [encoding, filename, dyn]
|
||||
|
||||
ui_steps = {
|
||||
("ResolutionSelector", "megapixels"): "0.1",
|
||||
("ResolutionSelector", "multiple"): "4",
|
||||
("EmptyLatentImage", "width"): "8",
|
||||
("EmptyLatentImage", "height"): "8",
|
||||
("KSampler", "cfg"): "0.1",
|
||||
("KSampler", "denoise"): "0.01",
|
||||
("TextEncodeQwenImage21", "resolution"): "32",
|
||||
("TextGenerate", "sampling_mode.temperature"): "0.000001",
|
||||
**{
|
||||
("TextGenerate", "sampling_mode." + name): "0.01"
|
||||
for name in ("top_p", "min_p", "repetition_penalty", "presence_penalty")
|
||||
},
|
||||
}
|
||||
for key, d in spec.items():
|
||||
if d["type"] not in ("INT", "FLOAT"):
|
||||
continue
|
||||
step = ui_steps.get(key, "1" if d["type"] == "INT" else "0.5")
|
||||
common_ui = f" UI编辑步进step2={step},旧step属性为其10倍,不是额外schema范围。"
|
||||
detail_ui = (
|
||||
"INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。"
|
||||
if d["type"] == "INT"
|
||||
else "FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;"
|
||||
"启用round时按round取整并clamp,否则保留输入。实际用户设置未知。"
|
||||
)
|
||||
d["limits"] += common_ui + detail_ui + "仅说明UI编辑,未调用回调或改写保存值。"
|
||||
d["evidence"] += [int_ui if d["type"] == "INT" else float_ui]
|
||||
|
||||
result = convert_reference(s, CASE04_PROFILE)
|
||||
assert result.prompt is not None and result.reference_only
|
||||
# Reuse proven boundary resolver to corroborate bindings, never infer from UI labels.
|
||||
|
||||
@@ -59,10 +59,11 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.0",
|
||||
"unit": "MP(1024×1024像素尺度)",
|
||||
"limits": "0.1..16.0,schema步进0.1。",
|
||||
"limits": "0.1..16.0,schema步进0.1。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "total_pixels=MP×1024×1024,再按比例开方;本图1.5,不当作1024宽高或输出验证。",
|
||||
"evidence": [
|
||||
12,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -87,10 +88,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "8",
|
||||
"unit": "像素",
|
||||
"limits": "8..128,schema步进4。",
|
||||
"limits": "8..128,schema步进4。 UI编辑步进step2=4,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "width/height分别按round(比例×scale/multiple)×multiple对齐;preview只前端显示,不额外保存或执行。",
|
||||
"evidence": [
|
||||
12,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -310,13 +312,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "8.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..100,schema步进0.1/round0.01。",
|
||||
"limits": "0..100,schema步进0.1/round0.01。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入条件引导参数。源1不同于默认8;注释关于负向/质量仅源建议,不作模型质量保证。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -359,13 +362,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "20",
|
||||
"unit": "步",
|
||||
"limits": "1..10000。",
|
||||
"limits": "1..10000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给common_ksampler的去噪步数;不承诺更多步提高质量或固定耗时。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -408,10 +412,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -454,10 +459,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -598,13 +604,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "用于采样噪声。宿主同一seed还供文本生成,但两类含义各自独立;相同种子不保证目标推理可复现。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1230,10 +1237,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "0..4096,schema步进32;0保留参考尺寸后按32对齐。",
|
||||
"limits": "0..4096,schema步进32;0保留参考尺寸后按32对齐。 UI编辑步进step2=32,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "仅参考图分支按约resolution平方像素保比例缩放;本图images未接、输出latent未用,不能当最终生成尺寸,采样尺寸来自EmptyLatentImage。",
|
||||
"evidence": [
|
||||
6,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1406,10 +1414,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1452,10 +1461,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1024",
|
||||
"unit": "像素尺度",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。",
|
||||
"limits": "16..MAX_RESOLUTION=16384,schema步进8。 UI编辑步进step2=8,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "供空latent创建,按height//8、width//8形成空间维度;本图被外部ResolutionSelector覆盖,不用内部1024推断产物。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1498,10 +1508,11 @@
|
||||
"type": "INT",
|
||||
"schema_default": "1",
|
||||
"unit": "张/批",
|
||||
"limits": "1..4096。",
|
||||
"limits": "1..4096。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "决定空latent批量维;本图1。实际显存/批量产出依赖模型执行,未验证。",
|
||||
"evidence": [
|
||||
3,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1526,13 +1537,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。",
|
||||
"limits": "0..18446744073709551615;参考候选另限制JS安全整数。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "用于采样噪声。宿主同一seed还供文本生成,但两类含义各自独立;相同种子不保证目标推理可复现。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1613,13 +1625,14 @@
|
||||
"type": "INT",
|
||||
"schema_default": "20",
|
||||
"unit": "步",
|
||||
"limits": "1..10000。",
|
||||
"limits": "1..10000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给common_ksampler的去噪步数;不承诺更多步提高质量或固定耗时。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1662,13 +1675,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "8.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..100,schema步进0.1/round0.01。",
|
||||
"limits": "0..100,schema步进0.1/round0.01。 UI编辑步进step2=0.1,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入条件引导参数。源1不同于默认8;注释关于负向/质量仅源建议,不作模型质量保证。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1809,13 +1823,14 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传入采样denoise;本图空latent值1,不能保证质量或推断实际图像。",
|
||||
"evidence": [
|
||||
4,
|
||||
22,
|
||||
21,
|
||||
26,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1895,12 +1910,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "512",
|
||||
"unit": "token上限(非实际长度)",
|
||||
"limits": "1..32768。",
|
||||
"limits": "1..32768。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "传给clip.generate的max_length;不是汉字数保证或实际输出长度。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1955,12 +1971,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.7",
|
||||
"unit": "无量纲",
|
||||
"limits": "0.01..2.0,schema步进0.000001。",
|
||||
"limits": "0.01..2.0,schema步进0.000001。 UI编辑步进step2=0.000001,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传temperature;实际随机性/文本效果未实跑。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -1985,12 +2002,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "64",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1000。",
|
||||
"limits": "0..1000。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传top_k;不把schema默认与执行缺省50混同。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -2015,12 +2033,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.95",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传top_p;不承诺质量与效果。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -2045,12 +2064,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.05",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..1,schema步进0.01。",
|
||||
"limits": "0..1,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传min_p;本图0,不等于schema默认0.05。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -2075,12 +2095,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "1.05",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..5,schema步进0.01。",
|
||||
"limits": "0..5,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传repetition_penalty;数值调整效果未验证。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -2105,12 +2126,13 @@
|
||||
"type": "INT",
|
||||
"schema_default": "0",
|
||||
"unit": "无量纲",
|
||||
"limits": "0..18446744073709551615;参考JS安全域另限。",
|
||||
"limits": "0..18446744073709551615;参考JS安全域另限。 UI编辑步进step2=1,旧step属性为其10倍,不是额外schema范围。INT编辑回调按step2取整并考虑min余数偏移;未声明step时默认1。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "本图接同一宿主447606998181263;限定名不是裸seed,前端不自动附加control_after_generate。内部0被覆盖。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
34,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -2160,12 +2182,13 @@
|
||||
"type": "FLOAT",
|
||||
"schema_default": "0.0",
|
||||
"unit": "无量纲",
|
||||
"limits": "可选,0..5,schema步进0.01。",
|
||||
"limits": "可选,0..5,schema步进0.01。 UI编辑步进step2=0.01,旧step属性为其10倍,不是额外schema范围。FLOAT precision/round受FloatRoundingPrecision、DisableFloatRounding设置影响;启用round时按round取整并clamp,否则保留输入。实际用户设置未知。仅说明UI编辑,未调用回调或改写保存值。",
|
||||
"effect": "on分支传presence_penalty;本图0,效果未验证。",
|
||||
"evidence": [
|
||||
5,
|
||||
20,
|
||||
21,
|
||||
35,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
@@ -3037,6 +3060,34 @@
|
||||
250
|
||||
],
|
||||
"claim": "Qwen扩展注册列表"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"license": "GPL-3.0",
|
||||
"local_file": "../promoted-reference/1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useIntWidget.ts",
|
||||
"lines": [
|
||||
12,
|
||||
90
|
||||
],
|
||||
"claim": "整数UI step2/旧step十倍、编辑回调取整与默认步进1;不执行回调"
|
||||
},
|
||||
{
|
||||
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef",
|
||||
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
|
||||
"license": "GPL-3.0",
|
||||
"local_file": "../promoted-reference/1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useFloatWidget.ts",
|
||||
"lines": [
|
||||
12,
|
||||
82
|
||||
],
|
||||
"claim": "浮点UI step2/旧step十倍、设置控制precision/round与条件clamp;不执行回调"
|
||||
}
|
||||
],
|
||||
"flow": [
|
||||
@@ -3140,7 +3191,9 @@
|
||||
30,
|
||||
31,
|
||||
32,
|
||||
33
|
||||
33,
|
||||
34,
|
||||
35
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user