Mflux-ComfyUI
Quick Mflux on ComfyUI
Perfil do pacote
- Status
- Verificado
- Publicador
- @raysers
- Fonte
- GitHub
README
Quick Mflux on Comfyui
Introduction
Simple use of Mflux in ComfyUI, suitable for users who are not familiar with terminal usage. Only for MacOS.
Acknowledgements
Thanks to the developers of the mflux project, especially the initiator @filipstrand and active contributor @anthonywu, for making it easier and more efficient for Mac users to generate flux model images. These contributions are truly delightful—thank you!
mflux:
https://github.com/filipstrand/mflux
Thanks also to @CharafChnioune, the author of MFLUX-WEBUI, from whom I partially referenced some code. In compliance with the Apache 2.0 license used in his project, I have added license comments in the referenced sections of my code.
Installation Guide
cd /path/to/your_ComfyUI- Activate the virtual environment
cd custom_nodesgit clone https://github.com/raysers/Mflux-ComfyUI.gitpip install mflux==0.4.1- Restart ComfyUI
Alternatively, you can search for "Mflux-ComfyUI" in ComfyUI-Manager for a quick installation.
Update Announcement
About This Update:
- The ControlNet node integrates images and intensity to distinguish it from img2img — contribution from @InformEthics.
This is the first time other contributors have participated in updating this plugin. Thanks @InformEthics.
Previous Updates Recap:
- Bring back the missing metadata
The Quick MFlux Generation node has metadata enabled by default (set to True). This means that the generated images will be automatically saved under ComfyUI/output/Mflux, along with a JSON file that shares the same name as the image.
In the ComfyUI directory, you can also use the mflux-generate --config-from-metadata command to load a JSON file and use the original mflux to generate images.
Example:
Mflux_Metadata
The advantage of the original version is its clean memory management: it automatically releases memory after each generation, as can be observed in the Activity Monitor.
If you'd like to experience the original mflux, this provides an additional option.
- Added progress bar and interruption functionality in ComfyUI. Click the built-in cancel button (the cross icon) to interrupt.
- Customizable file paths.
- Image-to-Image generation.
mflux has been updated to version 0.4.1. To experience image-to-image generation, please upgrade in ComfyUI with:
pip install --upgrade mflux
Usage Instructions
Right-click to create nodes:
Under MFlux/Air:
- Quick MFlux Generation
- MFlux Models Loader
- MFlux Models Downloader
- MFlux Custom Models
Under MFlux/Pro:
- Mflux Img2Img
- MFlux Loras Loader
- MFlux ControlNet Loader
Or double-click in the blank area of the canvas to bring up the node search box, and directly search for the node names by the keyword “Mflux.”
Basic Path Explanation
Quantized Models:
ComfyUI/models/Mflux
LoRA:
ComfyUI/models/loras
I usually create an Mflux folder under models/loras to manage the LoRAs compatible with Mflux, storing them uniformly. Therefore, in my example, the retrieved files should be Mflux/*******.safetensors.
Native Full Models & ControlNet:
Yourusername/.cache
Although the current node Mflux Models Downloader can automatically download, I would still like to share a few links to quantized models as a token of appreciation:
Nós neste pacote
Nós 7
Nós neste pacote
Nós 7- MfluxControlNetLoader
- MfluxCustomModels
- MfluxImg2Img
- MfluxLorasLoader
- MfluxModelsDownloader
- MfluxModelsLoader
- QuickMfluxNode
Fontes
3 fontes
Fontes
3 fontesVerificado 22 de out.
Verificado 22 de out.
Trechos de fonte
1 trecho
Trechos de fonte
1 trechoSource context: Repo raysers/Mflux-ComfyUI
