konieshadow/fooocus-api-anime 📝🖼️🔢❓ → 🖼️

▶️ 333.7K runs 📅 Oct 2023 ⚙️ Cog 0.8.6 🔗 GitHub ⚖️ License
anime image-inpainting image-to-image text-to-image

About

Third party Fooocus replicate model with preset 'anime'

Example Output

Prompt:

"1 girl"

Output

Example output

Performance Metrics

16.75s Prediction Time
145.52s Total Time
All Input Parameters
{
  "prompt": "1 girl",
  "cn_type1": "ImagePrompt",
  "cn_type2": "ImagePrompt",
  "cn_type3": "ImagePrompt",
  "cn_type4": "ImagePrompt",
  "sharpness": 2,
  "image_seed": 6752341482620184000,
  "uov_method": "Disabled",
  "image_number": 1,
  "guidance_scale": 7,
  "refiner_switch": 0.66,
  "negative_prompt": "(embedding:unaestheticXLv31:0.8), low quality, watermark",
  "style_selections": "Fooocus V2,Fooocus Masterpiece,SAI Anime,SAI Digital Art,SAI Enhance,SAI Fantasy Art",
  "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 Type: stringDefault:
Prompt for image generation
cn_img1 Type: string
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
cn_img2 Type: string
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
cn_img3 Type: string
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
cn_img4 Type: string
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
cn_stop1 Type: numberRange: 0 - 1
Stop at for image prompt, None for default value
cn_stop2 Type: numberRange: 0 - 1
Stop at for image prompt, None for default value
cn_stop3 Type: numberRange: 0 - 1
Stop at for image prompt, None for default value
cn_stop4 Type: numberRange: 0 - 1
Stop at for image prompt, None for default value
cn_type1 Default: ImagePrompt
ControlNet type for image prompt
cn_type2 Default: ImagePrompt
ControlNet type for image prompt
cn_type3 Default: ImagePrompt
ControlNet type for image prompt
cn_type4 Default: ImagePrompt
ControlNet type for image prompt
sharpness Type: numberDefault: 2Range: 0 - 30
cn_weight1 Type: numberRange: 0 - 2
Weight for image prompt, None for default value
cn_weight2 Type: numberRange: 0 - 2
Weight for image prompt, None for default value
cn_weight3 Type: numberRange: 0 - 2
Weight for image prompt, None for default value
cn_weight4 Type: numberRange: 0 - 2
Weight for image prompt, None for default value
image_seed Type: integerDefault: -1
Seed to generate image, -1 for random
uov_method Default: Disabled
image_number Type: integerDefault: 1Range: 1 - 8
How many image to generate
guidance_scale Type: numberDefault: 7Range: 1 - 30
refiner_switch Type: numberDefault: 0.66Range: 0.1 - 1
negative_prompt Type: stringDefault: (embedding:unaestheticXLv31:0.8), low quality, watermark
Negtive prompt for image generation
uov_input_image Type: string
Input image for upscale or variation, keep None for not upscale or variation
style_selections Type: stringDefault: Fooocus V2,Fooocus Masterpiece,SAI Anime,SAI Digital Art,SAI Enhance,SAI Fantasy Art
Fooocus styles applied for image generation, seperated by comma
uov_upscale_value Type: numberDefault: 0
Only when Upscale (Custom)
inpaint_input_mask Type: string
Input mask for inpaint
inpaint_input_image Type: string
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 Type: stringDefault:
Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' seperated by comma
outpaint_distance_top Type: integerDefault: 0
Outpaint expansion distance from Top of the image
performance_selection Default: Speed
Performance selection
outpaint_distance_left Type: integerDefault: 0
Outpaint expansion distance from Left of the image
aspect_ratios_selection Default: 1152*896
The generated image's size
outpaint_distance_right Type: integerDefault: 0
Outpaint expansion distance from Right of the image
outpaint_distance_bottom Type: integerDefault: 0
Outpaint expansion distance from Bottom of the image
inpaint_additional_prompt Type: stringDefault:
Prompt for image generation
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
[Predictor Predict] Params: {'prompt': '1 girl', 'negative_prompt': '(embedding:unaestheticXLv31:0.8), low quality, watermark', 'style_selections': ['Fooocus V2', 'Fooocus Masterpiece', 'SAI Anime', 'SAI Digital Art', 'SAI Enhance', 'SAI Fantasy Art'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': 6752341482620184000, 'sharpness': 2.0, 'guidance_scale': 7.0, 'base_model_name': 'bluePencilXL_v050.safetensors', 'refiner_model_name': 'DreamShaper_8_pruned.safetensors', 'refiner_switch': 0.66, 'loras': [['sd_xl_offset_example-lora_1.0.safetensors', 0.5]], '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 = 7.0
[Parameters] Seed = 6752341482620184000
[Parameters] Sampler = dpmpp_2m_sde_gpu - karras
[Parameters] Steps = 30 - 20
[Fooocus] Initializing ...
[Fooocus] Loading models ...
Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.5]] for model [/src/repositories/Fooocus/models/checkpoints/bluePencilXL_v050.safetensors].
Loaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/bluePencilXL_v050.safetensors] with 788 keys at weight 0.5.
Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.5]] for model [/src/repositories/Fooocus/models/checkpoints/DreamShaper_8_pruned.safetensors].
Requested to load SDXLClipModel
Loading 1 new model
unload clone 1
[Fooocus Model Management] Moving model(s) has taken 0.75 seconds
[Fooocus] Processing prompts ...
[Fooocus] Preparing Fooocus text #1 ...
[Prompt Expansion] 1 girl, full color, cool colors, intricate, confident, expressive, charismatic, strong, shiny, highly detailed, dramatic light, sharp focus, elegant, beautiful, advanced, romantic, epic, fine detail, clear peaceful background, professional, artistic, winning, attractive, smart, pretty, illuminated, cinematic, cute, innocent, iconic, rich, colorful, striking
[Fooocus] Encoding positive #1 ...
[Fooocus] Encoding negative #1 ...
[Parameters] Denoising Strength = 1.0
[Parameters] Initial Latent shape: Image Space (896, 1152)
Preparation time: 4.70 seconds
[Sampler] refiner_swap_method = vae
[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 1.73 seconds
  0%|          | 0/20 [00:00<?, ?it/s]
  5%|▌         | 1/20 [00:00<00:09,  1.92it/s]
 10%|█         | 2/20 [00:00<00:06,  2.81it/s]
 15%|█▌        | 3/20 [00:00<00:05,  3.31it/s]
 20%|██        | 4/20 [00:01<00:04,  3.62it/s]
 25%|██▌       | 5/20 [00:01<00:03,  3.80it/s]
 30%|███       | 6/20 [00:01<00:03,  3.93it/s]
 35%|███▌      | 7/20 [00:01<00:03,  4.02it/s]
 40%|████      | 8/20 [00:02<00:02,  4.08it/s]
 45%|████▌     | 9/20 [00:02<00:02,  4.14it/s]
 50%|█████     | 10/20 [00:02<00:02,  4.18it/s]
 55%|█████▌    | 11/20 [00:02<00:02,  4.21it/s]
 60%|██████    | 12/20 [00:03<00:01,  4.22it/s]
 65%|██████▌   | 13/20 [00:03<00:01,  4.24it/s]
 70%|███████   | 14/20 [00:03<00:01,  4.26it/s]
 75%|███████▌  | 15/20 [00:03<00:01,  4.29it/s]
 80%|████████  | 16/20 [00:04<00:00,  4.30it/s]
 85%|████████▌ | 17/20 [00:04<00:00,  4.30it/s]
 90%|█████████ | 18/20 [00:04<00:00,  4.31it/s]
 95%|█████████▌| 19/20 [00:04<00:00,  4.32it/s]
100%|██████████| 20/20 [00:04<00:00,  4.35it/s]
100%|██████████| 20/20 [00:04<00:00,  4.02it/s]
Fooocus VAE-based swap.
Requested to load Interposer
Loading 1 new model
Requested to load BaseModel
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 0.59 seconds
  0%|          | 0/10 [00:00<?, ?it/s]
 10%|█         | 1/10 [00:00<00:02,  4.10it/s]
 20%|██        | 2/10 [00:00<00:01,  4.19it/s]
 30%|███       | 3/10 [00:00<00:01,  4.25it/s]
 40%|████      | 4/10 [00:00<00:01,  4.27it/s]
 50%|█████     | 5/10 [00:01<00:01,  4.28it/s]
 60%|██████    | 6/10 [00:01<00:00,  4.30it/s]
 70%|███████   | 7/10 [00:01<00:00,  4.30it/s]
 80%|████████  | 8/10 [00:01<00:00,  4.31it/s]
 90%|█████████ | 9/10 [00:02<00:00,  4.30it/s]
100%|██████████| 10/10 [00:02<00:00,  4.33it/s]
100%|██████████| 10/10 [00:02<00:00,  4.29it/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: 10.42 seconds
[Task Queue] Finish task, seq=1
[Predictor Predict] Finished with 1 images
Version Details
Version ID
a750658f54c4f8bec1c8b0e352ce2666c22f2f919d391688ff4fc16e48b3a28f
Version Created
January 19, 2024
Run on Replicate →