ApplyPulidFlux 'ModelPatcher' object has no attribute 'get_wrappers'
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
### Your question
Hello there, I´m trying to reproduce the workflow from Mickmumpitz ( https://www.youtube.com/watch?v=Uls_jXy9RuU&t=879s ), I've run into a few problems which I've managed to solve thanks to the forum. I was hoping that everything would run smoothly, but so far the last error ComfiUI is reporting is this: 'ModelPatcher' object has no attribute 'get_wrappers' . I couldn't find any solution anywhere on the forum.
Would anyone be able to help me with this? Thank you very much in advance. It's not just to help me with my hobby, but it would make my job a lot easier.
### Logs
```powershell
# ComfyUI Error Report
## Error Details
- **Node Type:** ApplyPulidFlux
- **Exception Type:** AttributeError
- **Exception Message:** 'ModelPatcher' object has no attribute 'get_wrappers'
## Stack Trace
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\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:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\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:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI_PuLID_Flux_ll\pulidflux.py", line 320, in apply_pulid_flux
if len(model.get_wrappers(comfy.patcher_extension.WrappersMP.OUTER_SAMPLE, wrappers_name)) == 0:
^^^^^^^^^^^^^^^^^^
```
## System Information
- **ComfyUI Version:** v0.2.3
- **Arguments:** ComfyUI\main.py --windows-standalone-build
- **OS:** nt
- **Python Version:** 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.4.1+cu124
## Devices
- **Name:** cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 25756696576
- **VRAM Free:** 16150694008
- **Torch VRAM Total:** 6845104128
- **Torch VRAM Free:** 50858104
## Logs
```
2025-01-15 20:38:08,253 - root - INFO - Total VRAM 24564 MB, total RAM 64673 MB
2025-01-15 20:38:08,253 - root - INFO - pytorch version: 2.4.1+cu124
2025-01-15 20:38:08,253 - root - INFO - Set vram state to: NORMAL_VRAM
2025-01-15 20:38:08,254 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2025-01-15 20:38:08,800 - root - INFO - Using pytorch cross attention
2025-01-15 20:38:09,571 - root - INFO - [Prompt Server] web root: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\web
2025-01-15 20:38:10,212 - root - INFO - ### Loading: ComfyUI-Impact-Subpack (V1.2.7)
2025-01-15 20:38:10,215 - root - INFO - [Impact Subpack] ultralytics_bbox: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\models\ultralytics\bbox
2025-01-15 20:38:10,215 - root - INFO - [Impact Subpack] ultralytics_segm: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\models\ultralytics\segm
2025-01-15 20:38:10,230 - root - INFO - Total VRAM 24564 MB, total RAM 64673 MB
2025-01-15 20:38:10,230 - root - INFO - pytorch version: 2.4.1+cu124
2025-01-15 20:38:10,231 - root - INFO - Set vram state to: NORMAL_VRAM
2025-01-15 20:38:10,231 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2025-01-15 20:38:10,255 - root - INFO - ### Loading: ComfyUI-Manager (V3.7.5)
2025-01-15 20:38:10,343 - root - INFO - ### ComfyUI Revision: 2753 [5f9d5a24] *DETACHED | Released on '2024-10-09'
2025-01-15 20:38:11,203 - root - INFO - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-01-15 20:38:11,262 - root - INFO - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-01-15 20:38:11,298 - root - INFO - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-01-15 20:38:11,379 - root - INFO - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-01-15 20:38:11,503 - root - INFO - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-01-15 20:38:11,505 - root - INFO - [DONE]
2025-01-15 20:38:11,528 - root - INFO - [DONE]
2025-01-15 20:38:12,964 - root - INFO -
Import times for custom nodes:
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\websocket_image_save.py
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\cg-use-everywhere
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-Impact-Subpack
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\comfy-image-saver
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\rgthree-comfy
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI_essentials
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\comfyui_controlnet_aux
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2025-01-15 20:38:12,965 - root - INFO - 0.0 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-KJNodes
2025-01-15 20:38:12,965 - root - INFO - 0.1 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI_PuLID_Flux_ll
2025-01-15 20:38:12,965 - root - INFO - 0.3 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-Manager
2025-01-15 20:38:12,966 - root - INFO - 0.4 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait
2025-01-15 20:38:12,966 - root - INFO - 1.1 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\was-node-suite-comfyui
2025-01-15 20:38:12,966 - root - INFO - 1.2 seconds: D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced
2025-01-15 20:38:12,966 - root - INFO -
2025-01-15 20:38:12,972 - root - INFO - Starting server
2025-01-15 20:38:12,973 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2025-01-15 20:38:14,300 - root - INFO - [DONE]
2025-01-15 20:38:20,417 - root - INFO - got prompt
2025-01-15 20:38:20,442 - root - INFO - Loaded EVA02-CLIP-L-14-336 model config.
2025-01-15 20:38:20,456 - root - INFO - Shape of rope freq: torch.Size([576, 64])
2025-01-15 20:38:23,798 - root - INFO - Loading pretrained EVA02-CLIP-L-14-336 weights (eva_clip).
2025-01-15 20:38:23,798 - root - WARNING - [Impact Subpack] Your torch version is outdated, and security features cannot be applied properly.
2025-01-15 20:38:24,132 - root - INFO - incompatible_keys.missing_keys: ['visual.rope.freqs_cos', 'visual.rope.freqs_sin', 'visual.blocks.0.attn.rope.freqs_cos', 'visual.blocks.0.attn.rope.freqs_sin', 'visual.blocks.1.attn.rope.freqs_cos', 'visual.blocks.1.attn.rope.freqs_sin', 'visual.blocks.2.attn.rope.freqs_cos', 'visual.blocks.2.attn.rope.freqs_sin', 'visual.blocks.3.attn.rope.freqs_cos', 'visual.blocks.3.attn.rope.freqs_sin', 'visual.blocks.4.attn.rope.freqs_cos', 'visual.blocks.4.attn.rope.freqs_sin', 'visual.blocks.5.attn.rope.freqs_cos', 'visual.blocks.5.attn.rope.freqs_sin', 'visual.blocks.6.attn.rope.freqs_cos', 'visual.blocks.6.attn.rope.freqs_sin', 'visual.blocks.7.attn.rope.freqs_cos', 'visual.blocks.7.attn.rope.freqs_sin', 'visual.blocks.8.attn.rope.freqs_cos', 'visual.blocks.8.attn.rope.freqs_sin', 'visual.blocks.9.attn.rope.freqs_cos', 'visual.blocks.9.attn.rope.freqs_sin', 'visual.blocks.10.attn.rope.freqs_cos', 'visual.blocks.10.attn.rope.freqs_sin', 'visual.blocks.11.attn.rope.freqs_cos', 'visual.blocks.11.attn.rope.freqs_sin', 'visual.blocks.12.attn.rope.freqs_cos', 'visual.blocks.12.attn.rope.freqs_sin', 'visual.blocks.13.attn.rope.freqs_cos', 'visual.blocks.13.attn.rope.freqs_sin', 'visual.blocks.14.attn.rope.freqs_cos', 'visual.blocks.14.attn.rope.freqs_sin', 'visual.blocks.15.attn.rope.freqs_cos', 'visual.blocks.15.attn.rope.freqs_sin', 'visual.blocks.16.attn.rope.freqs_cos', 'visual.blocks.16.attn.rope.freqs_sin', 'visual.blocks.17.attn.rope.freqs_cos', 'visual.blocks.17.attn.rope.freqs_sin', 'visual.blocks.18.attn.rope.freqs_cos', 'visual.blocks.18.attn.rope.freqs_sin', 'visual.blocks.19.attn.rope.freqs_cos', 'visual.blocks.19.attn.rope.freqs_sin', 'visual.blocks.20.attn.rope.freqs_cos', 'visual.blocks.20.attn.rope.freqs_sin', 'visual.blocks.21.attn.rope.freqs_cos', 'visual.blocks.21.attn.rope.freqs_sin', 'visual.blocks.22.attn.rope.freqs_cos', 'visual.blocks.22.attn.rope.freqs_sin', 'visual.blocks.23.attn.rope.freqs_cos', 'visual.blocks.23.attn.rope.freqs_sin']
2025-01-15 20:38:24,146 - root - INFO - Using pytorch attention in VAE
2025-01-15 20:38:24,147 - root - INFO - Using pytorch attention in VAE
2025-01-15 20:38:26,988 - root - INFO - Loading PuLID-Flux model.
2025-01-15 20:38:27,375 - root - INFO - Requested to load FluxClipModel_
2025-01-15 20:38:27,375 - root - INFO - Loading 1 new model
2025-01-15 20:38:27,380 - root - INFO - loaded completely 0.0 4777.53759765625 True
2025-01-15 20:38:29,190 - root - INFO - model weight dtype torch.float8_e4m3fn, manual cast: torch.bfloat16
2025-01-15 20:38:29,190 - root - INFO - model_type FLUX
2025-01-15 20:38:32,516 - root - WARNING - [Impact Subpack] Your torch version is outdated, and security features cannot be applied properly.
2025-01-15 20:38:32,720 - root - WARNING - [Impact Subpack] Your torch version is outdated, and security features cannot be applied properly.
2025-01-15 20:38:32,844 - root - WARNING - [Impact Subpack] Your torch version is outdated, and security features cannot be applied properly.
2025-01-15 20:38:34,006 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'get_wrappers'
2025-01-15 20:38:34,007 - root - ERROR - Traceback (most recent call last):
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\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:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\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:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI 0.2.3\ComfyUI_windows_portable 0.2.3\ComfyUI\custom_nodes\ComfyUI_PuLID_Flux_ll\pulidflux.py", line 320, in apply_pulid_flux
if len(model.get_wrappers(comfy.patcher_extension.WrappersMP.OUTER_SAMPLE, wrappers_name)) == 0:
^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'get_wrappers'
2025-01-15 20:38:34,009 - root - INFO - Prompt executed in 13.58 seconds
```
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
```
Workflow too large. Please manually upload the workflow from local file system.
```
## Additional Context
(Please add any additional context or steps to reproduce the error here)
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.