Readme
Added: inpaint_strength loras_custom_urls Based on v0.4.0.2: https://github.com/mrhan1993/Fooocus-API
Image generation, Added: inpaint_strength loras_custom_urls
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run vetkastar/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vetkastar/fooocus:7c662db7ec7f06095f494c152e3de69084249385e12c2224bdcb6178a650d7c8",
{
input: {
prompt: "woman, illustration, cartoon, soothing tones, calm colors, flowers",
cn_type1: "ImagePrompt",
cn_type2: "ImagePrompt",
cn_type3: "ImagePrompt",
cn_type4: "ImagePrompt",
sharpness: 2,
image_seed: -1,
uov_method: "Disabled",
adaptive_cfg: 7,
image_number: 1,
sampler_name: "dpmpp_2m_sde_gpu",
adm_scaler_end: 0.3,
guidance_scale: 7,
inpaint_engine: "v2.6",
overwrite_step: -1,
refiner_switch: 0.5,
scheduler_name: "karras",
negative_prompt: "",
overwrite_width: -1,
inpaint_strength: 0.5,
overwrite_height: -1,
overwrite_switch: -1,
style_selections: "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
loras_custom_urls: "",
uov_upscale_value: 0,
use_default_loras: true,
adm_scaler_negative: 0.8,
adm_scaler_positive: 1.5,
canny_low_threshold: 64,
controlnet_softness: 0.25,
outpaint_selections: "",
canny_high_threshold: 128,
invert_mask_checkbox: false,
outpaint_distance_top: 0,
performance_selection: "Speed",
outpaint_distance_left: 0,
aspect_ratios_selection: "1024*1024",
inpaint_erode_or_dilate: 0,
outpaint_distance_right: 0,
overwrite_vary_strength: -1,
inpaint_respective_field: 1,
outpaint_distance_bottom: 0,
skipping_cn_preprocessor: false,
debugging_cn_preprocessor: false,
inpaint_additional_prompt: "",
overwrite_upscale_strength: -1,
debugging_inpaint_preprocessor: false,
inpaint_disable_initial_latent: false,
mixing_image_prompt_and_inpaint: false,
mixing_image_prompt_and_vary_upscale: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run vetkastar/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vetkastar/fooocus:7c662db7ec7f06095f494c152e3de69084249385e12c2224bdcb6178a650d7c8",
input={
"prompt": "woman, illustration, cartoon, soothing tones, calm colors, flowers",
"cn_type1": "ImagePrompt",
"cn_type2": "ImagePrompt",
"cn_type3": "ImagePrompt",
"cn_type4": "ImagePrompt",
"sharpness": 2,
"image_seed": -1,
"uov_method": "Disabled",
"adaptive_cfg": 7,
"image_number": 1,
"sampler_name": "dpmpp_2m_sde_gpu",
"adm_scaler_end": 0.3,
"guidance_scale": 7,
"inpaint_engine": "v2.6",
"overwrite_step": -1,
"refiner_switch": 0.5,
"scheduler_name": "karras",
"negative_prompt": "",
"overwrite_width": -1,
"inpaint_strength": 0.5,
"overwrite_height": -1,
"overwrite_switch": -1,
"style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"loras_custom_urls": "",
"uov_upscale_value": 0,
"use_default_loras": True,
"adm_scaler_negative": 0.8,
"adm_scaler_positive": 1.5,
"canny_low_threshold": 64,
"controlnet_softness": 0.25,
"outpaint_selections": "",
"canny_high_threshold": 128,
"invert_mask_checkbox": False,
"outpaint_distance_top": 0,
"performance_selection": "Speed",
"outpaint_distance_left": 0,
"aspect_ratios_selection": "1024*1024",
"inpaint_erode_or_dilate": 0,
"outpaint_distance_right": 0,
"overwrite_vary_strength": -1,
"inpaint_respective_field": 1,
"outpaint_distance_bottom": 0,
"skipping_cn_preprocessor": False,
"debugging_cn_preprocessor": False,
"inpaint_additional_prompt": "",
"overwrite_upscale_strength": -1,
"debugging_inpaint_preprocessor": False,
"inpaint_disable_initial_latent": False,
"mixing_image_prompt_and_inpaint": False,
"mixing_image_prompt_and_vary_upscale": False
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run vetkastar/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "7c662db7ec7f06095f494c152e3de69084249385e12c2224bdcb6178a650d7c8",
"input": {
"prompt": "woman, illustration, cartoon, soothing tones, calm colors, flowers",
"cn_type1": "ImagePrompt",
"cn_type2": "ImagePrompt",
"cn_type3": "ImagePrompt",
"cn_type4": "ImagePrompt",
"sharpness": 2,
"image_seed": -1,
"uov_method": "Disabled",
"adaptive_cfg": 7,
"image_number": 1,
"sampler_name": "dpmpp_2m_sde_gpu",
"adm_scaler_end": 0.3,
"guidance_scale": 7,
"inpaint_engine": "v2.6",
"overwrite_step": -1,
"refiner_switch": 0.5,
"scheduler_name": "karras",
"negative_prompt": "",
"overwrite_width": -1,
"inpaint_strength": 0.5,
"overwrite_height": -1,
"overwrite_switch": -1,
"style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"loras_custom_urls": "",
"uov_upscale_value": 0,
"use_default_loras": true,
"adm_scaler_negative": 0.8,
"adm_scaler_positive": 1.5,
"canny_low_threshold": 64,
"controlnet_softness": 0.25,
"outpaint_selections": "",
"canny_high_threshold": 128,
"invert_mask_checkbox": false,
"outpaint_distance_top": 0,
"performance_selection": "Speed",
"outpaint_distance_left": 0,
"aspect_ratios_selection": "1024*1024",
"inpaint_erode_or_dilate": 0,
"outpaint_distance_right": 0,
"overwrite_vary_strength": -1,
"inpaint_respective_field": 1,
"outpaint_distance_bottom": 0,
"skipping_cn_preprocessor": false,
"debugging_cn_preprocessor": false,
"inpaint_additional_prompt": "",
"overwrite_upscale_strength": -1,
"debugging_inpaint_preprocessor": false,
"inpaint_disable_initial_latent": false,
"mixing_image_prompt_and_inpaint": false,
"mixing_image_prompt_and_vary_upscale": false
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2024-04-12T09:35:11.070749Z",
"created_at": "2024-04-12T09:35:00.070000Z",
"data_removed": false,
"error": null,
"id": "mc7kdmg9wsrgj0cet6mvzevgr4",
"input": {
"prompt": "woman, illustration, cartoon, soothing tones, calm colors, flowers",
"cn_type1": "ImagePrompt",
"cn_type2": "ImagePrompt",
"cn_type3": "ImagePrompt",
"cn_type4": "ImagePrompt",
"sharpness": 2,
"image_seed": -1,
"uov_method": "Disabled",
"image_number": 1,
"guidance_scale": 7,
"refiner_switch": 0.5,
"negative_prompt": "",
"inpaint_strength": 0.5,
"style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"loras_custom_urls": "",
"uov_upscale_value": 0,
"use_default_loras": true,
"outpaint_selections": "",
"outpaint_distance_top": 0,
"performance_selection": "Speed",
"outpaint_distance_left": 0,
"aspect_ratios_selection": "1024*1024",
"outpaint_distance_right": 0,
"outpaint_distance_bottom": 0,
"inpaint_additional_prompt": ""
},
"logs": "[Predictor Predict] Params: {'prompt': 'woman, illustration, cartoon, soothing tones, calm colors, flowers', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1024*1024', 'image_number': 1, 'image_seed': -1, 'sharpness': 2.0, 'guidance_scale': 7.0, 'base_model_name': 'juggernautXL_v8Rundiffusion.safetensors', 'refiner_model_name': 'None', 'refiner_switch': 0.5, 'loras': [['sd_xl_offset_example-lora_1.0.safetensors', 0.1]], 'uov_input_image': None, 'uov_method': 'Disabled', 'upscale_value': 0.0, 'outpaint_selections': [], 'outpaint_distance_left': 0, 'outpaint_distance_right': 0, 'outpaint_distance_top': 0, 'outpaint_distance_bottom': 0, 'inpaint_input_image': None, 'inpaint_additional_prompt': '', 'image_prompts': [], 'save_extension': 'png', 'require_base64': False, 'advanced_params': AdvancedParams(disable_preview=False, disable_intermediate_results=False, disable_seed_increment=False, adm_scaler_positive=1.5, adm_scaler_negative=0.8, adm_scaler_end=0.3, adaptive_cfg=7.0, sampler_name='dpmpp_2m_sde_gpu', scheduler_name='karras', overwrite_step=-1, overwrite_switch=-1, overwrite_width=-1, overwrite_height=-1, overwrite_vary_strength=-1, overwrite_upscale_strength=-1, mixing_image_prompt_and_vary_upscale=False, mixing_image_prompt_and_inpaint=False, debugging_cn_preprocessor=False, skipping_cn_preprocessor=False, canny_low_threshold=64, canny_high_threshold=128, refiner_swap_method='joint', controlnet_softness=0.25, freeu_enabled=False, freeu_b1=1.01, freeu_b2=1.02, freeu_s1=0.99, freeu_s2=0.95, debugging_inpaint_preprocessor=False, inpaint_disable_initial_latent=False, inpaint_engine='v2.6', inpaint_strength=0.5, inpaint_respective_field=1.0, inpaint_mask_upload_checkbox=False, invert_mask_checkbox=False, inpaint_erode_or_dilate=0)}\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=3d589dae-0a96-4347-b017-b064ff961474\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=3d589dae-0a96-4347-b017-b064ff961474\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 2.0\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Seed = 7569250874445648405\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Steps = 30 - 15\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Prompt Expansion] woman, illustration, cartoon, soothing tones, calm colors, flowers, detailed, dramatic, background, complimentary atmosphere, romantic, full color, beautiful, sharp focus, very inspirational, thought, perfect composition, dynamic light, epic, cinematic, winning, illuminated, amazing, creative, elegant, intricate, loving, symmetry, brave, awesome, scenic, highly determined, passionate\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (1024, 1024)\u001b[0m\n\u001b[32m[2024-04-12 09:35:00] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 0.69 seconds\u001b[0m\n[Sampler] refiner_swap_method = joint\n[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:06, 4.39it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.38it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.39it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.36it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.36it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.34it/s]\n 23%|██▎ | 7/30 [00:01<00:05, 4.35it/s]\n 27%|██▋ | 8/30 [00:01<00:05, 4.35it/s]\n 30%|███ | 9/30 [00:02<00:04, 4.35it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.35it/s]\n 37%|███▋ | 11/30 [00:02<00:04, 4.35it/s]\n 40%|████ | 12/30 [00:02<00:04, 4.35it/s]\n 43%|████▎ | 13/30 [00:02<00:03, 4.36it/s]\n 47%|████▋ | 14/30 [00:03<00:03, 4.35it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.35it/s]\n 53%|█████▎ | 16/30 [00:03<00:03, 4.35it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 4.35it/s]\n 60%|██████ | 18/30 [00:04<00:02, 4.34it/s]\n 63%|██████▎ | 19/30 [00:04<00:02, 4.35it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.34it/s]\n 70%|███████ | 21/30 [00:04<00:02, 4.35it/s]\n 73%|███████▎ | 22/30 [00:05<00:01, 4.35it/s]\n 77%|███████▋ | 23/30 [00:05<00:01, 4.35it/s]\n 80%|████████ | 24/30 [00:05<00:01, 4.35it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.35it/s]\n 87%|████████▋ | 26/30 [00:05<00:00, 4.36it/s]\n 90%|█████████ | 27/30 [00:06<00:00, 4.36it/s]\n 93%|█████████▎| 28/30 [00:06<00:00, 4.36it/s]\n 97%|█████████▋| 29/30 [00:06<00:00, 4.37it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.39it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.36it/s]\n\u001b[32m[2024-04-12 09:35:07] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 7.12 seconds\u001b[0m\n\u001b[32m[2024-04-12 09:35:09] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=3d589dae-0a96-4347-b017-b064ff961474\u001b[0m\n[Predictor Predict] Finished with 1 images",
"metrics": {
"predict_time": 10.964337,
"total_time": 11.000749
},
"output": {
"paths": [
"https://replicate.delivery/pbxt/9lfWVEcL5U2rTSBeEkl0b6Em1BaPIfHsz4wdSrfcEV93ksmKB/54ac8e55-bd01-480b-8727-553c89222020.png"
],
"seeds": [
"7569250874445648405"
]
},
"started_at": "2024-04-12T09:35:00.106412Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/mc7kdmg9wsrgj0cet6mvzevgr4",
"cancel": "https://api.replicate.com/v1/predictions/mc7kdmg9wsrgj0cet6mvzevgr4/cancel"
},
"version": "d555a800025fe1c171e386d299b1de635f8d8fc3f1ade06a14faf5154eba50f3"
}
[Predictor Predict] Params: {'prompt': 'woman, illustration, cartoon, soothing tones, calm colors, flowers', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1024*1024', 'image_number': 1, 'image_seed': -1, 'sharpness': 2.0, 'guidance_scale': 7.0, 'base_model_name': 'juggernautXL_v8Rundiffusion.safetensors', 'refiner_model_name': 'None', 'refiner_switch': 0.5, 'loras': [['sd_xl_offset_example-lora_1.0.safetensors', 0.1]], 'uov_input_image': None, 'uov_method': 'Disabled', 'upscale_value': 0.0, 'outpaint_selections': [], 'outpaint_distance_left': 0, 'outpaint_distance_right': 0, 'outpaint_distance_top': 0, 'outpaint_distance_bottom': 0, 'inpaint_input_image': None, 'inpaint_additional_prompt': '', 'image_prompts': [], 'save_extension': 'png', 'require_base64': False, 'advanced_params': AdvancedParams(disable_preview=False, disable_intermediate_results=False, disable_seed_increment=False, adm_scaler_positive=1.5, adm_scaler_negative=0.8, adm_scaler_end=0.3, adaptive_cfg=7.0, sampler_name='dpmpp_2m_sde_gpu', scheduler_name='karras', overwrite_step=-1, overwrite_switch=-1, overwrite_width=-1, overwrite_height=-1, overwrite_vary_strength=-1, overwrite_upscale_strength=-1, mixing_image_prompt_and_vary_upscale=False, mixing_image_prompt_and_inpaint=False, debugging_cn_preprocessor=False, skipping_cn_preprocessor=False, canny_low_threshold=64, canny_high_threshold=128, refiner_swap_method='joint', controlnet_softness=0.25, freeu_enabled=False, freeu_b1=1.01, freeu_b2=1.02, freeu_s1=0.99, freeu_s2=0.95, debugging_inpaint_preprocessor=False, inpaint_disable_initial_latent=False, inpaint_engine='v2.6', inpaint_strength=0.5, inpaint_respective_field=1.0, inpaint_mask_upload_checkbox=False, invert_mask_checkbox=False, inpaint_erode_or_dilate=0)}
[2024-04-12 09:35:00] INFO [Task Queue] Waiting for task finished, job_id=3d589dae-0a96-4347-b017-b064ff961474
[2024-04-12 09:35:00] INFO [Task Queue] Task queue start task, job_id=3d589dae-0a96-4347-b017-b064ff961474
[2024-04-12 09:35:00] INFO [Parameters] Adaptive CFG = 7.0
[2024-04-12 09:35:00] INFO [Parameters] Sharpness = 2.0
[2024-04-12 09:35:00] INFO [Parameters] ControlNet Softness = 0.25
[2024-04-12 09:35:00] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3
[2024-04-12 09:35:00] INFO [Parameters] CFG = 7.0
[2024-04-12 09:35:00] INFO [Parameters] Seed = 7569250874445648405
[2024-04-12 09:35:00] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras
[2024-04-12 09:35:00] INFO [Parameters] Steps = 30 - 15
[2024-04-12 09:35:00] INFO [Fooocus] Initializing ...
[2024-04-12 09:35:00] INFO [Fooocus] Loading models ...
Refiner unloaded.
[2024-04-12 09:35:00] INFO [Fooocus] Processing prompts ...
[2024-04-12 09:35:00] INFO [Fooocus] Preparing Fooocus text #1 ...
[2024-04-12 09:35:00] INFO [Prompt Expansion] woman, illustration, cartoon, soothing tones, calm colors, flowers, detailed, dramatic, background, complimentary atmosphere, romantic, full color, beautiful, sharp focus, very inspirational, thought, perfect composition, dynamic light, epic, cinematic, winning, illuminated, amazing, creative, elegant, intricate, loving, symmetry, brave, awesome, scenic, highly determined, passionate
[2024-04-12 09:35:00] INFO [Fooocus] Encoding positive #1 ...
[2024-04-12 09:35:00] INFO [Fooocus] Encoding negative #1 ...
[2024-04-12 09:35:00] INFO [Parameters] Denoising Strength = 1.0
[2024-04-12 09:35:00] INFO [Parameters] Initial Latent shape: Image Space (1024, 1024)
[2024-04-12 09:35:00] INFO [Fooocus] Preparation time: 0.69 seconds
[Sampler] refiner_swap_method = joint
[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:06, 4.39it/s]
7%|▋ | 2/30 [00:00<00:06, 4.38it/s]
10%|█ | 3/30 [00:00<00:06, 4.39it/s]
13%|█▎ | 4/30 [00:00<00:05, 4.36it/s]
17%|█▋ | 5/30 [00:01<00:05, 4.36it/s]
20%|██ | 6/30 [00:01<00:05, 4.34it/s]
23%|██▎ | 7/30 [00:01<00:05, 4.35it/s]
27%|██▋ | 8/30 [00:01<00:05, 4.35it/s]
30%|███ | 9/30 [00:02<00:04, 4.35it/s]
33%|███▎ | 10/30 [00:02<00:04, 4.35it/s]
37%|███▋ | 11/30 [00:02<00:04, 4.35it/s]
40%|████ | 12/30 [00:02<00:04, 4.35it/s]
43%|████▎ | 13/30 [00:02<00:03, 4.36it/s]
47%|████▋ | 14/30 [00:03<00:03, 4.35it/s]
50%|█████ | 15/30 [00:03<00:03, 4.35it/s]
53%|█████▎ | 16/30 [00:03<00:03, 4.35it/s]
57%|█████▋ | 17/30 [00:03<00:02, 4.35it/s]
60%|██████ | 18/30 [00:04<00:02, 4.34it/s]
63%|██████▎ | 19/30 [00:04<00:02, 4.35it/s]
67%|██████▋ | 20/30 [00:04<00:02, 4.34it/s]
70%|███████ | 21/30 [00:04<00:02, 4.35it/s]
73%|███████▎ | 22/30 [00:05<00:01, 4.35it/s]
77%|███████▋ | 23/30 [00:05<00:01, 4.35it/s]
80%|████████ | 24/30 [00:05<00:01, 4.35it/s]
83%|████████▎ | 25/30 [00:05<00:01, 4.35it/s]
87%|████████▋ | 26/30 [00:05<00:00, 4.36it/s]
90%|█████████ | 27/30 [00:06<00:00, 4.36it/s]
93%|█████████▎| 28/30 [00:06<00:00, 4.36it/s]
97%|█████████▋| 29/30 [00:06<00:00, 4.37it/s]
100%|██████████| 30/30 [00:06<00:00, 4.39it/s]
100%|██████████| 30/30 [00:06<00:00, 4.36it/s]
[2024-04-12 09:35:07] INFO [Fooocus] Generating and saving time: 7.12 seconds
[2024-04-12 09:35:09] INFO [Task Queue] Finish task, job_id=3d589dae-0a96-4347-b017-b064ff961474
[Predictor Predict] Finished with 1 images
This example was created by a different version, vetkastar/fooocus:d555a800.
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.
Added: inpaint_strength loras_custom_urls Based on v0.4.0.2: https://github.com/mrhan1993/Fooocus-API
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
[Predictor Predict] Params: {'prompt': 'woman, illustration, cartoon, soothing tones, calm colors, flowers', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1024*1024', 'image_number': 1, 'image_seed': -1, 'sharpness': 2.0, 'guidance_scale': 7.0, 'base_model_name': 'juggernautXL_v8Rundiffusion.safetensors', 'refiner_model_name': 'None', 'refiner_switch': 0.5, 'loras': [['sd_xl_offset_example-lora_1.0.safetensors', 0.1]], 'uov_input_image': None, 'uov_method': 'Disabled', 'upscale_value': 0.0, 'outpaint_selections': [], 'outpaint_distance_left': 0, 'outpaint_distance_right': 0, 'outpaint_distance_top': 0, 'outpaint_distance_bottom': 0, 'inpaint_input_image': None, 'inpaint_additional_prompt': '', 'image_prompts': [], 'save_extension': 'png', 'require_base64': False, 'advanced_params': AdvancedParams(disable_preview=False, disable_intermediate_results=False, disable_seed_increment=False, adm_scaler_positive=1.5, adm_scaler_negative=0.8, adm_scaler_end=0.3, adaptive_cfg=7.0, sampler_name='dpmpp_2m_sde_gpu', scheduler_name='karras', overwrite_step=-1, overwrite_switch=-1, overwrite_width=-1, overwrite_height=-1, overwrite_vary_strength=-1, overwrite_upscale_strength=-1, mixing_image_prompt_and_vary_upscale=False, mixing_image_prompt_and_inpaint=False, debugging_cn_preprocessor=False, skipping_cn_preprocessor=False, canny_low_threshold=64, canny_high_threshold=128, refiner_swap_method='joint', controlnet_softness=0.25, freeu_enabled=False, freeu_b1=1.01, freeu_b2=1.02, freeu_s1=0.99, freeu_s2=0.95, debugging_inpaint_preprocessor=False, inpaint_disable_initial_latent=False, inpaint_engine='v2.6', inpaint_strength=0.5, inpaint_respective_field=1.0, inpaint_mask_upload_checkbox=False, invert_mask_checkbox=False, inpaint_erode_or_dilate=0)}
[2024-04-12 09:35:00] INFO [Task Queue] Waiting for task finished, job_id=3d589dae-0a96-4347-b017-b064ff961474
[2024-04-12 09:35:00] INFO [Task Queue] Task queue start task, job_id=3d589dae-0a96-4347-b017-b064ff961474
[2024-04-12 09:35:00] INFO [Parameters] Adaptive CFG = 7.0
[2024-04-12 09:35:00] INFO [Parameters] Sharpness = 2.0
[2024-04-12 09:35:00] INFO [Parameters] ControlNet Softness = 0.25
[2024-04-12 09:35:00] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3
[2024-04-12 09:35:00] INFO [Parameters] CFG = 7.0
[2024-04-12 09:35:00] INFO [Parameters] Seed = 7569250874445648405
[2024-04-12 09:35:00] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras
[2024-04-12 09:35:00] INFO [Parameters] Steps = 30 - 15
[2024-04-12 09:35:00] INFO [Fooocus] Initializing ...
[2024-04-12 09:35:00] INFO [Fooocus] Loading models ...
Refiner unloaded.
[2024-04-12 09:35:00] INFO [Fooocus] Processing prompts ...
[2024-04-12 09:35:00] INFO [Fooocus] Preparing Fooocus text #1 ...
[2024-04-12 09:35:00] INFO [Prompt Expansion] woman, illustration, cartoon, soothing tones, calm colors, flowers, detailed, dramatic, background, complimentary atmosphere, romantic, full color, beautiful, sharp focus, very inspirational, thought, perfect composition, dynamic light, epic, cinematic, winning, illuminated, amazing, creative, elegant, intricate, loving, symmetry, brave, awesome, scenic, highly determined, passionate
[2024-04-12 09:35:00] INFO [Fooocus] Encoding positive #1 ...
[2024-04-12 09:35:00] INFO [Fooocus] Encoding negative #1 ...
[2024-04-12 09:35:00] INFO [Parameters] Denoising Strength = 1.0
[2024-04-12 09:35:00] INFO [Parameters] Initial Latent shape: Image Space (1024, 1024)
[2024-04-12 09:35:00] INFO [Fooocus] Preparation time: 0.69 seconds
[Sampler] refiner_swap_method = joint
[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:06, 4.39it/s]
7%|▋ | 2/30 [00:00<00:06, 4.38it/s]
10%|█ | 3/30 [00:00<00:06, 4.39it/s]
13%|█▎ | 4/30 [00:00<00:05, 4.36it/s]
17%|█▋ | 5/30 [00:01<00:05, 4.36it/s]
20%|██ | 6/30 [00:01<00:05, 4.34it/s]
23%|██▎ | 7/30 [00:01<00:05, 4.35it/s]
27%|██▋ | 8/30 [00:01<00:05, 4.35it/s]
30%|███ | 9/30 [00:02<00:04, 4.35it/s]
33%|███▎ | 10/30 [00:02<00:04, 4.35it/s]
37%|███▋ | 11/30 [00:02<00:04, 4.35it/s]
40%|████ | 12/30 [00:02<00:04, 4.35it/s]
43%|████▎ | 13/30 [00:02<00:03, 4.36it/s]
47%|████▋ | 14/30 [00:03<00:03, 4.35it/s]
50%|█████ | 15/30 [00:03<00:03, 4.35it/s]
53%|█████▎ | 16/30 [00:03<00:03, 4.35it/s]
57%|█████▋ | 17/30 [00:03<00:02, 4.35it/s]
60%|██████ | 18/30 [00:04<00:02, 4.34it/s]
63%|██████▎ | 19/30 [00:04<00:02, 4.35it/s]
67%|██████▋ | 20/30 [00:04<00:02, 4.34it/s]
70%|███████ | 21/30 [00:04<00:02, 4.35it/s]
73%|███████▎ | 22/30 [00:05<00:01, 4.35it/s]
77%|███████▋ | 23/30 [00:05<00:01, 4.35it/s]
80%|████████ | 24/30 [00:05<00:01, 4.35it/s]
83%|████████▎ | 25/30 [00:05<00:01, 4.35it/s]
87%|████████▋ | 26/30 [00:05<00:00, 4.36it/s]
90%|█████████ | 27/30 [00:06<00:00, 4.36it/s]
93%|█████████▎| 28/30 [00:06<00:00, 4.36it/s]
97%|█████████▋| 29/30 [00:06<00:00, 4.37it/s]
100%|██████████| 30/30 [00:06<00:00, 4.39it/s]
100%|██████████| 30/30 [00:06<00:00, 4.36it/s]
[2024-04-12 09:35:07] INFO [Fooocus] Generating and saving time: 7.12 seconds
[2024-04-12 09:35:09] INFO [Task Queue] Finish task, job_id=3d589dae-0a96-4347-b017-b064ff961474
[Predictor Predict] Finished with 1 images