I would like to introduce a new fork of the popular generative neural network Fooocus - Fooocus extend. I would like to point out that this fork can be run both locally on your computer and via Google Colab. Let's look at everything in order.
- Launch. If you will run it on a local machine, you can safely skip this item.
Before launching you are offered to choose the following settings Fooocus Profile - select which profile will be loaded at startup (default, anime, realistic). Fooocus Theme - select a theme - light or dark. Tunnel - select launch tunnel. When it happens that gradio stops working for some reason, you can choose cloudflared tunnel. However, the generation is a bit slower Memory patch - adds a few keys to the launch bar that allow you to optimise your graphics card if you are using the free version of Google Colab. If you have paid access, this item can be disabled GoogleDrive output - connects your GoogleDisk and save all of your generation directly to it.
- Select the resolution and aspect ratio of the generated image
This setting is located in the generation resolution selection tab. Here you can select the number of horizontal and vertical points, aspect ratio. To apply the settings, click the Set button and select this resolution from the list of proposed resolutions. Your resolution will be the last one.
- Wildcard
This module allows you not to memorise existing files with wildcard words, but to select them directly from a list of dictionaries. You can also select directly the item you need from the list.
- Image Batch (batch image processing)
In a nutshell, this module allows you to perform group upscaling of images, as well as create images based on a group of existing images using ImagePromt (ControlNet). To better understand this module, I advise you to conduct a few experiments yourself. But I want to note that its use allows you to use your images as references and change their style depending on the hint and the selected model. First, you need to create a zip archive with your images. The archive should not contain subfolders, the file names should not contain characters other than Latin. Upload the prepared archive to the "Upload zip file" window. Next, select the mode for changing the image resolution
- Not scale - the generation will not take into account the resolution of the original image
- to ORIGINAL - this means that immediately before generation the resolution equal to the resolution of the original image will be selected.
- to OUTPUT - in this case first the resolution of the original image will be changed to the generated one with preserving the proportions, and then the generation will start
Depending on what you want to do with your source images, select "Action" - Upscale or ImagePrompt. In the "Method" drop-down list, select the appropriate image processing method. In case of using ImagePrompt, you also need to select the "Stop at " and "Weight" parameters.
Clicking the Add to queue button will unpack the previously downloaded archive and put all jobs in the queue. The number of queued jobs will be indicated in brackets.
Start queue starts the queue for execution.
Clear queue - clears the queue of existing jobs, but does not delete the last loaded archive.
When the queue is finished, click on Output->Zip to generate an archive with all previously generated images from the output folder. The archive itself will appear in the Download a Zip file window. From there you can actually download it.
Clear Output - clears the output folder. It should be noted that it clears not only the folder for the current date, but the whole folder.
If the execution proceeds without errors or interruptions, the queue will be cleared automatically, and the downloaded archive will remain in memory. Otherwise, the queue will not be cleared.
- Prompt Batch (batch processing of prompts)
This module allows you to start generating several prompts in the queue for execution. To do this, you need to fill in the table In the prompt column enter a positive prompt, and in the negative prompt column enter a negative prompt respectively. Clicking on New row will add an empty row to the end of the table. Delete last row deletes the last row of the table. Start batch starts execution of the prompt queue for generation. You can also choose to add base positive and negative prompts. None - basic prompts will not be added. Prefix - base prompts will be added before prompts from the table. Suffix - base samples will be added after samples from the table.
- OneButtonPrompt - allows you to generate prompts, generate variations of your prompt and runs to generate images from them. I will not dwell on the detailed description of this module - I will only point out the main functions
In the ‘Main’ tab, you can select the preset of the prompt generation theme, as well as specify unchanging prompt prefixes and suffixes.
In the ‘Workflow assist’ tab you can generate 5 prompts, transfer each of them to the Fooocus prompt field and also to the Workflow field. If you select Workflow mode, it will generate not a new prompt, but variations of the prompt specified in the Workflow text field. The level of variation is selected by the engine located just below it
In this tab you can select the prompt syntax for different generation models, the length of the prompt, and enable the prompt generation enhancer.
This is where you can control the generation of negative prompts
In this tab you can start the image generation queue by generated samples. Before starting you need to specify the aspect ratio of the generated image (Size to generate), the number of generated prompts (Generation of prompts), and the models to use (Model to use).
- Civitai Helper
This extension allows you to download models for generation from the civitai website. To download a model you first need to specify your Civitai_API_key. In the Download Model section in the Civitai URL field you need to specify a link to the required model from the browser address bar and click Get Model Info by Civitai URL. After analysing the link you will be given information about the model. You will also be able to select the version of the model before downloading. This extension also allows you to find duplicates of downloaded models and check for updates. In addition, there is a group download option.
- Prompt Translate
Allows to translate both positive and negative prompts from any language into English, both before generation and directly during generation.
- Photopea - a free online analogue of Photoshop
- Remove Background
This extension is designed to add background removal, image/video processing, and blending to your projects. It provides precise background removal with support for multiple models, chroma keying, foreground adjustments, and advanced effects. Whether you’re working with images or videos, this extension provides everything you need to efficiently process visual content.
Key Features:
Multi-model background removal: Supports u2net, isnet-general-use, and other models.
Chroma keying support: Removes specific colors (green, blue, or red) from the background.
Blending modes: 10 powerful blending modes for image compositing.
Foreground adjustments: Scale, rotate, flip, and position elements precisely.
Video and image support: Easily process images and videos.
Multi-threaded processing: Efficiently process large files with streaming and GPU support. Customizable output formats: Export to PNG, JPEG, MP4, AVI, and more.
- OpenPoseEditor
This module allows you to create skeletons for subsequent image creation using OpenPose ControlNet. You can also create a skeleton from an existing image.
- OpenPose ControlNet
Allows you to create an image based on the pose skeleton.
- Recolor ControlNet
Allows you to colorize an image based on a black and white image.
- Scribble ControlNet
Allows you to color an image based on a sketch.
- X/Y/Z Plot
This extension allows you to make image grids to make it easier to see the difference between different generation settings and choose the best option. You can change the following parameters - Styles, Steps, Aspect Ratio, Seed, Sharpness, CFG (Guidance) Scale, Checkpoint, Refiner, Clip skip, Sampler, Scheduler, VAE, Refiner swap method, Softness of ControlNet, and also replace words in the prompt and change their order
- Save Image Grid for Each Batch
- Filename Prefix
This setting may be useful when working on several projects to separate one from another.
- Paths and Presets
Here you can change the paths to your models if they are already in other folders on the disk. If your Сheckponts or LORAs are in different folders, then the paths to them can be specified separated by commas (,). After changing the path, it is best to restart FooocusExtend.
Also here you can create a new preset based on the existing settings, and delete any of the existing ones, except for default and initial. The preset saves the following parameters: base model, refiner, refiner_switch, loras settings, cfg scale, sharpness, CFG Mimicking from TSNR, clip_skip, sampler, scheduler, Forced Overwrite of Sampling Step, Forced Overwrite of Refiner Switch Step, performance, image number, prompt negative, styles selections, aspect ratio, vae, inpaint_engine_version
Fooocus_extend. Base version 2.5.5 | |
Original Fooocus Colab |
All suggestions and questions can be voiced in the Telegram-group
Change log
v8.0.1
- Add Filename Prefix
- Add Paths and Presets Settings
V8
- Save Image Grid for Each Batch
- Add X/Y/Z Plot Extention
- Prompt Batch is now in the extensions panel
- Images Batch has become easier to manage while retaining its functionality
- Images Batch is now in the extensions panel
- Add support VAE and LyCoris in Civitai_Helper
- The extension Remove Background has been changed
- Add auto update on startup
V7
- Add OpenPoseEditor
- Fix bug in Image Batch Mode
- Added cell selection in Image Batch Mode
- Added selection of adding base prompts in Prompt Batch Mode
- Add OpenPose ControlNet
- Add Recolor ControlNet
- Add Scribble ControlNet
V6
- Add Prompt Batch Mode
- Rename Batch Mode to Images Batch Mode
- Fixed an incorrect start random number in Batch Mode
- Add visual management of Wildcard and Words/phrases of wildcard
- Added the ability to set any resolution for the generated image
- Add OneButtonPrompt
V5
- Model Downloader replaced with Civitai Helper
V4
- Add VAE download
- Add Batch mode
V3
- Add Photopea
- Add Remove Background
- Add Extention Panel
- All extensions are available in Extention Panel
V2
- Added a Model Downloader to Fooocus webui instead of colab
V1
- added the ability to download models from the civitai.com
- saving the generated image to Google Drive
- added prompt translator
- added a patch for the ability to work in free colab mode