WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

How do I use the text concatenate and text as input to the sampler? #187

Closed rook2pawn closed 1 year ago

rook2pawn commented 1 year ago

Screenshot_8

This keeps on giving me an error and Im pretty sure I am missing something simple.

  1. Question 1 - Can i get some guidance here with an example or correction? It would be much appreciated, ty.
  2. Question 2 - I want to have a text prompt that says a mouse {in the room | in grass | in a tree} and be able to reuse that so that the choice is "fixed" across the graph when it is referenced, and concatenate that into other prompts like {sunny day|late evening} etc..


Tensor.__contains__ only supports Tensor or scalar, but you passed in a .

File "E:\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "E:\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\ComfyUI\nodes.py", line 1207, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
File "E:\ComfyUI\nodes.py", line 1177, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
File "E:\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\hacky.py", line 22, in informative_sample
raise e
File "E:\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\hacky.py", line 9, in informative_sample
return original_sample(*args, **kwargs)
File "E:\ComfyUI\comfy\sample.py", line 82, in sample
models, inference_memory = get_additional_models(positive, negative, model.model_dtype())
File "E:\ComfyUI\comfy\sample.py", line 56, in get_additional_models
control_nets = set(get_models_from_cond(positive, "control") + get_models_from_cond(negative, "control"))
File "E:\ComfyUI\comfy\sample.py", line 50, in get_models_from_cond
if model_type in c[1]:
File "C:\Users\rook2\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\_tensor.py", line 999, in __contains__
raise RuntimeError(```
rook2pawn commented 1 year ago

closed - solved by other issue https://github.com/comfyanonymous/ComfyUI/issues/1372