Nodes Browser
ComfyDeploy: How ComfyUI template matching works in ComfyUI?
What is ComfyUI template matching?
This project is a ComfyUI version of [a/https://github.com/cozheyuanzhangde/Invariant-TemplateMatching](https://github.com/cozheyuanzhangde/Invariant-TemplateMatching).
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI template matching
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI template matching
This project is a ComfyUI version of https://github.com/cozheyuanzhangde/Invariant-TemplateMatching.
Requirements
Please ensure that you have installed Python dependencies using the following command:
pip3 install -r requirements.txt
Usage
rgbimage: RGB image where the search is running.
rgbtemplate: RGB searched template. It must be not greater than the source image and have the same data type.
method: [String] Parameter specifying the comparison method
matched_thresh: [Float] Setting threshold of matched results(0~1).
rot_range: [Integer] Array of range of rotation angle in degrees. Example: [0,360]
rot_interval: [Integer] Interval of traversing the range of rotation angle in degrees.
scale_range: [Integer] Array of range of scaling in percentage. Example: [50,200]
scale_interval: [Integer] Interval of traversing the range of scaling in percentage.
rm_redundant: [Boolean] Option for removing redundant matched results based on the width and height of the template.
minmax:[Boolean] Option for finding points with minimum/maximum value.
Contribution
Thank you for your interest in contributing to the project! We welcome help from the community and appreciate even the smallest improvements.
If you’d like to contribute, please fork the repository, make your changes, and submit a pull request. I’ll review your contributions and merge them into the main codebase.