Follow the ComfyUI repo to install the dependencies.
You can simply install the dependencies by running the following command:
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
pip install -r requirements.txtInstall Ray
pip install -U "ray[data,train,tune,serve]"Install yunchang
git clone [email protected]:feifeibear/long-context-attention.git
cd long-context-attention
pip install ninja
pip install .You can put the xdit-comfyui-private folder into the ComfyUI/custom_nodes folder by running the following command:
cd ${ComfyUI}/custom_nodes
git clone [email protected]:xdit-project/xdit-comfyui-private.git
cd xdit-comfyui-private
pip install -e .Please follow the Flux Examples to prepare the corresponding checkpoints:
- Put in the
${ComfyUI}/models/clipfolder: https://huggingface.co/comfyanonymous/flux_text_encoders/tree/main - Put in the
${ComfyUI}/models/vaefolder: https://huggingface.co/black-forest-labs/FLUX.1-schnell/blob/main/ae.safetensors - Put in the
${ComfyUI}/models/unetfolder: https://huggingface.co/black-forest-labs/FLUX.1-dev
You can run the demo by running the following command:
cd ${ComfyUI}
python main.pyYou can load the default workflow in the xdit-comfyui-private/workflows folder: xdit-flux1-dev.json
We also provide some loras for you to try. You can put the loras into the ${ComfyUI}/models/xdit/loras folder(the folder will be created automatically if not exists). Currently, we support the following loras:
You can load the example loras workflow in the xdit-comfyui-private/workflows folder: xdit-flux1-dev-loras.json
We also provide some FP8 models for you to try if you don't have enough VRAM. You can put the FP8 models into the ${ComfyUI}/models/unet folder. Download the FP8 models from here.
Use the xdit-flux1-dev-fp8.json workflow in the ComfyUI/workflows folder to try the FP8 models.
We also provide some ControlNet for you to try. Before you use this function, you need to install the x-flux-comfyui node in the ComfyUI from here. Please follow the instruction in the x-flux-comfyui repo to install the node.
Currently, we support the following ControlNet:
- [flux-controlnet-canny] (https://huggingface.co/XLabs-AI/flux-controlnet-canny)
Use the xdit-flux1-dev-controlnet-canny.json workflow in the ComfyUI/workflows folder to try the ControlNet.