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
|
AnyType = AnyType
|
||||||
MultiType = MultiType
|
MultiType = MultiType
|
||||||
#---------------------------------
|
#---------------------------------
|
||||||
DynamicInput = DynamicInput
|
|
||||||
DynamicOutput = DynamicOutput
|
|
||||||
AutogrowDynamic = AutogrowDynamic
|
|
||||||
ComboDynamicInput = ComboDynamicInput
|
|
||||||
MatchType = MatchType
|
|
||||||
HiddenHolder = HiddenHolder
|
HiddenHolder = HiddenHolder
|
||||||
Hidden = Hidden
|
Hidden = Hidden
|
||||||
NodeInfoV1 = NodeInfoV1
|
NodeInfoV1 = NodeInfoV1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import torch
|
import torch
|
||||||
import time
|
import time
|
||||||
from comfy_api.v3 import io, ui, resources
|
from comfy_api.v3 import io, ui, resources, _io
|
||||||
import logging # noqa
|
import logging # noqa
|
||||||
import folder_paths
|
import folder_paths
|
||||||
import comfy.utils
|
import comfy.utils
|
||||||
@ -143,8 +143,8 @@ class NInputsTest(io.ComfyNode):
|
|||||||
node_id="V3_NInputsTest",
|
node_id="V3_NInputsTest",
|
||||||
display_name="V3 N Inputs Test",
|
display_name="V3 N Inputs Test",
|
||||||
inputs=[
|
inputs=[
|
||||||
io.AutogrowDynamic.Input("nmock", template_input=io.Image.Input("image"), min=1, max=3),
|
_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("nmock2", template_input=io.Int.Input("int"), optional=True, min=1, max=4),
|
||||||
],
|
],
|
||||||
outputs=[
|
outputs=[
|
||||||
io.Image.Output(),
|
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:
|
if obj.local_resources is None:
|
||||||
obj.local_resources = resources.ResourcesLocal()
|
obj.local_resources = resources.ResourcesLocal()
|
||||||
class_clone.resources = obj.local_resources
|
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)
|
f = make_locked_method_func(type_obj, func, class_clone)
|
||||||
# V1
|
# V1
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user