vetkastar / fooocus

Image generation, Added: inpaint_strength loras_custom_urls

  • Public
  • 284.6K runs
  • L40S
  • GitHub
  • License

Input

string
Shift + Return to add a new line

Prompt for image generation

Default: ""

string
Shift + Return to add a new line

Negative prompt for image generation

Default: ""

string
Shift + Return to add a new line

Fooocus styles applied for image generation, separated by comma

Default: "Fooocus V2,Fooocus Enhance,Fooocus Sharp"

string

Performance selection

Default: "Speed"

string

The generated image's size

Default: "1152*896"

integer
(minimum: 1, maximum: 8)

How many image to generate

Default: 1

integer

Seed to generate image, -1 for random

Default: -1

boolean

Use default LoRAs

Default: true

string
Shift + Return to add a new line

Custom LoRAs URLs in the format 'url,weight' provide multiple seperated by ; (example 'url1,0.3;url2,0.1')

Default: ""

number
(minimum: 0, maximum: 30)

Default: 2

number
(minimum: 1, maximum: 30)

Default: 4

number
(minimum: 0.1, maximum: 1)

Default: 0.5

file

Input image for upscale or variation, keep None for not upscale or variation

string

An enumeration.

Default: "Disabled"

number

Only when Upscale (Custom)

Default: 0

string
Shift + Return to add a new line

Prompt for image generation

Default: ""

file

Input image for inpaint or outpaint, keep None for not inpaint or outpaint. Please noticed, `uov_input_image` has bigger priority is not None.

file

Input mask for inpaint

number
(minimum: 0, maximum: 1)

Inpaint Denoising Strength

Default: 0.5

string
Shift + Return to add a new line

Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' separated by comma

Default: ""

integer

Outpaint expansion distance from Left of the image

Default: 0

integer

Outpaint expansion distance from Top of the image

Default: 0

integer

Outpaint expansion distance from Right of the image

Default: 0

integer

Outpaint expansion distance from Bottom of the image

Default: 0

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

number
(minimum: 0.1, maximum: 3)

Positive ADM Guidance Scaler. Adjusts the influence of positive prompts in the ADM (Attention-Driven Mechanism) generation process.

Default: 1.5

number
(minimum: 0.1, maximum: 3)

Negative ADM Guidance Scaler. Adjusts the influence of negative prompts in the ADM generation process.

Default: 0.8

number
(minimum: 0, maximum: 1)

ADM Guidance End At Step. Determines at which stage of the generation process the ADM scaling stops being applied.

Default: 0.3

number
(minimum: 1, maximum: 30)

Adaptive CFG (Classifier-Free Guidance). Allows dynamically adjusting the strength of guidance during the generation process.

Default: 7

string
Shift + Return to add a new line

Sampler. Choose a specific sampler for the diffusion process, affecting the quality and style of generated images.

Default: "dpmpp_2m_sde_gpu"

string
Shift + Return to add a new line

Scheduler. Choose a specific scheduler for the diffusion process, affecting the quality and style of generated images.

Default: "karras"

integer
(minimum: -1, maximum: 200)

Forced Overwrite of Sampling Step. Override the default number of sampling steps, affecting detail and generation time.

Default: -1

number
(minimum: -1, maximum: 1)

Forced Overwrite of Refiner Switch Step. Override the moment of switching between the base model and the refiner model.

Default: -1

integer
(minimum: -1, maximum: 2048)

Forced Overwrite of Generating Width. Precisely set the desired width of the generated image.

Default: -1

integer
(minimum: -1, maximum: 2048)

Forced Overwrite of Generating Height. Precisely set the desired height of the generated image.

Default: -1

number
(minimum: -1, maximum: 1)

Forced Overwrite of Denoising Strength of "Vary". Precisely control the strength of variation when using the "Vary" function.

Default: -1

number
(minimum: -1, maximum: 1)

Forced Overwrite of Denoising Strength of "Upscale". Precise control of denoising strength when upscaling images.

Default: -1

boolean

Mixing Image Prompt and Vary/Upscale. Allow mixing the image prompt with vary/upscale functions for more complex effects.

Default: false

boolean

Mixing Image Prompt and Inpaint. Allow mixing the image prompt with inpaint functions for more complex effects.

Default: false

boolean

Debug Preprocessors. For debugging ControlNet preprocessing.

Default: false

boolean

Skip Preprocessors. Ability to skip ControlNet preprocessing, useful for development and testing.

Default: false

integer
(minimum: 1, maximum: 255)

Canny Low Threshold. For fine-tuning the Canny Edge Detection algorithm used in some ControlNet modes.

Default: 64

integer
(minimum: 1, maximum: 255)

Canny High Threshold. For fine-tuning the Canny Edge Detection algorithm used in some ControlNet modes.

Default: 128

number
(minimum: 0, maximum: 1)

Softness of ControlNet. Adjust the 'softness' of ControlNet's influence on the final image.

Default: 0.25

boolean

Debug Inpaint Preprocessing. For debugging and controlling preprocessing during inpainting.

Default: false

boolean

Disable initial latent in inpaint. For controlling preprocessing during inpainting.

Default: false

string
Shift + Return to add a new line

Inpaint Engine. Select a specific engine for inpainting, affecting the quality and style of results.

Default: "v2.6"

number
(minimum: 0, maximum: 1)

Inpaint Respective Field. Control the size of the influence area during inpainting.

Default: 1

boolean

Invert Mask. Invert the mask during inpainting, providing additional control over the process.

Default: false

integer
(minimum: -64, maximum: 64)

Mask Erode or Dilate. Erode or dilate the inpainting mask for fine-tuning the area of inpainting application.

Default: 0

Output

paths

output

seeds

[ "7569250874445648405" ]
Generated in

This example was created by a different version, vetkastar/fooocus:d555a800.

Run time and cost

This model costs approximately $0.060 to run on Replicate, or 16 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 62 seconds. The predict time for this model varies significantly based on the inputs.