This should help with #9, i.e Google Colab mode
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-embedmode 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:
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 fontStyles 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 generatorSave Tensors: Debug node that will probably be removed in the futureInt to Number: Supplement for WASSuite number nodes
face detection / swapping
Face Swap: Face swap using deepinsight/insightface models (this node used to be calledRoopin 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 boxCrop: Crop image from BBoxUncrop: 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 imageDeglaze Image: taken from FN16,Mask To Image: Converts a mask (alpha) to an RGB image with a color and backgroundImage Premultiply: Premultiply image with maskImage 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 sizeRGB 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: -
Image Remove Background [RemBG]: (using rembg)
Comfy Resources
Guides:
-
ComfyUI Community Manual (eng) by @BlenderNeko
-
Tomoaki's personal Wiki (jap) by @tjhayasaka
Extensions and Custom Nodes:
-
Plugins for Comfy List (eng) by @WASasquatch