konieshadow/fooocus-api-realistic

Third party Fooocus replicate model with preset 'realistic'

Third party Fooocus replicate model

Third party Fooocus replicate model with preset 'anime'

Speaker Diarization with "pyannote/speaker-diarization-3.1"
Prediction
konieshadow/fooocus-api-realistic:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afbIDnznhartbxjlb7dxtmm56yfm7oqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- 1 girl
- cn_type1
- ImagePrompt
- cn_type2
- ImagePrompt
- cn_type3
- ImagePrompt
- cn_type4
- ImagePrompt
- sharpness
- 2
- image_seed
- 6091967260935476000
- uov_method
- Disabled
- image_number
- 1
- guidance_scale
- 3
- refiner_switch
- 0.5
- negative_prompt
- unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label
- style_selections
- Fooocus V2,Fooocus Photograph,Fooocus Negative
- 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
{ "prompt": "1 girl", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 6091967260935476000, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 3, "refiner_switch": 0.5, "negative_prompt": "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", "style_selections": "Fooocus V2,Fooocus Photograph,Fooocus Negative", "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": "" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run konieshadow/fooocus-api-realistic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "konieshadow/fooocus-api-realistic:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb", { input: { prompt: "1 girl", cn_type1: "ImagePrompt", cn_type2: "ImagePrompt", cn_type3: "ImagePrompt", cn_type4: "ImagePrompt", sharpness: 2, image_seed: 6091967260935476000, uov_method: "Disabled", image_number: 1, guidance_scale: 3, refiner_switch: 0.5, negative_prompt: "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", style_selections: "Fooocus V2,Fooocus Photograph,Fooocus Negative", 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: "" } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run konieshadow/fooocus-api-realistic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "konieshadow/fooocus-api-realistic:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb", input={ "prompt": "1 girl", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 6091967260935476000, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 3, "refiner_switch": 0.5, "negative_prompt": "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", "style_selections": "Fooocus V2,Fooocus Photograph,Fooocus Negative", "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": "" } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run konieshadow/fooocus-api-realistic 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": "konieshadow/fooocus-api-realistic:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb", "input": { "prompt": "1 girl", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 6091967260935476000, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 3, "refiner_switch": 0.5, "negative_prompt": "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", "style_selections": "Fooocus V2,Fooocus Photograph,Fooocus Negative", "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": "" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/konieshadow/fooocus-api-realistic@sha256:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb \ -i 'prompt="1 girl"' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=2' \ -i 'image_seed=6091967260935476000' \ -i 'uov_method="Disabled"' \ -i 'image_number=1' \ -i 'guidance_scale=3' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt="unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label"' \ -i 'style_selections="Fooocus V2,Fooocus Photograph,Fooocus Negative"' \ -i 'uov_upscale_value=0' \ -i 'outpaint_selections=""' \ -i 'outpaint_distance_top=0' \ -i 'performance_selection="Speed"' \ -i 'outpaint_distance_left=0' \ -i 'aspect_ratios_selection="1152*896"' \ -i 'outpaint_distance_right=0' \ -i 'outpaint_distance_bottom=0' \ -i 'inpaint_additional_prompt=""'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/konieshadow/fooocus-api-realistic@sha256:8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "1 girl", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 6091967260935476000, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 3, "refiner_switch": 0.5, "negative_prompt": "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", "style_selections": "Fooocus V2,Fooocus Photograph,Fooocus Negative", "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": "" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-12-26T06:42:47.249882Z", "created_at": "2023-12-26T06:42:37.311399Z", "data_removed": false, "error": null, "id": "nznhartbxjlb7dxtmm56yfm7oq", "input": { "prompt": "1 girl", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 2, "image_seed": 6091967260935476000, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 3, "refiner_switch": 0.5, "negative_prompt": "unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label", "style_selections": "Fooocus V2,Fooocus Photograph,Fooocus Negative", "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": "" }, "logs": "[Predictor Predict] Params: {'prompt': '1 girl', 'negative_prompt': 'unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label', 'style_selections': ['Fooocus V2', 'Fooocus Photograph', 'Fooocus Negative'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': 6091967260935476000, 'sharpness': 2.0, 'guidance_scale': 3.0, 'base_model_name': 'realisticStockPhoto_v10.safetensors', 'refiner_model_name': 'None', 'refiner_switch': 0.5, 'loras': [['SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors', 0.25]], '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]}\n[Task Queue] Task queue is free, start task, seq=3\n[Parameters] Adaptive CFG = 7.0\n[Parameters] Sharpness = 2.0\n[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\n[Parameters] CFG = 3.0\n[Parameters] Seed = 6091967260935476000\n[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\n[Parameters] Steps = 30 - 15\n[Fooocus] Initializing ...\n[Fooocus] Loading models ...\nRefiner unloaded.\n[Fooocus] Processing prompts ...\n[Fooocus] Preparing Fooocus text #1 ...\n[Prompt Expansion] 1 girl, full focus, beautiful, elegant, breathtaking, highly detailed, cinematic, light, clear, perfect, coherent, color, epic, cute, gorgeous, symmetry, beaten, winning, romantic, artistic, fine detail, intricate, enhanced, complex, colorful, cool, awesome, inspired, professional, creative, brilliant, expressive, vibrant, passionate, iconic, brave\n[Fooocus] Encoding positive #1 ...\n[Fooocus] Encoding negative #1 ...\n[Parameters] Denoising Strength = 1.0\n[Parameters] Initial Latent shape: Image Space (896, 1152)\nPreparation time: 0.75 seconds\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.34it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.35it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.34it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.34it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.33it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.33it/s]\n 23%|██▎ | 7/30 [00:01<00:05, 4.33it/s]\n 27%|██▋ | 8/30 [00:01<00:05, 4.32it/s]\n 30%|███ | 9/30 [00:02<00:04, 4.31it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.31it/s]\n 37%|███▋ | 11/30 [00:02<00:04, 4.31it/s]\n 40%|████ | 12/30 [00:02<00:04, 4.31it/s]\n 43%|████▎ | 13/30 [00:03<00:03, 4.30it/s]\n 47%|████▋ | 14/30 [00:03<00:03, 4.30it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.30it/s]\n 53%|█████▎ | 16/30 [00:03<00:03, 4.30it/s]\n 57%|█████▋ | 17/30 [00:03<00:03, 4.30it/s]\n 60%|██████ | 18/30 [00:04<00:02, 4.30it/s]\n 63%|██████▎ | 19/30 [00:04<00:02, 4.29it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.29it/s]\n 70%|███████ | 21/30 [00:04<00:02, 4.29it/s]\n 73%|███████▎ | 22/30 [00:05<00:01, 4.28it/s]\n 77%|███████▋ | 23/30 [00:05<00:01, 4.28it/s]\n 80%|████████ | 24/30 [00:05<00:01, 4.28it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.27it/s]\n 87%|████████▋ | 26/30 [00:06<00:00, 4.28it/s]\n 90%|█████████ | 27/30 [00:06<00:00, 4.28it/s]\n 93%|█████████▎| 28/30 [00:06<00:00, 4.27it/s]\n 97%|█████████▋| 29/30 [00:06<00:00, 4.29it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.30it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.30it/s]\nImage generated with private log at: /src/repositories/Fooocus/outputs/2023-12-26/log.html\nGenerating and saving time: 7.61 seconds\n[Task Queue] Finish task, seq=3\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 9.897815, "total_time": 9.938483 }, "output": [ "https://replicate.delivery/pbxt/1WSEexx15X1eOkPuV1x0szGzczP0apQg45fYofMfXV6w8TwQC/e49b3e3c-2150-4243-91c5-595b8640ec6b.png" ], "started_at": "2023-12-26T06:42:37.352067Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nznhartbxjlb7dxtmm56yfm7oq", "cancel": "https://api.replicate.com/v1/predictions/nznhartbxjlb7dxtmm56yfm7oq/cancel" }, "version": "8958d6f677f825b57175bf644471fddfee6210a165cc20037323575a84d16afb" }
Generated in[Predictor Predict] Params: {'prompt': '1 girl', 'negative_prompt': 'unrealistic, saturated, high contrast, big nose, painting, drawing, sketch, cartoon, anime, manga, render, CG, 3d, watermark, signature, label', 'style_selections': ['Fooocus V2', 'Fooocus Photograph', 'Fooocus Negative'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': 6091967260935476000, 'sharpness': 2.0, 'guidance_scale': 3.0, 'base_model_name': 'realisticStockPhoto_v10.safetensors', 'refiner_model_name': 'None', 'refiner_switch': 0.5, 'loras': [['SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors', 0.25]], '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=3 [Parameters] Adaptive CFG = 7.0 [Parameters] Sharpness = 2.0 [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [Parameters] CFG = 3.0 [Parameters] Seed = 6091967260935476000 [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [Parameters] Steps = 30 - 15 [Fooocus] Initializing ... [Fooocus] Loading models ... Refiner unloaded. [Fooocus] Processing prompts ... [Fooocus] Preparing Fooocus text #1 ... [Prompt Expansion] 1 girl, full focus, beautiful, elegant, breathtaking, highly detailed, cinematic, light, clear, perfect, coherent, color, epic, cute, gorgeous, symmetry, beaten, winning, romantic, artistic, fine detail, intricate, enhanced, complex, colorful, cool, awesome, inspired, professional, creative, brilliant, expressive, vibrant, passionate, iconic, brave [Fooocus] Encoding positive #1 ... [Fooocus] Encoding negative #1 ... [Parameters] Denoising Strength = 1.0 [Parameters] Initial Latent shape: Image Space (896, 1152) Preparation time: 0.75 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.34it/s] 7%|▋ | 2/30 [00:00<00:06, 4.35it/s] 10%|█ | 3/30 [00:00<00:06, 4.34it/s] 13%|█▎ | 4/30 [00:00<00:05, 4.34it/s] 17%|█▋ | 5/30 [00:01<00:05, 4.33it/s] 20%|██ | 6/30 [00:01<00:05, 4.33it/s] 23%|██▎ | 7/30 [00:01<00:05, 4.33it/s] 27%|██▋ | 8/30 [00:01<00:05, 4.32it/s] 30%|███ | 9/30 [00:02<00:04, 4.31it/s] 33%|███▎ | 10/30 [00:02<00:04, 4.31it/s] 37%|███▋ | 11/30 [00:02<00:04, 4.31it/s] 40%|████ | 12/30 [00:02<00:04, 4.31it/s] 43%|████▎ | 13/30 [00:03<00:03, 4.30it/s] 47%|████▋ | 14/30 [00:03<00:03, 4.30it/s] 50%|█████ | 15/30 [00:03<00:03, 4.30it/s] 53%|█████▎ | 16/30 [00:03<00:03, 4.30it/s] 57%|█████▋ | 17/30 [00:03<00:03, 4.30it/s] 60%|██████ | 18/30 [00:04<00:02, 4.30it/s] 63%|██████▎ | 19/30 [00:04<00:02, 4.29it/s] 67%|██████▋ | 20/30 [00:04<00:02, 4.29it/s] 70%|███████ | 21/30 [00:04<00:02, 4.29it/s] 73%|███████▎ | 22/30 [00:05<00:01, 4.28it/s] 77%|███████▋ | 23/30 [00:05<00:01, 4.28it/s] 80%|████████ | 24/30 [00:05<00:01, 4.28it/s] 83%|████████▎ | 25/30 [00:05<00:01, 4.27it/s] 87%|████████▋ | 26/30 [00:06<00:00, 4.28it/s] 90%|█████████ | 27/30 [00:06<00:00, 4.28it/s] 93%|█████████▎| 28/30 [00:06<00:00, 4.27it/s] 97%|█████████▋| 29/30 [00:06<00:00, 4.29it/s] 100%|██████████| 30/30 [00:06<00:00, 4.30it/s] 100%|██████████| 30/30 [00:06<00:00, 4.30it/s] Image generated with private log at: /src/repositories/Fooocus/outputs/2023-12-26/log.html Generating and saving time: 7.61 seconds [Task Queue] Finish task, seq=3 [Predictor Predict] Finished with 1 images
Want to make some of these yourself?
Run this model