CharafChnioune / MFLUX-WEBUI

13 stars 5 forks source link

MFLUX WebUI

MFLUX WebUI Logo

A powerful and user-friendly web interface for MFLUX, powered by Gradio.

Install with Pinokio License Python 3.11

Introduction

MFLUX WebUI is a comprehensive interface for the MFLUX image generation system. It provides an intuitive way to interact with MFLUX models, offering both simple and advanced options for image generation, as well as support for ControlNet and LoRA integration.

Features

Installation

Quick Start with Pinokio

Get started in seconds! Install and run MFLUX WebUI with just one click using Pinokio.

Manual Installation

If you prefer to install manually, follow these steps:

  1. Clone this repository:

    git clone https://github.com/yourusername/mflux-webui.git
    cd mflux-webui
  2. Create and activate a conda environment:

    conda create -n mflux python=3.11
    conda activate mflux
  3. Install the required packages:

    pip install -r requirements.txt

Usage

Running the WebUI

To run the WebUI:

python webui.py

Access the interface in your web browser at http://localhost:7860.

Interface Overview

The MFLUX WebUI consists of four main tabs:

  1. MFLUX Easy: A simplified interface for quick image generation.
  2. Advanced Generate: Provides full control over image generation parameters.
  3. ControlNet: Enables guided image generation using a control image.
  4. Models: Allows for model management, including downloading, adding, and quantizing models.

Detailed Feature Guide

MFLUX Easy

The MFLUX Easy tab provides a simplified interface for quick image generation:

Advanced Generate

The Advanced Generate tab offers more control over the image generation process:

ControlNet

The ControlNet tab allows for guided image generation:

Note: ControlNet requires a one-time download of ~3.58GB of weights from Huggingface.

Models

The Models tab enables you to manage models:

LoRA Integration

LoRA (Low-Rank Adaptation) allows for fine-tuned models to be used in image generation:

  1. Place your LoRA files (.safetensors) in the lora directory.
  2. Select the desired LoRA file(s) from the dropdown menu in the WebUI.
  3. Use the LoRA download functionality in the Models tab to easily add new LoRA models.

Ollama Integration

MFLUX WebUI now integrates Ollama for prompt enhancement:

Contributing

We welcome contributions to MFLUX WebUI! If you have suggestions for improvements or encounter any issues, please feel free to:

  1. Open an issue
  2. Submit a pull request

Please ensure that your code adheres to the project's coding standards and includes appropriate tests.

License

This project is licensed under the Apache License, Version 2.0.

FLUX Models License

The FLUX models (black-forest-labs/FLUX.1) used in this project are subject to their own license terms. Please refer to the black-forest-labs/FLUX.1 license for more information on the usage and distribution of these models.


Get started with MFLUX WebUI in seconds using Pinokio - the easiest way to install and run AI applications!