WASasquatch / was-node-suite-comfyui

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

Help #475

Open Joanne521 opened 1 month ago

Joanne521 commented 1 month ago

the node report error,please help!

File "F:\ComfyUI-aki-v1.4\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "F:\ComfyUI-aki-v1.4\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "F:\ComfyUI-aki-v1.4\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "F:\ComfyUI-aki-v1.4\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "F:\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6200, in apply_image_levels tensor_images.append(pil2tensor(levels.adjust(img))) File "F:\ComfyUI-aki-v1.4\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 6222, 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

WASasquatch commented 1 month ago

Math domain error occurs because you are doing an operation outside the domain of the operation potentially, like negative numbers or 0. What are your values and how are you using it?

WASasquatch commented 1 month ago

Math domain error occurs because you are doing an operation outside the domain of the operation potentially, like negative numbers or 0. What are your values and how are you using it?

Joanne521 commented 1 month ago

发生数学域错误是因为您可能在运算域之外执行运算,例如负数或 0。您的值是什么以及如何使用它? 屏幕截图 2024-09-20 015732 package.json

Thank you for your help! Looking forward to your reply

xux666 commented 1 month ago

我也是同样的问题

Joanne521 commented 1 month ago

13c368b0a7461454c3aef37a0fca5fb 我把参数换成这个数值就能跑了

WASasquatch commented 1 month ago

发生数学域错误是因为您可能在运算域之外执行运算,例如负数或 0。您的值是什么以及如何使用它? 屏幕截图 2024-09-20 015732 package.json

Thank you for your help! Looking forward to your reply

黑色电平高于中间电平

Black level is higher than the mid level

Joanne521 commented 1 month ago

发生数学域错误是因为您可能在运算域之外执行运算,例如负数或 0。您的值是什么以及如何使用它? 屏幕截图 2024-09-20 015732 package.json

Thank you for your help! Looking forward to your reply

黑色电平高于中间电平

Black level is higher than the mid level

Thank you very much for your patient answer!!!!♥