Comfy-Org / Comfy-Org/ComfyUI

Problem after updating

Open
#5,874 19 comments 4 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Expected Behavior

it was working fine

### Actual Behavior

after updating it is broken

### Steps to Reproduce

NoneType' object has no attribute 'model_size

### Debug Logs

```powershell
# ComfyUI Error Report
## Error Details
- **Node ID:** 1066
- **Node Type:** CLIPTextEncode
- **Exception Type:** AttributeError
- **Exception Message:** 'NoneType' object has no attribute 'model_size'
## Stack Trace

File "F:\Tutorial\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 "F:\Tutorial\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 "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\nodes.py", line 65, in encode
return (clip.encode_from_tokens_scheduled(tokens), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 143, in encode_from_tokens_scheduled
pooled_dict = self.encode_from_tokens(tokens, return_pooled=return_pooled, return_dict=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 204, in encode_from_tokens
self.load_model()

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 237, in load_model
model_management.load_model_gpu(self.patcher)

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 517, in load_model_gpu
return load_models_gpu([model])
^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 485, in load_models_gpu
free_memory(total_memory_required[device] * 1.1 + extra_mem, device)

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 413, in free_memory
can_unload.append((-shift_model.model_offloaded_memory(), sys.getrefcount(shift_model.model), shift_model.model_memory(), i))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "F:\Tutorial\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 318, in model_offloaded_memory
return self.model.model_size() - self.model.loaded_size()
^^^^^^^^^^^^^^^^^^^^^
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.