Files
aigc-home/docs/hel-892/crop-split-reference/contract.json
T
2026-10-30 03:44:25 +08:00

159 lines
4.9 KiB
JSON

{
"authority": "public_reference_only_not_object_info",
"source_manifests": [
"crop-split-reference/sources.json",
"separation-reference/sources.json",
"serialization-evidence/sources.json"
],
"frontend": {
"selected_version": "1.37.11",
"commit": "4bf6a1960028cc5cda57d48f9fb01a74dfaade43",
"source_declaration": null,
"selection": "explicit reference assumption only",
"unmodified_widgets_and_extensions": "assumed",
"UE_match": "unknown",
"target_match": "unknown"
},
"facts_file": "verified-facts.json",
"contracts": {
"AudioCrop": {
"fixed_original": "crop.py",
"definition_lines": [
7,
77
],
"schema": {
"required": {
"audio": [
"AUDIO"
],
"start_time": [
"STRING",
{
"default": "0:00"
}
],
"end_time": [
"STRING",
{
"default": "1:00"
}
]
}
},
"widget_layout": [
"start_time",
"end_time"
],
"return_types": [
"AUDIO"
],
"saved_values_policy": "identity only; no queue hooks, callback, plugin execution or file operations",
"interpretation": {
"time_type": "STRING, not FLOAT/INT",
"defaults": [
"0:00",
"1:00"
],
"units_basis": "source main: minutes*60+seconds; no colon prepends 00:; both parts int()",
"special_behavior": "negative frames clamp to 0; >=length clamp to length-1; start>end raises; equal may yield empty slice; end excluded; retains sample_rate",
"range": "no numeric min/max declared; 0..2048 inapplicable to these STRING widgets",
"runtime_unknown": "syntax/content parsing and sample length not executed/validated; preserved strings do not imply executable audio"
}
},
"GuHaiAutoImageSplit": {
"fixed_original": "guhai__nodes__自动分割图像.py",
"definition_lines": [
54,
163
],
"schema": {
"required": {
"图像": [
"IMAGE"
],
"保存目录": [
"STRING",
{
"default": "output"
}
],
"水平张数": [
"INT",
{
"default": 4,
"min": 1
}
],
"垂直张数": [
"INT",
{
"default": 2,
"min": 1
}
],
"移除画布边缘": [
"BOOLEAN",
{
"default": true
}
],
"移除描边": [
"INT",
{
"default": 0,
"min": 0
}
],
"文件名前缀": [
"STRING",
{
"default": "孤海图像分割_"
}
],
"保存格式": [
[
"PNG",
"JPG"
],
{
"default": "PNG"
}
]
}
},
"widget_layout": [
"保存目录",
"水平张数",
"垂直张数",
"移除画布边缘",
"移除描边",
"文件名前缀",
"保存格式"
],
"return_types": [
"IMAGE"
],
"saved_values_policy": "identity only; no queue hooks, callback, plugin execution or file operations",
"interpretation": {
"provider": "aux_id=goohai/Goohaitools-comfyui; cnr_id absent; ver=885cac3dd323d26a77b69ae904a9a344f0dee7d0",
"numeric_bounds": "plugin minima 1/1/0; selected frontend useIntWidget default max2048; profile subset only, no callback rounding",
"algorithm": "uses 图像[0]; optional four-corner median background threshold30 edge scan; integer floor grid; rows outer/columns inner; optional per-tile min(trim,w//2-1,h//2-1) crop",
"saving": "joins output directory and 保存目录; creates directory; numbered prefix from existing files; blank prefix falls back only at plugin execution; PNG or JPG/JPEG quality95",
"returns": "one IMAGE slot with torch.cat tiles batch; writes files as side effect, no UI/history descriptor in this node",
"paths": "literal parameters only; existence/permissions/fonts/resources/actual UE unknown, no paths executed",
"actual_graph_blocker": {
"node": "3 PreviewImage@comfy-core0.21.1",
"source_pointer": "/nodes/0/outputs",
"source_types": [
"IMAGE"
],
"fixed_core_types": [],
"fixed_definition": "serialization-evidence/corev0.21.1__nodes.py:1608-1680; inherits SaveImage.RETURN_TYPES=()",
"policy": "prompt=None for whole actual graph; no dropping the unexplained output; synthetic fixture separate"
}
}
}
}
}