AttributeError: 'FrozenDict' object has no attribute 'shift_factor'

#12
by LuciusJax - opened

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: D:\A.I\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
got prompt
Loading safetensors
The woman in <|image_1|> waves her hand happily in the crowd
!!! Exception during processing !!! 'FrozenDict' object has no attribute 'shift_factor'
Traceback (most recent call last):
File "D:\A.I\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, 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 "D:\A.I\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, 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 "D:\A.I\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in map_node_over_list
process_inputs(input_dict, i)
File "D:\A.I\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\A.I\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI_init
.py", line 147, in gen
output = pipe(
^^^^^
File "D:\A.I\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\A.I\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\pipeline.py", line 238, in call
img = self.vae_encode(img.to(self.device), dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\A.I\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\pipeline.py", line 109, in vae_encode
if self.vae.config.shift_factor is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FrozenDict' object has no attribute 'shift_factor'

Prompt executed in 98.65 seconds
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "asyncio\events.py", line 84, in _run
File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Owner

Hi, @LuciusJax , the error is caused by the old version of diffusers, and you can solve it by install latest diffusers: pip install -U diffusers

Sign up or log in to comment