WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

There was an error in the level adjustment #474

Open zdoek001 opened 2 months ago

zdoek001 commented 2 months ago

83/1/172

ComfyUI Error Report

Error Details

## System Information
- **ComfyUI Version:** v0.2.2-49-g7183fd1
- **Arguments:** E:\AI\comfyUI\ComfyUI-aki-v1.4\main.py --auto-launch --preview-method auto --disable-cuda-malloc
- **OS:** nt
- **Python Version:** 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.3.1+cu121
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4060 Laptop GPU : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 8585216000
  - **VRAM Free:** 7443841024
  - **Torch VRAM Total:** 0
  - **Torch VRAM Free:** 0

## Logs

2024-09-18 18:13:53,088 - root - INFO - Total VRAM 8188 MB, total RAM 32497 MB 2024-09-18 18:13:53,088 - root - INFO - pytorch version: 2.3.1+cu121 2024-09-18 18:13:54,151 - root - INFO - xformers version: 0.0.27 2024-09-18 18:13:54,151 - root - INFO - Set vram state to: NORMAL_VRAM 2024-09-18 18:13:54,151 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4060 Laptop GPU : cudaMallocAsync 2024-09-18 18:13:54,289 - root - INFO - Using xformers cross attention 2024-09-18 18:13:55,063 - root - INFO - [Prompt Server] web root: E:\AI\comfyUI\ComfyUI-aki-v1.4\web 2024-09-18 18:13:56,841 - root - INFO - Total VRAM 8188 MB, total RAM 32497 MB 2024-09-18 18:13:56,841 - root - INFO - pytorch version: 2.3.1+cu121 2024-09-18 18:13:56,841 - root - INFO - xformers version: 0.0.27 2024-09-18 18:13:56,841 - root - INFO - Set vram state to: NORMAL_VRAM 2024-09-18 18:13:56,841 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4060 Laptop GPU : cudaMallocAsync 2024-09-18 18:14:05,036 - root - INFO - Import times for custom nodes: 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\AIGODLIKE-ComfyUI-Translation 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ControlNet-LLLite-ComfyUI 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_IPAdapter_plus 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\FreeU_Advanced 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_TiledKSampler 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-BRIA_AI-RMBG 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\stability-ComfyUI-nodes 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\websocket_image_save.py 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WD14-Tagger 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\comfyui_controlnet_aux 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_experiments 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\PowerNoiseSuite 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_FizzNodes 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Impact-Pack 2024-09-18 18:14:05,036 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\images-grid-comfy-plugin 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_UltimateSDUpscale 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Custom-Scripts 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\Derfuu_ComfyUI_ModdedNodes 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-KJNodes 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\rgthree-comfy 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-IC-Light 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Advanced-ControlNet 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\comfyui-workspace-manager 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_Comfyroll_CustomNodes 2024-09-18 18:14:05,037 - root - INFO - 0.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Inspire-Pack 2024-09-18 18:14:05,037 - root - INFO - 0.1 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-AnimateDiff-Evolved 2024-09-18 18:14:05,037 - root - INFO - 0.1 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Crystools 2024-09-18 18:14:05,037 - root - INFO - 0.4 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Manager 2024-09-18 18:14:05,037 - root - INFO - 0.5 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\rembg-comfyui-node 2024-09-18 18:14:05,037 - root - INFO - 1.0 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\comfyui-art-venture 2024-09-18 18:14:05,037 - root - INFO - 2.2 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_Custom_Nodes_AlekPet 2024-09-18 18:14:05,037 - root - INFO - 2.2 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Marigold 2024-09-18 18:14:05,037 - root - INFO - 2.8 seconds: E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui 2024-09-18 18:14:05,037 - root - INFO - 2024-09-18 18:14:05,048 - root - INFO - Starting server

2024-09-18 18:14:05,048 - root - INFO - To see the GUI go to: http://127.0.0.1:8188 2024-09-18 18:14:09,347 - root - INFO - got prompt 2024-09-18 18:14:09,396 - root - ERROR - !!! Exception during processing !!! math domain error 2024-09-18 18:14:09,398 - root - ERROR - Traceback (most recent call last): File "E:\AI\comfyUI\ComfyUI-aki-v1.4\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 "E:\AI\comfyUI\ComfyUI-aki-v1.4\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 "E:\AI\comfyUI\ComfyUI-aki-v1.4\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6203, in apply_image_levels tensor_images.append(pil2tensor(levels.adjust(img))) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6225, in adjust gamma = math.log(0.5) / math.log((self.mid_level - self.min_level) / (self.max_level - self.min_level)) ValueError: math domain error

2024-09-18 18:14:09,399 - root - INFO - Prompt executed in 0.05 seconds 2024-09-18 18:15:29,084 - root - INFO - got prompt 2024-09-18 18:15:29,118 - root - ERROR - !!! Exception during processing !!! math domain error 2024-09-18 18:15:29,119 - root - ERROR - Traceback (most recent call last): File "E:\AI\comfyUI\ComfyUI-aki-v1.4\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 "E:\AI\comfyUI\ComfyUI-aki-v1.4\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 "E:\AI\comfyUI\ComfyUI-aki-v1.4\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6203, in apply_image_levels tensor_images.append(pil2tensor(levels.adjust(img))) File "E:\AI\comfyUI\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6225, in adjust gamma = math.log(0.5) / math.log((self.mid_level - self.min_level) / (self.max_level - self.min_level)) ValueError: math domain error

2024-09-18 18:15:29,119 - root - INFO - Prompt executed in 0.03 seconds

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

{"last_node_id":3,"last_link_id":2,"nodes":[{"id":3,"type":"PreviewImage","pos":{"0":1249.326416015625,"1":404.17431640625},"size":{"0":342.0000305175781,"1":446},"flags":{},"order":2,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":2,"label":"图像"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"}},{"id":1,"type":"LoadImage","pos":{"0":427,"1":390},"size":{"0":315,"1":314.0000305175781},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[1],"slot_index":0,"shape":3,"label":"图像"},{"name":"MASK","type":"MASK","links":null,"shape":3,"label":"遮罩"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["01.jpg","image"]},{"id":2,"type":"Image Levels Adjustment","pos":{"0":847,"1":422},"size":{"0":315,"1":106},"flags":{},"order":1,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":1,"label":"图像"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[2],"slot_index":0,"shape":3,"label":"图像"}],"properties":{"Node name for S&R":"Image Levels Adjustment"},"widgets_values":[83,1,172]}],"links":[[1,1,0,2,0,"IMAGE"],[2,2,0,3,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1,"offset":[11.673552177921238,-145.36182856657706]}},"version":0.4}



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