ExponentialML / ComfyUI_ModelScopeT2V

Allows native usage of ModelScope based Text To Video Models in ComfyUI
Apache License 2.0
26 stars 4 forks source link

Errors after updating ComfyUi #5

Open 631557fcd opened 3 weeks ago

631557fcd commented 3 weeks ago

After updating ComfyUi to 2590[5e806f] (2024-08-21) the following error prevents the node from loading:

ImportError: cannot import name 'sd2_clip' from 'comfy' (unknown location)

When i fix it via a symlinked copy of sd2_clip.py from ComfyUI/ComfyUI/comfy/text_encoders/ to ComfyUI/ComfyUI/comfy/ this error is prevented but gives another error:

!!! Exception during processing !!! ModelPatcher.__init__() got an unexpected keyword argument 'current_device' Traceback (most recent call last): File "/home/geistt/Applications/ComfyUI/ComfyUI/execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "/home/geistt/Applications/ComfyUI/ComfyUI/execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "/home/geistt/Applications/ComfyUI/ComfyUI/execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "/home/geistt/Applications/ComfyUI/ComfyUI/execution.py", line 157, in process_inputs results.append(getattr(obj, func)(**inputs)) File "/home/geistt/Applications/ComfyUI/ComfyUI/custom_nodes/ComfyUI_ModelScopeT2V/nodes.py", line 214, in load_modelscopet2v model = load_modelscope_checkpoint( File "/home/geistt/Applications/ComfyUI/ComfyUI/custom_nodes/ComfyUI_ModelScopeT2V/nodes.py", line 104, in load_modelscope_checkpoint model_patcher = comfy.model_patcher.ModelPatcher( TypeError: ModelPatcher.__init__() got an unexpected keyword argument 'current_device'

rookiemann commented 2 weeks ago

Same here.