mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-27 08:16:44 +00:00
Removed dynamic type mocks from v3 definition, since were only used as tests up to this point
This commit is contained in:
parent
44afeab124
commit
9d44cbf7c8
@ -1592,11 +1592,6 @@ class _IO:
|
||||
AnyType = AnyType
|
||||
MultiType = MultiType
|
||||
#---------------------------------
|
||||
DynamicInput = DynamicInput
|
||||
DynamicOutput = DynamicOutput
|
||||
AutogrowDynamic = AutogrowDynamic
|
||||
ComboDynamicInput = ComboDynamicInput
|
||||
MatchType = MatchType
|
||||
HiddenHolder = HiddenHolder
|
||||
Hidden = Hidden
|
||||
NodeInfoV1 = NodeInfoV1
|
||||
|
@ -1,6 +1,6 @@
|
||||
import torch
|
||||
import time
|
||||
from comfy_api.v3 import io, ui, resources
|
||||
from comfy_api.v3 import io, ui, resources, _io
|
||||
import logging # noqa
|
||||
import folder_paths
|
||||
import comfy.utils
|
||||
@ -143,8 +143,8 @@ class NInputsTest(io.ComfyNode):
|
||||
node_id="V3_NInputsTest",
|
||||
display_name="V3 N Inputs Test",
|
||||
inputs=[
|
||||
io.AutogrowDynamic.Input("nmock", template_input=io.Image.Input("image"), min=1, max=3),
|
||||
io.AutogrowDynamic.Input("nmock2", template_input=io.Int.Input("int"), optional=True, min=1, max=4),
|
||||
_io.AutogrowDynamic.Input("nmock", template_input=io.Image.Input("image"), min=1, max=3),
|
||||
_io.AutogrowDynamic.Input("nmock2", template_input=io.Int.Input("int"), optional=True, min=1, max=4),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
|
10
execution.py
10
execution.py
@ -261,16 +261,6 @@ async def _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, f
|
||||
if obj.local_resources is None:
|
||||
obj.local_resources = resources.ResourcesLocal()
|
||||
class_clone.resources = obj.local_resources
|
||||
# TODO: delete this when done testing mocking dynamic inputs
|
||||
for si in obj.SCHEMA.inputs:
|
||||
if isinstance(si, io.AutogrowDynamic.Input):
|
||||
add_key = si.id
|
||||
dynamic_list = []
|
||||
real_inputs = {k: v for k, v in inputs.items()}
|
||||
for d in si.get_dynamic():
|
||||
dynamic_list.append(real_inputs.pop(d.id, None))
|
||||
dynamic_list = [x for x in dynamic_list if x is not None]
|
||||
inputs = {**real_inputs, add_key: dynamic_list}
|
||||
f = make_locked_method_func(type_obj, func, class_clone)
|
||||
# V1
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user