Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UltimateSDUpscale Cannot handle this data type: (1, 1, 2560), |u1Have you loaded the models with these three loaders? #6244

Open
HHmiete opened this issue Dec 27, 2024 · 5 comments

Comments

@HHmiete
Copy link

HHmiete commented Dec 27, 2024

          Have you loaded the models with these three loaders?

loaders

Originally posted by @LukeG89 in #6239 (comment)

Screenshot 2024-12-27 at 22 23 31

I hope I did it the correct way.
Screenshot 2024-12-27 at 22 27 06 Large

@HHmiete
Copy link
Author

HHmiete commented Dec 27, 2024

ComfyUI Error Report

Error Details

  • Node ID: 39
  • Node Type: UltimateSDUpscale
  • Exception Type: TypeError
  • Exception Message: Cannot handle this data type: (1, 1, 2560), |u1

Stack Trace

  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e

System Information

  • ComfyUI Version: v0.3.9-26-g19a64d6
  • Arguments: main.py
  • OS: posix
  • Python Version: 3.11.11 (main, Dec 3 2024, 17:20:40) [Clang 16.0.0 (clang-1600.0.26.4)]
  • Embedded Python: false
  • PyTorch Version: 2.4.1

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 103079215104
    • VRAM Free: 43660853248
    • Torch VRAM Total: 103079215104
    • Torch VRAM Free: 43660853248

Logs

