konieshadow/fooocus-api 📝🖼️🔢❓ → 🖼️
About
Third party Fooocus replicate model

Example Output
Prompt:
"forest elf"
Output

Performance Metrics
13.43s
Prediction Time
146.37s
Total Time
All Input Parameters
{ "prompt": "forest elf", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 50403806253646856, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 4, "refiner_switch": 0.5, "negative_prompt": "", "style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp", "uov_upscale_value": 0, "outpaint_selections": "", "outpaint_distance_top": 0, "performance_selection": "Speed", "outpaint_distance_left": 0, "aspect_ratios_selection": "1152*896", "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
- image_number
- How many image to generate
- guidance_scale
- refiner_switch
- negative_prompt
- Negtive prompt for image generation
- uov_input_image
- Input image for upscale or variation, keep None for not upscale or variation
- style_selections
- Fooocus styles applied for image generation, seperated by comma
- uov_upscale_value
- Only when Upscale (Custom)
- inpaint_input_mask
- Input mask for inpaint
- 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' seperated by comma
- 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
- outpaint_distance_right
- Outpaint expansion distance from Right of the image
- outpaint_distance_bottom
- Outpaint expansion distance from Bottom of the image
- inpaint_additional_prompt
- Prompt for image generation
Output Schema
Output
Example Execution Logs
[Predictor Predict] Params: {'prompt': 'forest elf', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': 50403806253646856, 'sharpness': 2.0, 'guidance_scale': 4.0, 'base_model_name': 'juggernautXL_version6Rundiffusion.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': [], 'advanced_params': [False, 1.5, 0.8, 0.3, 7.0, 'dpmpp_2m_sde_gpu', 'karras', False, -1, -1, -1, -1, -1, -1, False, False, False, False, 0.25, 64, 128, 'joint', False, None, None, None, None, False, False, 'v2.6', 1.0, 0.618]} [Task Queue] Task queue is free, start task, seq=1 [Parameters] Adaptive CFG = 7.0 [Parameters] Sharpness = 2.0 [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [Parameters] CFG = 4.0 [Parameters] Seed = 50403806253646856 [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [Parameters] Steps = 30 - 15 [Fooocus] Initializing ... [Fooocus] Loading models ... Refiner unloaded. Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1]] for model [/src/repositories/Fooocus/models/checkpoints/juggernautXL_version6Rundiffusion.safetensors]. Loaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/juggernautXL_version6Rundiffusion.safetensors] with 788 keys at weight 0.1. Requested to load SDXLClipModel Loading 1 new model unload clone 1 [Fooocus Model Management] Moving model(s) has taken 0.65 seconds [Fooocus] Processing prompts ... [Fooocus] Preparing Fooocus text #1 ... [Prompt Expansion] forest elf, sharp focus, intricate, cinematic light, clear, crisp detail, highly detailed, singular background, elegant, complex, magical, coherent, magic, ambient, amazing composition, professional, stunning, beautiful, symmetry, illuminated, gorgeous, pretty, marvelous, aesthetic, color, epic, shiny, wonderful, pure, perfect, focused, incredible, fancy,, artistic [Fooocus] Encoding positive #1 ... [Fooocus] Encoding negative #1 ... [Parameters] Denoising Strength = 1.0 [Parameters] Initial Latent shape: Image Space (896, 1152) Preparation time: 3.22 seconds [Sampler] refiner_swap_method = joint [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828 Requested to load SDXL Loading 1 new model [Fooocus Model Management] Moving model(s) has taken 0.78 seconds 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:15, 1.93it/s] 7%|▋ | 2/30 [00:00<00:09, 2.85it/s] 10%|█ | 3/30 [00:00<00:07, 3.38it/s] 13%|█▎ | 4/30 [00:01<00:07, 3.70it/s] 17%|█▋ | 5/30 [00:01<00:06, 3.90it/s] 20%|██ | 6/30 [00:01<00:05, 4.04it/s] 23%|██▎ | 7/30 [00:01<00:05, 4.11it/s] 27%|██▋ | 8/30 [00:02<00:05, 4.17it/s] 30%|███ | 9/30 [00:02<00:04, 4.21it/s] 33%|███▎ | 10/30 [00:02<00:04, 4.24it/s] 37%|███▋ | 11/30 [00:02<00:04, 4.26it/s] 40%|████ | 12/30 [00:03<00:04, 4.29it/s] 43%|████▎ | 13/30 [00:03<00:03, 4.30it/s] 47%|████▋ | 14/30 [00:03<00:03, 4.31it/s] 50%|█████ | 15/30 [00:03<00:03, 4.31it/s] 53%|█████▎ | 16/30 [00:03<00:03, 4.32it/s] 57%|█████▋ | 17/30 [00:04<00:03, 4.32it/s] 60%|██████ | 18/30 [00:04<00:02, 4.32it/s] 63%|██████▎ | 19/30 [00:04<00:02, 4.32it/s] 67%|██████▋ | 20/30 [00:04<00:02, 4.31it/s] 70%|███████ | 21/30 [00:05<00:02, 4.32it/s] 73%|███████▎ | 22/30 [00:05<00:01, 4.31it/s] 77%|███████▋ | 23/30 [00:05<00:01, 4.31it/s] 80%|████████ | 24/30 [00:05<00:01, 4.31it/s] 83%|████████▎ | 25/30 [00:06<00:01, 4.31it/s] 87%|████████▋ | 26/30 [00:06<00:00, 4.29it/s] 90%|█████████ | 27/30 [00:06<00:00, 4.29it/s] 93%|█████████▎| 28/30 [00:06<00:00, 4.30it/s] 97%|█████████▋| 29/30 [00:07<00:00, 4.32it/s] 100%|██████████| 30/30 [00:07<00:00, 4.34it/s] 100%|██████████| 30/30 [00:07<00:00, 4.15it/s] Requested to load AutoencoderKL Loading 1 new model Image generated with private log at: /src/repositories/Fooocus/outputs/2023-12-26/log.html Generating and saving time: 8.69 seconds [Task Queue] Finish task, seq=1 [Predictor Predict] Finished with 1 images
Version Details
- Version ID
fda927242b1db6affa1ece4f54c37f19b964666bf23b0d06ae2439067cd344a4
- Version Created
- January 19, 2024