StartHua / ComfyUI_Seg_VITON

comfyui-模特换装(Model dress up)
201 stars 33 forks source link

Example workflow doesn't work #17

Open laileihuang opened 9 months ago

laileihuang commented 9 months ago

Got Error message bellow, any ideas?

--- error message below

Error occurred when executing stabel_vition:

CrossAttention.forward() got an unexpected keyword argument 'hint'

File "D:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\stabelvition.py", line 169, in sample samples, , _ = self.sampler.sample( ^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\plms_hacked.py", line 99, in sample samples, intermediates, cond_output_dict = self.plms_sampling(conditioning, size, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\plms_hacked.py", line 157, in plms_sampling outs = self.p_sample_plms(img, cond, ts, index=index, use_original_steps=ddim_use_original_steps, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\plms_hacked.py", line 233, in p_sample_plms e_t = get_model_output(x, t) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\plms_hacked.py", line 192, in get_model_output modelt, = self.model.apply_model(x,t,c) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\cldm.py", line 115, in applymodel control, = self.control_model(x=x_noisy, hint=hint, timesteps=t, context=cond_txt, only_mid_control=self.only_mid_control) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\cldm\warping_cldm_network.py", line 351, in forward h = module(h, emb, context) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\diffusionmodules\openaimodel.py", line 84, in forward x = layer(x, context, hint) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\attention.py", line 324, in forward x = block(x, context=context[i],hint=hint) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\attention.py", line 258, in forward return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\diffusionmodules\util.py", line 115, in checkpoint return CheckpointFunction.apply(func, len(inputs), args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\autograd\function.py", line 539, in apply return super().apply(args, kwargs) # type: ignore[misc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\diffusionmodules\util.py", line 130, in forward output_tensors = ctx.run_function(ctx.input_tensors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Seg_VITON\ldm\modules\attention.py", line 263, in _forward x = self.attn1(self.norm1(x), context=context if self.disable_self_attn else None,hint=hint) + x ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ai\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ClothingAI commented 3 months ago

Where did you find the example workflow please?

ClothingAI commented 3 months ago

@laileihuang