2024-12-27T21:29:32.025952 - /Users/nordendedit2/AI/ComfyUI2024-12-27T21:29:32.025960 - 
2024-12-27T21:29:32.026001 - ** Log path:2024-12-27T21:29:32.026010 -  2024-12-27T21:29:32.026018 - /Users/nordendedit2/AI/ComfyUI/comfyui.log2024-12-27T21:29:32.026027 - 
2024-12-27T21:29:32.429512 - 
Prestartup times for custom nodes:
2024-12-27T21:29:32.429702 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/rgthree-comfy
2024-12-27T21:29:32.429744 -    0.9 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager
2024-12-27T21:29:32.429788 - 
2024-12-27T21:29:33.116722 - Total VRAM 98304 MB, total RAM 98304 MB
2024-12-27T21:29:33.116810 - pytorch version: 2.4.1
2024-12-27T21:29:33.116931 - Set vram state to: SHARED
2024-12-27T21:29:33.116979 - Device: mps
2024-12-27T21:29:33.532557 - Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
2024-12-27T21:29:34.093659 - [Prompt Server] web root: /Users/nordendedit2/AI/ComfyUI/web
2024-12-27T21:29:34.883049 - ### Loading: ComfyUI-Manager (V2.55.5)2024-12-27T21:29:34.883085 - 
2024-12-27T21:29:34.952285 - ### ComfyUI Version: v0.3.9-26-g19a64d6 | Released on '2024-12-25'2024-12-27T21:29:34.952339 - 
2024-12-27T21:29:35.007642 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-12-27T21:29:35.007672 - 
2024-12-27T21:29:35.007955 - [Crystools �[0;32mINFO�[0m] Crystools version: 1.21.0
2024-12-27T21:29:35.033614 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-12-27T21:29:35.033656 - 
2024-12-27T21:29:35.040589 - [Crystools �[0;32mINFO�[0m] CPU: Apple M2 Max - Arch: arm64 - OS: Darwin 24.0.0
2024-12-27T21:29:35.041016 - [Crystools �[0;31mERROR�[0m] Could not init pynvml (Nvidia).NVML Shared Library Not Found
2024-12-27T21:29:35.041171 - [Crystools �[0;33mWARNING�[0m] No GPU with CUDA detected.
2024-12-27T21:29:35.061271 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-12-27T21:29:35.061315 - 
2024-12-27T21:29:35.085687 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-12-27T21:29:35.085732 - 
2024-12-27T21:29:35.105163 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-12-27T21:29:35.105183 - 
2024-12-27T21:29:35.420939 - �[34mWAS Node Suite: �[0mOpenCV Python FFMPEG support is enabled�[0m2024-12-27T21:29:35.420984 - 
2024-12-27T21:29:35.421017 - �[34mWAS Node Suite: �[0m`ffmpeg_bin_path` is set to: /opt/homebrew/bin/ffmpeg�[0m2024-12-27T21:29:35.421029 - 
2024-12-27T21:29:35.607719 - �[34mWAS Node Suite: �[0mFinished.�[0m �[32mLoaded�[0m �[0m220�[0m �[32mnodes successfully.�[0m2024-12-27T21:29:35.607765 - 
2024-12-27T21:29:35.607829 - 
	�[3m�[93m"Your time is now. Start where you are and never stop."�[0m�[3m - Roy T. Bennett�[0m
2024-12-27T21:29:35.607843 - 
2024-12-27T21:29:35.616066 - 
2024-12-27T21:29:35.616097 - �[92m[rgthree-comfy] Loaded 42 epic nodes. 🎉�[00m2024-12-27T21:29:35.616113 - 
2024-12-27T21:29:35.616124 - 
2024-12-27T21:29:35.617326 - ### Loading: ComfyUI-Impact-Pack (V8.1.6)2024-12-27T21:29:35.617340 - 
2024-12-27T21:29:35.648280 - [Impact Pack] Wildcards loading done.2024-12-27T21:29:35.648336 - 
2024-12-27T21:29:35.652715 - Total VRAM 98304 MB, total RAM 98304 MB
2024-12-27T21:29:35.652770 - pytorch version: 2.4.1
2024-12-27T21:29:35.652910 - Set vram state to: SHARED
2024-12-27T21:29:35.652960 - Device: mps
2024-12-27T21:29:35.657690 - ### Loading: ComfyUI-Inspire-Pack (V1.9.1)2024-12-27T21:29:35.657705 - 
2024-12-27T21:29:35.684894 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/nodes.py", line 2089, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_NAI-mod/__init__.py'

2024-12-27T21:29:35.684987 - Cannot import /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_NAI-mod module for custom nodes: [Errno 2] No such file or directory: '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_NAI-mod/__init__.py'
2024-12-27T21:29:35.685572 - /Users/nordendedit2/AI/ComfyUI2024-12-27T21:29:35.685593 - 
2024-12-27T21:29:35.685606 - ############################################2024-12-27T21:29:35.685617 - 
2024-12-27T21:29:35.685653 - /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-NAI-styler/CSV2024-12-27T21:29:35.685662 - 
2024-12-27T21:29:35.685672 - ############################################2024-12-27T21:29:35.685680 - 
2024-12-27T21:29:35.685766 - []2024-12-27T21:29:35.685777 - 
2024-12-27T21:29:35.685786 - ############################################2024-12-27T21:29:35.685794 - 
2024-12-27T21:29:35.696730 - Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --attention-split2024-12-27T21:29:35.696749 - 
2024-12-27T21:29:35.731156 - Started worker with PID 866612024-12-27T21:29:35.731186 - 
2024-12-27T21:29:35.738791 - �[0m�[95m ComfyUI  Fooocus Nodes  :�[0m �[32mloaded�[0m2024-12-27T21:29:35.738811 - 
2024-12-27T21:29:36.274217 - ------------------------------------------2024-12-27T21:29:36.274266 - 
2024-12-27T21:29:36.274281 - �[34mComfyroll Studio v1.76 : �[92m 175 Nodes Loaded�[0m2024-12-27T21:29:36.274291 - 
2024-12-27T21:29:36.274301 - ------------------------------------------2024-12-27T21:29:36.274310 - 
2024-12-27T21:29:36.274320 - ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2024-12-27T21:29:36.274328 - 
2024-12-27T21:29:36.274337 - ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2024-12-27T21:29:36.274345 - 
2024-12-27T21:29:36.274354 - ------------------------------------------2024-12-27T21:29:36.274362 - 
2024-12-27T21:29:36.274833 - ['/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/was-node-suite-comfyui/was_node_suite_comfyui', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Crystools/nodes/comfy', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts', '/Users/nordendedit2/AI/ComfyUI/comfy', '/Users/nordendedit2/AI/ComfyUI', '/opt/homebrew/Cellar/[email protected]/3.11.11/Frameworks/Python.framework/Versions/3.11/lib/python311.zip', '/opt/homebrew/Cellar/[email protected]/3.11.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11', '/opt/homebrew/Cellar/[email protected]/3.11.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload', '/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager/glob', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager/glob', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager/glob', '../..', '/Users/nordendedit2/AI/ComfyUI', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/Fooocus_Nodes/py', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/Fooocus_Nodes/py', '/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus']2024-12-27T21:29:36.274884 - 
2024-12-27T21:29:36.286132 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/nodes.py", line 2089, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus/__init__.py", line 7, in <module>
    from .nodes import *
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus/nodes.py", line 13, in <module>
    from node_utils import params_to_params, AlwaysEqualProxy
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus/node_utils.py", line 4, in <module>
    from apis.models.requests import (
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus/apis/models/requests.py", line 8, in <module>
    from apis.models.base import (
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus/apis/models/base.py", line 9, in <module>
    from modules.async_worker import AsyncTask
ModuleNotFoundError: No module named 'modules.async_worker'

2024-12-27T21:29:36.286224 - Cannot import /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus module for custom nodes: No module named 'modules.async_worker'
2024-12-27T21:29:36.671850 - no module 'xformers'. Processing without...2024-12-27T21:29:36.671875 - 
2024-12-27T21:29:36.672322 - no module 'xformers'. Processing without...2024-12-27T21:29:36.672336 - 
2024-12-27T21:29:36.675774 - 
Import times for custom nodes:
2024-12-27T21:29:36.675821 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/websocket_image_save.py
2024-12-27T21:29:36.675852 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Universal-Styler
2024-12-27T21:29:36.675872 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/cg-use-everywhere
2024-12-27T21:29:36.675889 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/comfy-image-saver
2024-12-27T21:29:36.675908 -    0.0 seconds (IMPORT FAILED): /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_NAI-mod
2024-12-27T21:29:36.675928 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
2024-12-27T21:29:36.675945 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_essentials
2024-12-27T21:29:36.675961 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
2024-12-27T21:29:36.675977 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-KJNodes
2024-12-27T21:29:36.675992 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-JDCN
2024-12-27T21:29:36.676012 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/rgthree-comfy
2024-12-27T21:29:36.676027 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/x-flux-comfyui
2024-12-27T21:29:36.676044 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
2024-12-27T21:29:36.676059 -    0.0 seconds (IMPORT FAILED): /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Fooocus
2024-12-27T21:29:36.676078 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-GGUF
2024-12-27T21:29:36.676094 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Inspire-Pack
2024-12-27T21:29:36.676109 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Impact-Pack
2024-12-27T21:29:36.676124 -    0.0 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/facerestore_cf
2024-12-27T21:29:36.676140 -    0.1 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/Fooocus_Nodes
2024-12-27T21:29:36.676155 -    0.1 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Crystools
2024-12-27T21:29:36.676170 -    0.1 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager
2024-12-27T21:29:36.676184 -    0.1 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-AnimateAnyone-Evolved
2024-12-27T21:29:36.676199 -    0.2 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
2024-12-27T21:29:36.676215 -    0.2 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/comfyui-tensorops
2024-12-27T21:29:36.676230 -    0.3 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-SUPIR
2024-12-27T21:29:36.676245 -    0.5 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Florence2
2024-12-27T21:29:36.676259 -    0.6 seconds: /Users/nordendedit2/AI/ComfyUI/custom_nodes/was-node-suite-comfyui
2024-12-27T21:29:36.676275 - 
2024-12-27T21:29:36.681948 - Starting server

2024-12-27T21:29:36.682177 - To see the GUI go to: http://127.0.0.1:8188
2024-12-27T21:29:41.078287 - FETCH DATA from: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2024-12-27T21:29:41.078311 - 2024-12-27T21:29:41.082083 -  [DONE]2024-12-27T21:29:41.082110 - 
2024-12-27T21:29:41.397977 - [Inspire Pack] IPAdapterPlus is not installed.2024-12-27T21:29:41.398013 - 
2024-12-27T21:29:41.399057 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399079 - 
2024-12-27T21:29:41.399119 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399129 - 
2024-12-27T21:29:41.399150 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399160 - 
2024-12-27T21:29:41.399177 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399186 - 
2024-12-27T21:29:41.399198 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399206 - 
2024-12-27T21:29:41.399218 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T21:29:41.399226 - 
2024-12-27T21:29:41.402699 - ['realism_lora_comfy_converted.safetensors']2024-12-27T21:29:41.402713 - 
2024-12-27T21:29:41.402726 - ['realism_lora_comfy_converted.safetensors']2024-12-27T21:29:41.402737 - 
2024-12-27T21:30:20.632524 - got prompt
2024-12-27T21:30:20.662601 - Warning torch.load doesn't support weights_only on this pytorch version, loading unsafely.
2024-12-27T21:30:20.788365 - Using split attention in VAE
2024-12-27T21:30:20.788878 - Using split attention in VAE
2024-12-27T21:30:20.973956 - VAE load device: mps, offload device: cpu, dtype: torch.bfloat16
2024-12-27T21:30:21.228444 - model weight dtype torch.float8_e5m2, manual cast: torch.bfloat16
2024-12-27T21:30:21.228796 - model_type FLUX
2024-12-27T21:30:29.972921 - Requested to load FluxClipModel_
2024-12-27T21:30:29.977453 - loaded completely 9.5367431640625e+25 9319.23095703125 True
2024-12-27T21:30:29.978602 - CLIP model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float16
2024-12-27T21:30:35.870548 - Canva size: 2560x17122024-12-27T21:30:35.870602 - 
2024-12-27T21:30:35.870633 - Image size: 1280x8532024-12-27T21:30:35.870646 - 
2024-12-27T21:30:35.870658 - Scale factor: 22024-12-27T21:30:35.870669 - 
2024-12-27T21:30:35.870685 - Upscaling iteration 1 with scale factor 22024-12-27T21:30:35.870694 - 
2024-12-27T21:30:36.064397 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T21:30:36.064441 - 
2024-12-27T21:30:38.396749 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T21:30:38.400064 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T21:30:38.400691 - Prompt executed in 17.76 seconds
2024-12-27T21:30:55.691374 - got prompt
2024-12-27T21:30:55.716817 - Canva size: 2560x17122024-12-27T21:30:55.716871 - 
2024-12-27T21:30:55.716897 - Image size: 1280x8532024-12-27T21:30:55.716915 - 
2024-12-27T21:30:55.716932 - Scale factor: 22024-12-27T21:30:55.716948 - 
2024-12-27T21:30:55.716976 - Upscaling iteration 1 with scale factor 22024-12-27T21:30:55.716991 - 
2024-12-27T21:30:55.890020 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T21:30:55.890065 - 
2024-12-27T21:30:57.435161 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T21:30:57.435790 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T21:30:57.436450 - Prompt executed in 1.74 seconds
2024-12-27T21:31:09.165092 - got prompt
2024-12-27T21:31:09.190120 - Canva size: 2560x17122024-12-27T21:31:09.190175 - 
2024-12-27T21:31:09.190197 - Image size: 1280x8532024-12-27T21:31:09.190213 - 
2024-12-27T21:31:09.190229 - Scale factor: 22024-12-27T21:31:09.190243 - 
2024-12-27T21:31:09.190267 - Upscaling iteration 1 with scale factor 22024-12-27T21:31:09.190282 - 
2024-12-27T21:31:09.364665 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T21:31:09.364703 - 
2024-12-27T21:31:10.830199 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T21:31:10.830905 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T21:31:10.831649 - Prompt executed in 1.66 seconds
2024-12-27T21:31:33.443997 - got prompt
2024-12-27T21:31:33.468513 - Canva size: 2560x17122024-12-27T21:31:33.468561 - 
2024-12-27T21:31:33.468586 - Image size: 1280x8532024-12-27T21:31:33.468607 - 
2024-12-27T21:31:33.468623 - Scale factor: 22024-12-27T21:31:33.468638 - 
2024-12-27T21:31:33.468661 - Upscaling iteration 1 with scale factor 22024-12-27T21:31:33.468676 - 
2024-12-27T21:31:33.652803 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T21:31:33.652865 - 
2024-12-27T21:31:35.131709 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T21:31:35.132335 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T21:31:35.132951 - Prompt executed in 1.69 seconds
2024-12-27T22:16:12.870604 - got prompt
2024-12-27T22:16:13.249164 - model weight dtype torch.float8_e5m2, manual cast: torch.bfloat16
2024-12-27T22:16:13.249352 - model_type FLOW
2024-12-27T22:16:19.551002 - Requested to load FluxClipModel_
2024-12-27T22:16:19.555380 - loaded completely 9.5367431640625e+25 9319.23095703125 True
2024-12-27T22:16:19.556485 - CLIP model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float16
2024-12-27T22:16:19.682667 - clip missing: ['text_projection.weight']
2024-12-27T22:16:25.713511 - Canva size: 2560x17122024-12-27T22:16:25.713561 - 
2024-12-27T22:16:25.713584 - Image size: 1280x8532024-12-27T22:16:25.713605 - 
2024-12-27T22:16:25.713617 - Scale factor: 22024-12-27T22:16:25.713627 - 
2024-12-27T22:16:25.713648 - Upscaling iteration 1 with scale factor 22024-12-27T22:16:25.713659 - 
2024-12-27T22:16:25.864671 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T22:16:25.864711 - 
2024-12-27T22:16:27.339760 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T22:16:27.340439 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T22:16:27.341147 - Prompt executed in 14.47 seconds
2024-12-27T22:16:48.104826 - got prompt
2024-12-27T22:16:48.432634 - model weight dtype torch.bfloat16, manual cast: None
2024-12-27T22:16:48.432827 - model_type FLOW
2024-12-27T22:16:50.825901 - Canva size: 2560x17122024-12-27T22:16:50.826052 - 
2024-12-27T22:16:50.826090 - Image size: 1280x8532024-12-27T22:16:50.826112 - 
2024-12-27T22:16:50.826125 - Scale factor: 22024-12-27T22:16:50.826136 - 
2024-12-27T22:16:50.826161 - Upscaling iteration 1 with scale factor 22024-12-27T22:16:50.826172 - 
2024-12-27T22:16:50.979841 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T22:16:50.979880 - 
2024-12-27T22:16:52.447643 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T22:16:52.448283 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T22:16:52.448922 - Prompt executed in 4.34 seconds
2024-12-27T22:18:04.174166 - FETCH DATA from: /Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2024-12-27T22:18:04.174205 - 2024-12-27T22:18:04.176606 -  [DONE]2024-12-27T22:18:04.176635 - 
2024-12-27T22:18:04.218255 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218293 - 
2024-12-27T22:18:04.218315 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218327 - 
2024-12-27T22:18:04.218352 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218361 - 
2024-12-27T22:18:04.218376 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218386 - 
2024-12-27T22:18:04.218398 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218406 - 
2024-12-27T22:18:04.218417 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /Users/nordendedit2/AI/ComfyUI
            2024-12-27T22:18:04.218426 - 
2024-12-27T22:18:04.222284 - ['realism_lora_comfy_converted.safetensors']2024-12-27T22:18:04.222313 - 
2024-12-27T22:18:04.222334 - ['realism_lora_comfy_converted.safetensors']2024-12-27T22:18:04.222344 - 
2024-12-27T22:21:46.392801 - got prompt
2024-12-27T22:21:46.559718 - model weight dtype torch.bfloat16, manual cast: None
2024-12-27T22:21:46.559963 - model_type FLUX
2024-12-27T22:22:09.513453 - Canva size: 2560x17122024-12-27T22:22:09.513502 - 
2024-12-27T22:22:09.513520 - Image size: 1280x8532024-12-27T22:22:09.513534 - 
2024-12-27T22:22:09.513545 - Scale factor: 22024-12-27T22:22:09.513557 - 
2024-12-27T22:22:09.513572 - Upscaling iteration 1 with scale factor 22024-12-27T22:22:09.513583 - 
2024-12-27T22:22:09.684564 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T22:22:09.684611 - 
2024-12-27T22:22:11.194187 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T22:22:11.194845 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T22:22:11.195461 - Prompt executed in 24.80 seconds
2024-12-27T22:23:53.743026 - got prompt
2024-12-27T22:23:53.770187 - Canva size: 2560x17122024-12-27T22:23:53.770243 - 
2024-12-27T22:23:53.770266 - Image size: 1280x8532024-12-27T22:23:53.770282 - 
2024-12-27T22:23:53.770297 - Scale factor: 22024-12-27T22:23:53.770311 - 
2024-12-27T22:23:53.770334 - Upscaling iteration 1 with scale factor 22024-12-27T22:23:53.770348 - 
2024-12-27T22:23:53.942203 - Размер входного изображения: torch.Size([1, 3, 853, 1280])2024-12-27T22:23:53.942251 - 
2024-12-27T22:23:55.492109 - !!! Exception during processing !!! Cannot handle this data type: (1, 1, 2560), |u1
2024-12-27T22:23:55.492744 - Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3315, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 2560), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 328, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 203, 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 "/Users/nordendedit2/AI/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/nordendedit2/AI/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/nodes.py", line 151, in upscale
    processed = script.run(p=self.sdprocessing, _=None, tile_width=self.tile_width, tile_height=self.tile_height,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 558, in run
    upscaler.upscale()
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/usdu_patch.py", line 66, in new_upscale
    old_upscale(self)
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py", line 83, in upscale
    self.image = self.upscaler.scaler.upscale(self.image, value, self.upscaler.data_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in upscale
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 23, in <listcomp>
    shared.batch = [self._upscale(img, scale) for img in shared.batch]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/modules/upscaler.py", line 20, in _upscale
    return tensor_to_pil(upscaled)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale/utils.py", line 21, in tensor_to_pil
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8).squeeze())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nordendedit2/AI/ComfyUI/comfyui-env/lib/python3.11/site-packages/PIL/Image.py", line 3319, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 2560), |u1

2024-12-27T22:23:55.493525 - Prompt executed in 1.75 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":44,"last_link_id":76,"nodes":[{"id":37,"type":"CLIPTextEncode","pos":[374,257],"size":[396.09979248046875,191.12571716308594],"flags":{"collapsed":true},"order":5,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":54,"slot_index":0}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[60],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["blurry"]},{"id":40,"type":"CLIPTextEncodeFlux","pos":[367,201],"size":[402.9444885253906,299.78936767578125],"flags":{"collapsed":true},"order":6,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":74}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[64,65],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncodeFlux"},"widgets_values":["","",3.5]},{"id":22,"type":"BasicGuider","pos":[397,-20],"size":[241.79998779296875,46],"flags":{},"order":7,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":73,"slot_index":0},{"name":"conditioning","type":"CONDITIONING","link":64,"slot_index":1}],"outputs":[{"name":"GUIDER","type":"GUIDER","links":[],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"BasicGuider"},"widgets_values":[]},{"id":29,"type":"SaveImage","pos":[1126,-32],"size":[232.54530334472656,198.8222198486328],"flags":{},"order":9,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":62}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"]},{"id":44,"type":"Image Comparer (rgthree)","pos":[1120,224],"size":[769.985107421875,853.383056640625],"flags":{},"order":10,"mode":0,"inputs":[{"name":"image_a","type":"IMAGE","link":75,"dir":3},{"name":"image_b","type":"IMAGE","link":76,"dir":3}],"outputs":[],"properties":{"comparer_mode":"Slide"},"widgets_values":[[]]},{"id":43,"type":"LoadImage","pos":[310,466],"size":[415.1728210449219,415.74774169921875],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[72,75],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["ai-generated-7764816 Large.jpeg","image"]},{"id":26,"type":"UpscaleModelLoader","pos":[375,345],"size":[315,58],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"UPSCALE_MODEL","type":"UPSCALE_MODEL","links":[56],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"UpscaleModelLoader"},"widgets_values":["RealESRGAN_x2.pth"]},{"id":39,"type":"UltimateSDUpscale","pos":[764,-34],"size":[315,614],"flags":{},"order":8,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":72},{"name":"model","type":"MODEL","link":61},{"name":"positive","type":"CONDITIONING","link":65},{"name":"negative","type":"CONDITIONING","link":60},{"name":"vae","type":"VAE","link":58},{"name":"upscale_model","type":"UPSCALE_MODEL","link":56}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[62,76],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"UltimateSDUpscale"},"widgets_values":[2,166766812003421,"randomize",1,1,"euler","normal",0.2,"Linear",2560,1704,8,32,"None",1,64,8,16,true,false]},{"id":12,"type":"UNETLoader","pos":[21,79],"size":[315,82],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[61,73],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"UNETLoader"},"widgets_values":["flux1-dev.safetensors","default"]},{"id":11,"type":"DualCLIPLoader","pos":[26,257],"size":[315,106],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[54,74],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"DualCLIPLoader"},"widgets_values":["clip_l.safetensors","t5xxl_fp16.safetensors","flux"]},{"id":10,"type":"VAELoader","pos":[22.385334014892578,406.81903076171875],"size":[315,58],"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"VAE","type":"VAE","links":[58],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["ae.safetensors"]}],"links":[[54,11,0,37,0,"CLIP"],[56,26,0,39,5,"UPSCALE_MODEL"],[58,10,0,39,4,"VAE"],[60,37,0,39,3,"CONDITIONING"],[61,12,0,39,1,"MODEL"],[62,39,0,29,0,"IMAGE"],[64,40,0,22,1,"CONDITIONING"],[65,40,0,39,2,"CONDITIONING"],[72,43,0,39,0,"IMAGE"],[73,12,0,22,0,"MODEL"],[74,11,0,40,0,"CLIP"],[75,43,0,44,0,"IMAGE"],[76,39,0,44,1,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.4864362802414566,"offset":[225.200742046134,156.93937830498913]},"ue_links":[]},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)

@LukeG89
Copy link

LukeG89 commented Dec 27, 2024

Wait, I think I get the problem. You set a really big tile size. Tile is not the final resolution you will get, the image size is set with upscale_by. Set a default tile size (like 512x512) and see if it works

@LukeG89
Copy link

LukeG89 commented Dec 27, 2024

Btw, why have you opened this new issue and not posting in the previous one?

@HHmiete
Copy link
Author

HHmiete commented Dec 27, 2024

Btw, why have you opened this new issue and not posting in the previous one?

My bad, I’m just starting out here on GitHub and don’t really understand the structure for issues.

I tried setting the tile height and width to 512, but it’s still throwing the same error. However, if I set upscale_by to 1, it works fine—though it’s not upscaling to the expected resolution.

@LukeG89
Copy link

LukeG89 commented Dec 28, 2024

My bad, I’m just starting out here on GitHub and don’t really understand the structure for issues.

Don't worry, you can close the other issue at this point.

However, if I set upscale_by to 1, it works fine—though it’s not upscaling to the expected resolution.

It's normal, you are upscaling the image x1

I tried setting the tile height and width to 512, but it’s still throwing the same error.

That's strange, I just tested your workflow with tile 512x512 + upscale_by 2 and it's working to me.
Maybe it's related to Mac, I'm using Windows with NVIDIA graphics card.
@comfyanonymous Is it related to ComfyUI or the issue needs to be opened in ComfyUI_UltimateSDUpscale repo?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants