vetkastar/fooocus 📝🖼️🔢❓✓ → ❓
About
Image generation, Added: inpaint_strength loras_custom_urls
Example Output
Prompt:
"woman, illustration, cartoon, soothing tones, calm colors, flowers"
Output
Performance Metrics
10.96s
Prediction Time
11.00s
Total Time
All Input Parameters
{
"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": ""
}
Input Parameters
- prompt
- Prompt for image generation
- cn_img1
- Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
- cn_img2
- Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
- cn_img3
- Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
- cn_img4
- Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
- cn_stop1
- Stop at for image prompt, None for default value
- cn_stop2
- Stop at for image prompt, None for default value
- cn_stop3
- Stop at for image prompt, None for default value
- cn_stop4
- Stop at for image prompt, None for default value
- cn_type1
- ControlNet type for image prompt
- cn_type2
- ControlNet type for image prompt
- cn_type3
- ControlNet type for image prompt
- cn_type4
- ControlNet type for image prompt
- sharpness
- cn_weight1
- Weight for image prompt, None for default value
- cn_weight2
- Weight for image prompt, None for default value
- cn_weight3
- Weight for image prompt, None for default value
- cn_weight4
- Weight for image prompt, None for default value
- image_seed
- Seed to generate image, -1 for random
- uov_method
- adaptive_cfg
- Adaptive CFG (Classifier-Free Guidance). Allows dynamically adjusting the strength of guidance during the generation process.
- image_number
- How many image to generate
- sampler_name
- Sampler. Choose a specific sampler for the diffusion process, affecting the quality and style of generated images.
- adm_scaler_end
- ADM Guidance End At Step. Determines at which stage of the generation process the ADM scaling stops being applied.
- guidance_scale
- inpaint_engine
- Inpaint Engine. Select a specific engine for inpainting, affecting the quality and style of results.
- overwrite_step
- Forced Overwrite of Sampling Step. Override the default number of sampling steps, affecting detail and generation time.
- refiner_switch
- scheduler_name
- Scheduler. Choose a specific scheduler for the diffusion process, affecting the quality and style of generated images.
- negative_prompt
- Negative prompt for image generation
- overwrite_width
- Forced Overwrite of Generating Width. Precisely set the desired width of the generated image.
- uov_input_image
- Input image for upscale or variation, keep None for not upscale or variation
- inpaint_strength
- Inpaint Denoising Strength
- overwrite_height
- Forced Overwrite of Generating Height. Precisely set the desired height of the generated image.
- overwrite_switch
- Forced Overwrite of Refiner Switch Step. Override the moment of switching between the base model and the refiner model.
- style_selections
- Fooocus styles applied for image generation, separated by comma
- loras_custom_urls
- Custom LoRAs URLs in the format 'url,weight' provide multiple seperated by ; (example 'url1,0.3;url2,0.1')
- uov_upscale_value
- Only when Upscale (Custom)
- use_default_loras
- Use default LoRAs
- inpaint_input_mask
- Input mask for inpaint
- adm_scaler_negative
- Negative ADM Guidance Scaler. Adjusts the influence of negative prompts in the ADM generation process.
- adm_scaler_positive
- Positive ADM Guidance Scaler. Adjusts the influence of positive prompts in the ADM (Attention-Driven Mechanism) generation process.
- canny_low_threshold
- Canny Low Threshold. For fine-tuning the Canny Edge Detection algorithm used in some ControlNet modes.
- controlnet_softness
- Softness of ControlNet. Adjust the 'softness' of ControlNet's influence on the final image.
- inpaint_input_image
- Input image for inpaint or outpaint, keep None for not inpaint or outpaint. Please noticed, `uov_input_image` has bigger priority is not None.
- outpaint_selections
- Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' separated by comma
- canny_high_threshold
- Canny High Threshold. For fine-tuning the Canny Edge Detection algorithm used in some ControlNet modes.
- invert_mask_checkbox
- Invert Mask. Invert the mask during inpainting, providing additional control over the process.
- outpaint_distance_top
- Outpaint expansion distance from Top of the image
- performance_selection
- Performance selection
- outpaint_distance_left
- Outpaint expansion distance from Left of the image
- aspect_ratios_selection
- The generated image's size
- inpaint_erode_or_dilate
- Mask Erode or Dilate. Erode or dilate the inpainting mask for fine-tuning the area of inpainting application.
- outpaint_distance_right
- Outpaint expansion distance from Right of the image
- overwrite_vary_strength
- Forced Overwrite of Denoising Strength of "Vary". Precisely control the strength of variation when using the "Vary" function.
- inpaint_respective_field
- Inpaint Respective Field. Control the size of the influence area during inpainting.
- outpaint_distance_bottom
- Outpaint expansion distance from Bottom of the image
- skipping_cn_preprocessor
- Skip Preprocessors. Ability to skip ControlNet preprocessing, useful for development and testing.
- debugging_cn_preprocessor
- Debug Preprocessors. For debugging ControlNet preprocessing.
- inpaint_additional_prompt
- Prompt for image generation
- overwrite_upscale_strength
- Forced Overwrite of Denoising Strength of "Upscale". Precise control of denoising strength when upscaling images.
- debugging_inpaint_preprocessor
- Debug Inpaint Preprocessing. For debugging and controlling preprocessing during inpainting.
- inpaint_disable_initial_latent
- Disable initial latent in inpaint. For controlling preprocessing during inpainting.
- mixing_image_prompt_and_inpaint
- Mixing Image Prompt and Inpaint. Allow mixing the image prompt with inpaint functions for more complex effects.
- mixing_image_prompt_and_vary_upscale
- Mixing Image Prompt and Vary/Upscale. Allow mixing the image prompt with vary/upscale functions for more complex effects.
Output Schema
- paths
- Paths
- seeds
- Seeds
Example Execution 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)}
[32m[2024-04-12 09:35:00] INFO [0m [34m[Task Queue] Waiting for task finished, job_id=3d589dae-0a96-4347-b017-b064ff961474[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Task Queue] Task queue start task, job_id=3d589dae-0a96-4347-b017-b064ff961474[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Adaptive CFG = 7.0[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Sharpness = 2.0[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] ControlNet Softness = 0.25[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] CFG = 7.0[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Seed = 7569250874445648405[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Steps = 30 - 15[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Initializing ...[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Loading models ...[0m
Refiner unloaded.
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Processing prompts ...[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Preparing Fooocus text #1 ...[0m
[32m[2024-04-12 09:35:00] INFO [0m [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[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Encoding positive #1 ...[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Encoding negative #1 ...[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Denoising Strength = 1.0[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Parameters] Initial Latent shape: Image Space (1024, 1024)[0m
[32m[2024-04-12 09:35:00] INFO [0m [34m[Fooocus] Preparation time: 0.69 seconds[0m
[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]
[32m[2024-04-12 09:35:07] INFO [0m [34m[Fooocus] Generating and saving time: 7.12 seconds[0m
[32m[2024-04-12 09:35:09] INFO [0m [34m[Task Queue] Finish task, job_id=3d589dae-0a96-4347-b017-b064ff961474[0m
[Predictor Predict] Finished with 1 images
Version Details
- Version ID
7c662db7ec7f06095f494c152e3de69084249385e12c2224bdcb6178a650d7c8- Version Created
- January 13, 2025