2023-07-03 02:04:06 +02:00
2023-06-28 23:12:54 +02:00
2023-06-13 18:35:27 +02:00
2023-07-03 02:04:06 +02:00
2023-07-03 01:45:34 +02:00
2023-06-27 20:49:37 +02:00
2023-07-03 02:04:06 +02:00
2023-06-03 20:05:19 +02:00
2023-07-03 01:45:34 +02:00
2023-06-23 04:53:43 +02:00
2023-07-03 02:04:06 +02:00
2023-06-29 15:09:27 +02:00
2023-06-28 23:17:25 +02:00
2023-06-23 04:53:43 +02:00
2023-06-23 04:00:22 +02:00
2023-07-03 01:07:00 +02:00

MTB Nodes

Feel free to do whatever you want with this codebase, I'm mainly using Comfy to build POCs to implement in MLOPs. And a lot of nodes are inspired by existing ones from the community or builtin Just beware of the licenses of some libraries (deepbump for instance is GPLv3)

Install

Warning

If you use the python-embed mode of comfyui (the standalone release) then you might not be able to pip install dependencies that don't have wheels, in this case check the last release there is a bundle for linux and windows

Dependencies:
From within the python environment you already use for ComfyUI install the requirements.

pip install -r comfy_mtb/requirements.txt

Models Download:
Some nodes require extra models to be downloaded, you can interactively do it using the same python environment as above:

python scripts/download_models.py

then follow the prompt or just press enter to download every models.

On first run the script tries to symlink the web extensions to your comfy web/extensions folder. In case it fails you can manually copy the web scripts it only provides a color widget for now:
image

You should also see the nodes that failed loading with the reason next to them.

Node List

In the JS Side a new widget type is added: COLOR, for now both the input and the widget are exposed, the input takes precendence over the widget.

misc utils

  • Text To Image: Utils to convert text to image using a font
  • Styles Loader: Load csv files and populate a dropdown from the rows (à la A111)
  • Smart Step: A very basic node to get step percent to use in KSampler advanced,
  • Qr Code: Basic QR Code generator
  • Save Tensors: Debug node that will probably be removed in the future
  • Int to Number: Supplement for WASSuite number nodes

face detection / swapping

  • Face Swap: Face swap using deepinsight/insightface models (this node used to be called Roop in early versions, it does the same)

latent

  • Latent Lerp: Linear interpolation (blend) between two latent

bbox

  • Bounding Box: BBox constructor (custom type),
  • BBox From Mask: From a mask extract the bounding box
  • Crop: Crop image from BBox
  • Uncrop: Uncrop image from BBox

image ops

  • Image Remove Background Rembg: RemBG powered background removal.
  • Blur: Blur an image using a Gaussian filter.
  • Denoise: Denoise the input image,
  • Image Compare: Compare two images and return a difference image
  • Deglaze Image: taken from FN16,
  • Mask To Image: Converts a mask (alpha) to an RGB image with a color and background
  • Image Premultiply: Premultiply image with mask
  • Image Resize Factor: Extracted mostly from WAS Node Suite, with a few edits (most notably multiple image support) and less features.
  • Save Image Grid: Save all the images in the input batch as a grid of images.

colors

  • Colored Image: Constant color image of given size
  • RGB to HSV: -,
  • HSV to RGB: -,
  • Color Correct: Basic color correction tools,

Screenshots

  • FaceSwap (formely named roop) (using insight-face)
    The face index allow you to choose which face to replace as you can see here: ComfyUI_909

  • Style Loader: A111 like csv styles in Comfy
    image

  • Color Correction: basic color correction node
    image

  • Image Remove Background [RemBG]: (using rembg) image

Comfy Resources

Guides:

Extensions and Custom Nodes:

S
Description
No description provided
Readme MIT
8.1 MiB
Languages
JavaScript 75.9%
Python 23.6%
Nushell 0.3%
CSS 0.2%