pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.81k stars 140 forks source link

MathExpression|pysssss 70: Return type mismatch between linked nodes: a, INT != INT,FLOAT,IMAGE,LATENT #339

Open 1461660252 opened 1 month ago

1461660252 commented 1 month ago

Description

I encountered a type mismatch error while using the custom script MathExpression|pysssss in ComfyUI. The error arises when linking nodes, indicating a return type mismatch. Snipaste_2024-09-05_10-16-34

Steps to Reproduce

  1. I created a MathExpression node.
  2. Attempt to connect any node that outputs an INT type to any of the inputs (a, b, c) of the MathExpression node.
  3. Upon execution, the following error is thrown: Return type mismatch between linked nodes: a, INT != INT,FLOAT,IMAGE,LATENT

Expected Behavior

I expect to be able to connect an INT type node to the MathExpression node without encountering a type mismatch error, as INT is a valid input type according to the node's documentation.

Actual Behavior

A type mismatch error occurs, preventing the workflow from executing properly.

Environment

Please provide any possible solutions or suggestions. Thank you.

1461660252 commented 1 month ago

![Uploading Snipaste_2024-09-05_10-47-50.png…]()

pythongosssss commented 1 month ago

Can you please check you're on the latest commit for this repo, as this should be fixed: https://github.com/pythongosssss/ComfyUI-Custom-Scripts/commit/a19d0cc4adc4f746862a3f0051dca4931d0e40da

kevinlv commented 1 month ago

Updating the latest version still has this issue, when using Empty Latent Image 1