“math domain error


# ComfyUI Error Report
## Error Details
- **Node Type:** Image Levels Adjustment
- **Exception Type:** ValueError
- **Exception Message:** math domain error
## Stack Trace
```
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 326, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 201, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 172, in _map_node_over_list
    process_inputs(input_dict, i)

  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 161, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6208, in apply_image_levels
    tensor_images.append(pil2tensor(levels.adjust(img)))
                                    ^^^^^^^^^^^^^^^^^^

  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6230, in adjust
    gamma = math.log(0.5) / math.log((self.mid_level - self.min_level) / (self.max_level - self.min_level))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

```
## System Information
- **ComfyUI Version:** v0.2.7-63-gef76368
- **Arguments:** ComfyUI\main.py --windows-standalone-build
- **OS:** nt
- **Python Version:** 3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.5.1+cu124
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4090 D : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 25756696576
  - **VRAM Free:** 20501116770
  - **Torch VRAM Total:** 6442450944
  - **Torch VRAM Free:** 2908108642

## Logs
```
2024-11-25 14:27:00,656 - root - INFO - Total VRAM 24564 MB, total RAM 65347 MB
2024-11-25 14:27:00,656 - root - INFO - pytorch version: 2.5.1+cu124
2024-11-25 14:27:00,656 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-25 14:27:00,656 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 D : cudaMallocAsync
2024-11-25 14:27:02,211 - root - INFO - Using pytorch cross attention
2024-11-25 14:27:04,086 - root - INFO - [Prompt Server] web root: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\web
2024-11-25 14:27:08,569 - root - INFO - Total VRAM 24564 MB, total RAM 65347 MB
2024-11-25 14:27:08,569 - root - INFO - pytorch version: 2.5.1+cu124
2024-11-25 14:27:08,570 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-25 14:27:08,570 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 D : cudaMallocAsync
2024-11-25 14:27:10,150 - root - INFO - --------------
2024-11-25 14:27:10,150 - root - INFO - [91m ### Mixlab Nodes: [93mLoaded
2024-11-25 14:27:10,150 - root - INFO - ChatGPT.available True
2024-11-25 14:27:10,150 - root - INFO - edit_mask.available True
2024-11-25 14:27:10,659 - root - INFO - ClipInterrogator.available True
2024-11-25 14:27:10,922 - root - INFO - PromptGenerate.available True
2024-11-25 14:27:10,922 - root - INFO - ChinesePrompt.available True
2024-11-25 14:27:10,922 - root - INFO - RembgNode_.available True
2024-11-25 14:27:11,189 - root - INFO - TripoSR.available
2024-11-25 14:27:11,189 - root - INFO - MiniCPMNode.available
2024-11-25 14:27:11,353 - root - INFO - Scenedetect.available
2024-11-25 14:27:11,417 - root - INFO - FishSpeech.available
2024-11-25 14:27:11,423 - root - INFO - SenseVoice.available
2024-11-25 14:27:11,424 - root - INFO - [93m -------------- [0m
2024-11-25 14:27:14,849 - root - WARNING - Traceback (most recent call last):
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\IC-Light-ComfyUI-Node\nodes.py", line 19, in <module>
    from diffusers.loaders.single_file_utils import (
ImportError: cannot import name 'create_vae_diffusers_config' from 'diffusers.loaders.single_file_utils' (D:\LiblibAI-workspace\comfyui-deploy-win\python_embeded\Lib\site-packages\diffusers\loaders\single_file_utils.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\nodes.py", line 2012, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\IC-Light-ComfyUI-Node\__init__.py", line 1, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\IC-Light-ComfyUI-Node\nodes.py", line 27, in <module>
    raise ImportError("Diffusers version too old. Please update to 0.26.0 minimum.")
ImportError: Diffusers version too old. Please update to 0.26.0 minimum.

2024-11-25 14:27:14,849 - root - WARNING - Cannot import D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\IC-Light-ComfyUI-Node module for custom nodes: Diffusers version too old. Please update to 0.26.0 minimum.
2024-11-25 14:27:16,168 - root - INFO - 
Import times for custom nodes:
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\websocket_image_save.py
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\FreeU_Advanced
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ControlNet-LLLite-ComfyUI
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-IC-Light-Native
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\cg-use-everywhere
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-BRIA_AI-RMBG
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\stability-ComfyUI-nodes
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\efficiency-nodes-comfyui
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Gaffer
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_experiments
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\PowerNoiseSuite
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-TiledDiffusion
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_FizzNodes
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-animatediff
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-layerdiffuse
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\images-grid-comfy-plugin
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_essentials
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Florence2
2024-11-25 14:27:16,168 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\x-flux-comfyui
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_CatVTON_Wrapper
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\rgthree-comfy
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-workspace-manager
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-IC-Light
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds (IMPORT FAILED): D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\IC-Light-ComfyUI-Node
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfy_mtb
2024-11-25 14:27:16,169 - root - INFO -    0.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-DynamiCrafterWrapper
2024-11-25 14:27:16,169 - root - INFO -    0.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui_segment_anything
2024-11-25 14:27:16,169 - root - INFO -    0.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2024-11-25 14:27:16,169 - root - INFO -    0.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-tensorops
2024-11-25 14:27:16,169 - root - INFO -    0.2 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-11-25 14:27:16,169 - root - INFO -    0.2 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-BrushNet
2024-11-25 14:27:16,169 - root - INFO -    0.3 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-SUPIR
2024-11-25 14:27:16,169 - root - INFO -    0.4 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Easy-Use
2024-11-25 14:27:16,169 - root - INFO -    0.5 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_InstantID
2024-11-25 14:27:16,169 - root - INFO -    0.8 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI-Manager
2024-11-25 14:27:16,169 - root - INFO -    1.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2024-11-25 14:27:16,169 - root - INFO -    1.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-reactor-node
2024-11-25 14:27:16,169 - root - INFO -    1.3 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-11-25 14:27:16,169 - root - INFO -    2.0 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-mixlab-nodes
2024-11-25 14:27:16,169 - root - INFO -    3.1 seconds: D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\comfyui-art-venture
2024-11-25 14:27:16,169 - root - INFO - 
2024-11-25 14:27:16,181 - root - INFO - Starting server

2024-11-25 14:27:16,181 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-11-25 14:29:37,118 - root - INFO - got prompt
2024-11-25 14:29:37,126 - root - ERROR - Failed to validate prompt for output 105:
2024-11-25 14:29:37,126 - root - ERROR - * CheckpointLoaderSimple 4:
2024-11-25 14:29:37,126 - root - ERROR -   - Value not in list: ckpt_name: 'dreamshaper_8_v8' not in (list of length 41)
2024-11-25 14:29:37,127 - root - ERROR - * LoadAndApplyICLightUnet 61:
2024-11-25 14:29:37,127 - root - ERROR -   - Value not in list: model_path: 'iclight_sd15_fcon.safetensors' not in (list of length 35)
2024-11-25 14:29:37,127 - root - ERROR - Output will be ignored
2024-11-25 14:29:37,127 - root - ERROR - Failed to validate prompt for output 100:
2024-11-25 14:29:37,127 - root - ERROR - Output will be ignored
2024-11-25 14:29:51,692 - root - INFO - got prompt
2024-11-25 14:29:51,703 - root - ERROR - Failed to validate prompt for output 105:
2024-11-25 14:29:51,703 - root - ERROR - * LoadAndApplyICLightUnet 61:
2024-11-25 14:29:51,703 - root - ERROR -   - Value not in list: model_path: 'iclight_sd15_fcon.safetensors' not in (list of length 35)
2024-11-25 14:29:51,703 - root - ERROR - Output will be ignored
2024-11-25 14:29:51,703 - root - ERROR - Failed to validate prompt for output 100:
2024-11-25 14:29:51,703 - root - ERROR - Output will be ignored
2024-11-25 14:30:07,570 - root - INFO - got prompt
2024-11-25 14:30:25,595 - root - INFO - Prompt executed in 48.47 seconds
2024-11-25 14:30:25,906 - root - INFO - Prompt executed in 0.16 seconds
2024-11-25 14:30:26,037 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-11-25 14:30:26,038 - root - INFO - model_type EPS
2024-11-25 14:30:28,016 - root - INFO - Using pytorch attention in VAE
2024-11-25 14:30:28,017 - root - INFO - Using pytorch attention in VAE
2024-11-25 14:30:28,840 - root - INFO - Requested to load AutoencoderKL
2024-11-25 14:30:28,841 - root - INFO - Loading 1 new model
2024-11-25 14:30:28,901 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-25 14:30:29,741 - root - INFO - Requested to load SD1ClipModel
2024-11-25 14:30:29,741 - root - INFO - Loading 1 new model
2024-11-25 14:30:29,769 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-11-25 14:40:02,631 - root - INFO - Requested to load CLIPVisionModelProjection
2024-11-25 14:40:02,631 - root - INFO - Loading 1 new model
2024-11-25 14:40:02,961 - root - INFO - loaded completely 0.0 1208.09814453125 True
2024-11-25 14:40:03,246 - root - INFO - Requested to load BaseModel
2024-11-25 14:40:03,246 - root - INFO - Loading 1 new model
2024-11-25 14:40:04,792 - root - WARNING - WARNING SHAPE MISMATCH diffusion_model.input_blocks.0.0.weight WEIGHT NOT MERGED torch.Size([320, 8, 3, 3]) != torch.Size([320, 4, 3, 3])
2024-11-25 14:40:04,902 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-11-25 14:40:17,423 - root - ERROR - !!! Exception during processing !!! math domain error
2024-11-25 14:40:17,425 - root - ERROR - Traceback (most recent call last):
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 326, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 201, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 172, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 161, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6208, in apply_image_levels
    tensor_images.append(pil2tensor(levels.adjust(img)))
                                    ^^^^^^^^^^^^^^^^^^
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6230, 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-11-25 14:40:17,597 - root - INFO - Prompt executed in 591.69 seconds
2024-11-25 14:42:33,558 - root - INFO - got prompt
2024-11-25 14:42:46,427 - root - ERROR - !!! Exception during processing !!! math domain error
2024-11-25 14:42:46,427 - root - ERROR - Traceback (most recent call last):
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 326, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 201, 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:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 172, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\execution.py", line 161, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6208, in apply_image_levels
    tensor_images.append(pil2tensor(levels.adjust(img)))
                                    ^^^^^^^^^^^^^^^^^^
  File "D:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6230, 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-11-25 14:42:46,592 - root - INFO - Prompt executed in 13.02 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)