skytells-research / focus
Image generation, Inpaint Strength, loras custom_urls and enhancer.
- Public
- 447 runs
-
L40S
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDm1fva3bttsrgp0cgdas99xb2xwStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A photo of a girl sitting in a private jet
- cn_type1
- ImagePrompt
- cn_type2
- ImagePrompt
- cn_type3
- ImagePrompt
- cn_type4
- ImagePrompt
- sharpness
- 3
- image_seed
- -1
- uov_method
- Upscale (2x)
- 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
- outpaint_selections
- outpaint_distance_top
- 0
- performance_selection
- Quality
- outpaint_distance_left
- 0
- aspect_ratios_selection
- 1152*896
- outpaint_distance_right
- 0
- outpaint_distance_bottom
- 0
- inpaint_additional_prompt
{ "prompt": "A photo of a girl sitting in a private jet", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A photo of a girl sitting in a private jet", cn_type1: "ImagePrompt", cn_type2: "ImagePrompt", cn_type3: "ImagePrompt", cn_type4: "ImagePrompt", sharpness: 3, image_seed: -1, uov_method: "Upscale (2x)", 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: "Quality", outpaint_distance_left: 0, aspect_ratios_selection: "1152*896", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A photo of a girl sitting in a private jet", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1152*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A photo of a girl sitting in a private jet", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A photo of a girl sitting in a private jet"' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=3' \ -i 'image_seed=-1' \ -i 'uov_method="Upscale (2x)"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt=""' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -i 'outpaint_selections=""' \ -i 'outpaint_distance_top=0' \ -i 'performance_selection="Quality"' \ -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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A photo of a girl sitting in a private jet", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "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": "2024-06-30T19:55:53.362629Z", "created_at": "2024-06-30T19:50:00.150000Z", "data_removed": false, "error": null, "id": "m1fva3bttsrgp0cgdas99xb2xw", "input": { "prompt": "A photo of a girl sitting in a private jet", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "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': 'A photo of a girl sitting in a private jet', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 19:55:25] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=7480956d-f903-447e-a90c-99a4c587aabd\u001b[0m\nRefiner unloaded.\nmodel_type EPS\nUNet ADM Dimension 2816\nUsing pytorch attention in VAE\nWorking with z of shape (1, 4, 32, 32) = 4096 dimensions.\nUsing pytorch attention in VAE\nextra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.text_projection'}\nBase model loaded: /src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors\nRequest to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1], ['None', 1.0], ['None', 1.0], ['None', 1.0], ['None', 1.0]] for model [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors].\nLoaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1.\nFooocus V2 Expansion: Vocab with 642 words.\nFooocus Expansion engine loaded for cuda:0, use_fp16 = True.\nRequested to load SDXLClipModel\nRequested to load GPT2LMHeadModel\nLoading 2 new models\n[Fooocus Model Management] Moving model(s) has taken 0.30 seconds\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=7480956d-f903-447e-a90c-99a4c587aabd\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 3.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] Seed = 4633194370594277476\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Parameters] Steps = 60 - 30\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:32] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\nRequest to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1]] for model [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors].\nLoaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1.\nRequested to load SDXLClipModel\nLoading 1 new model\nunload clone 1\n[Fooocus Model Management] Moving model(s) has taken 0.53 seconds\n\u001b[32m[2024-06-30 19:55:33] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:33] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Prompt Expansion] A photo of a girl sitting in a private jet, complex artistic color composition, proportional beautiful, gentle, detailed, focus, innocent, pretty, attractive, dramatic cinematic, intricate, elegant, sharp, rich deep light, amazing, highly detail, fancy, clear professional, extremely cute, great, symmetry, sincere, best, creative, positive, cheerful, unique, vibrant colors\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (896, 1152)\u001b[0m\n\u001b[32m[2024-06-30 19:55:34] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 2.76 seconds\u001b[0m\n[Sampler] refiner_swap_method = joint\n[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828\nRequested to load SDXL\nLoading 1 new model\n[Fooocus Model Management] Moving model(s) has taken 0.80 seconds\n\u001b[32m[2024-06-30 19:55:35] INFO \u001b[0m \u001b[34m[Task Queue] Already waiting for 10.6 seconds, job_id=7480956d-f903-447e-a90c-99a4c587aabd\u001b[0m\n 0%| | 0/60 [00:00<?, ?it/s]\n 2%|▏ | 1/60 [00:00<00:22, 2.65it/s]\n 3%|▎ | 2/60 [00:00<00:17, 3.38it/s]\n 5%|▌ | 3/60 [00:00<00:15, 3.74it/s]\n 7%|▋ | 4/60 [00:01<00:14, 3.93it/s]\n 8%|▊ | 5/60 [00:01<00:13, 4.03it/s]\n 10%|█ | 6/60 [00:01<00:13, 4.10it/s]\n 12%|█▏ | 7/60 [00:01<00:12, 4.14it/s]\n 13%|█▎ | 8/60 [00:02<00:12, 4.18it/s]\n 15%|█▌ | 9/60 [00:02<00:12, 4.20it/s]\n 17%|█▋ | 10/60 [00:02<00:11, 4.22it/s]\n 18%|█▊ | 11/60 [00:02<00:11, 4.22it/s]\n 20%|██ | 12/60 [00:02<00:11, 4.23it/s]\n 22%|██▏ | 13/60 [00:03<00:11, 4.23it/s]\n 23%|██▎ | 14/60 [00:03<00:10, 4.22it/s]\n 25%|██▌ | 15/60 [00:03<00:10, 4.21it/s]\n 27%|██▋ | 16/60 [00:03<00:10, 4.21it/s]\n 28%|██▊ | 17/60 [00:04<00:10, 4.21it/s]\n 30%|███ | 18/60 [00:04<00:09, 4.21it/s]\n 32%|███▏ | 19/60 [00:04<00:09, 4.20it/s]\n 33%|███▎ | 20/60 [00:04<00:09, 4.19it/s]\n 35%|███▌ | 21/60 [00:05<00:09, 4.20it/s]\n 37%|███▋ | 22/60 [00:05<00:09, 4.19it/s]\n 38%|███▊ | 23/60 [00:05<00:08, 4.14it/s]\n 40%|████ | 24/60 [00:05<00:08, 4.15it/s]\n 42%|████▏ | 25/60 [00:06<00:08, 4.16it/s]\n 43%|████▎ | 26/60 [00:06<00:08, 4.16it/s]\n 45%|████▌ | 27/60 [00:06<00:07, 4.16it/s]\n 47%|████▋ | 28/60 [00:06<00:07, 4.16it/s]\n 48%|████▊ | 29/60 [00:07<00:07, 4.16it/s]\n 50%|█████ | 30/60 [00:07<00:07, 4.17it/s]\n 52%|█████▏ | 31/60 [00:07<00:07, 4.05it/s]\n 53%|█████▎ | 32/60 [00:07<00:06, 4.09it/s]\n 55%|█████▌ | 33/60 [00:08<00:06, 4.12it/s]\n 57%|█████▋ | 34/60 [00:08<00:06, 4.15it/s]\n 58%|█████▊ | 35/60 [00:08<00:06, 4.17it/s]\n 60%|██████ | 36/60 [00:08<00:05, 4.17it/s]\n 62%|██████▏ | 37/60 [00:08<00:05, 4.18it/s]\n 63%|██████▎ | 38/60 [00:09<00:05, 4.19it/s]\n 65%|██████▌ | 39/60 [00:09<00:05, 4.19it/s]\n 67%|██████▋ | 40/60 [00:09<00:04, 4.20it/s]\n 68%|██████▊ | 41/60 [00:09<00:04, 4.20it/s]\n\u001b[32m[2024-06-30 19:55:45] INFO \u001b[0m \u001b[34m[Task Queue] Already waiting for 20.6 seconds, job_id=7480956d-f903-447e-a90c-99a4c587aabd\u001b[0m\n 70%|███████ | 42/60 [00:10<00:04, 4.20it/s]\n 72%|███████▏ | 43/60 [00:10<00:04, 4.21it/s]\n 73%|███████▎ | 44/60 [00:10<00:03, 4.20it/s]\n 75%|███████▌ | 45/60 [00:10<00:03, 4.20it/s]\n 77%|███████▋ | 46/60 [00:11<00:03, 4.20it/s]\n 78%|███████▊ | 47/60 [00:11<00:03, 4.20it/s]\n 80%|████████ | 48/60 [00:11<00:02, 4.19it/s]\n 82%|████████▏ | 49/60 [00:11<00:02, 4.19it/s]\n 83%|████████▎ | 50/60 [00:12<00:02, 4.19it/s]\n 85%|████████▌ | 51/60 [00:12<00:02, 4.19it/s]\n 87%|████████▋ | 52/60 [00:12<00:01, 4.20it/s]\n 88%|████████▊ | 53/60 [00:12<00:01, 4.19it/s]\n 90%|█████████ | 54/60 [00:13<00:01, 4.20it/s]\n 92%|█████████▏| 55/60 [00:13<00:01, 4.21it/s]\n 93%|█████████▎| 56/60 [00:13<00:00, 4.21it/s]\n 95%|█████████▌| 57/60 [00:13<00:00, 4.21it/s]\n 97%|█████████▋| 58/60 [00:13<00:00, 4.21it/s]\n 98%|█████████▊| 59/60 [00:14<00:00, 4.22it/s]\n100%|██████████| 60/60 [00:14<00:00, 4.23it/s]\n100%|██████████| 60/60 [00:14<00:00, 4.16it/s]\nRequested to load AutoencoderKL\nLoading 1 new model\n\u001b[32m[2024-06-30 19:55:50] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 15.58 seconds\u001b[0m\n\u001b[32m[2024-06-30 19:55:51] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=7480956d-f903-447e-a90c-99a4c587aabd\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 28.089912202, "total_time": 353.212629 }, "output": { "paths": [ "https://replicate.delivery/pbxt/2wHvfZcAXj0FYKxvKTlmgDPN35ufKRro8r0xXqQWSVPIp2DTA/4c2a2f4c-d364-4a70-b496-01c8c54a0f29.png" ], "seeds": [ "4633194370594277476" ] }, "started_at": "2024-06-30T19:55:25.272717Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m1fva3bttsrgp0cgdas99xb2xw", "cancel": "https://api.replicate.com/v1/predictions/m1fva3bttsrgp0cgdas99xb2xw/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A photo of a girl sitting in a private jet', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '1152*896', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 19:55:25] INFO [Task Queue] Waiting for task finished, job_id=7480956d-f903-447e-a90c-99a4c587aabd Refiner unloaded. model_type EPS UNet ADM Dimension 2816 Using pytorch attention in VAE Working with z of shape (1, 4, 32, 32) = 4096 dimensions. Using pytorch attention in VAE extra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.text_projection'} Base model loaded: /src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors Request to load LoRAs [['sd_xl_offset_example-lora_1.0.safetensors', 0.1], ['None', 1.0], ['None', 1.0], ['None', 1.0], ['None', 1.0]] for model [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors]. Loaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1. Fooocus V2 Expansion: Vocab with 642 words. Fooocus Expansion engine loaded for cuda:0, use_fp16 = True. Requested to load SDXLClipModel Requested to load GPT2LMHeadModel Loading 2 new models [Fooocus Model Management] Moving model(s) has taken 0.30 seconds [2024-06-30 19:55:32] INFO [Task Queue] Task queue start task, job_id=7480956d-f903-447e-a90c-99a4c587aabd [2024-06-30 19:55:32] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 19:55:32] INFO [Parameters] Sharpness = 3.0 [2024-06-30 19:55:32] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 19:55:32] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 19:55:32] INFO [Parameters] CFG = 7.0 [2024-06-30 19:55:32] INFO [Parameters] Seed = 4633194370594277476 [2024-06-30 19:55:32] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 19:55:32] INFO [Parameters] Steps = 60 - 30 [2024-06-30 19:55:32] INFO [Fooocus] Initializing ... [2024-06-30 19:55:32] INFO [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_v8Rundiffusion.safetensors]. Loaded LoRA [/src/repositories/Fooocus/models/loras/sd_xl_offset_example-lora_1.0.safetensors] for UNet [/src/repositories/Fooocus/models/checkpoints/juggernautXL_v8Rundiffusion.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.53 seconds [2024-06-30 19:55:33] INFO [Fooocus] Processing prompts ... [2024-06-30 19:55:33] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 19:55:34] INFO [Prompt Expansion] A photo of a girl sitting in a private jet, complex artistic color composition, proportional beautiful, gentle, detailed, focus, innocent, pretty, attractive, dramatic cinematic, intricate, elegant, sharp, rich deep light, amazing, highly detail, fancy, clear professional, extremely cute, great, symmetry, sincere, best, creative, positive, cheerful, unique, vibrant colors [2024-06-30 19:55:34] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 19:55:34] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 19:55:34] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 19:55:34] INFO [Parameters] Initial Latent shape: Image Space (896, 1152) [2024-06-30 19:55:34] INFO [Fooocus] Preparation time: 2.76 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.80 seconds [2024-06-30 19:55:35] INFO [Task Queue] Already waiting for 10.6 seconds, job_id=7480956d-f903-447e-a90c-99a4c587aabd 0%| | 0/60 [00:00<?, ?it/s] 2%|▏ | 1/60 [00:00<00:22, 2.65it/s] 3%|▎ | 2/60 [00:00<00:17, 3.38it/s] 5%|▌ | 3/60 [00:00<00:15, 3.74it/s] 7%|▋ | 4/60 [00:01<00:14, 3.93it/s] 8%|▊ | 5/60 [00:01<00:13, 4.03it/s] 10%|█ | 6/60 [00:01<00:13, 4.10it/s] 12%|█▏ | 7/60 [00:01<00:12, 4.14it/s] 13%|█▎ | 8/60 [00:02<00:12, 4.18it/s] 15%|█▌ | 9/60 [00:02<00:12, 4.20it/s] 17%|█▋ | 10/60 [00:02<00:11, 4.22it/s] 18%|█▊ | 11/60 [00:02<00:11, 4.22it/s] 20%|██ | 12/60 [00:02<00:11, 4.23it/s] 22%|██▏ | 13/60 [00:03<00:11, 4.23it/s] 23%|██▎ | 14/60 [00:03<00:10, 4.22it/s] 25%|██▌ | 15/60 [00:03<00:10, 4.21it/s] 27%|██▋ | 16/60 [00:03<00:10, 4.21it/s] 28%|██▊ | 17/60 [00:04<00:10, 4.21it/s] 30%|███ | 18/60 [00:04<00:09, 4.21it/s] 32%|███▏ | 19/60 [00:04<00:09, 4.20it/s] 33%|███▎ | 20/60 [00:04<00:09, 4.19it/s] 35%|███▌ | 21/60 [00:05<00:09, 4.20it/s] 37%|███▋ | 22/60 [00:05<00:09, 4.19it/s] 38%|███▊ | 23/60 [00:05<00:08, 4.14it/s] 40%|████ | 24/60 [00:05<00:08, 4.15it/s] 42%|████▏ | 25/60 [00:06<00:08, 4.16it/s] 43%|████▎ | 26/60 [00:06<00:08, 4.16it/s] 45%|████▌ | 27/60 [00:06<00:07, 4.16it/s] 47%|████▋ | 28/60 [00:06<00:07, 4.16it/s] 48%|████▊ | 29/60 [00:07<00:07, 4.16it/s] 50%|█████ | 30/60 [00:07<00:07, 4.17it/s] 52%|█████▏ | 31/60 [00:07<00:07, 4.05it/s] 53%|█████▎ | 32/60 [00:07<00:06, 4.09it/s] 55%|█████▌ | 33/60 [00:08<00:06, 4.12it/s] 57%|█████▋ | 34/60 [00:08<00:06, 4.15it/s] 58%|█████▊ | 35/60 [00:08<00:06, 4.17it/s] 60%|██████ | 36/60 [00:08<00:05, 4.17it/s] 62%|██████▏ | 37/60 [00:08<00:05, 4.18it/s] 63%|██████▎ | 38/60 [00:09<00:05, 4.19it/s] 65%|██████▌ | 39/60 [00:09<00:05, 4.19it/s] 67%|██████▋ | 40/60 [00:09<00:04, 4.20it/s] 68%|██████▊ | 41/60 [00:09<00:04, 4.20it/s] [2024-06-30 19:55:45] INFO [Task Queue] Already waiting for 20.6 seconds, job_id=7480956d-f903-447e-a90c-99a4c587aabd 70%|███████ | 42/60 [00:10<00:04, 4.20it/s] 72%|███████▏ | 43/60 [00:10<00:04, 4.21it/s] 73%|███████▎ | 44/60 [00:10<00:03, 4.20it/s] 75%|███████▌ | 45/60 [00:10<00:03, 4.20it/s] 77%|███████▋ | 46/60 [00:11<00:03, 4.20it/s] 78%|███████▊ | 47/60 [00:11<00:03, 4.20it/s] 80%|████████ | 48/60 [00:11<00:02, 4.19it/s] 82%|████████▏ | 49/60 [00:11<00:02, 4.19it/s] 83%|████████▎ | 50/60 [00:12<00:02, 4.19it/s] 85%|████████▌ | 51/60 [00:12<00:02, 4.19it/s] 87%|████████▋ | 52/60 [00:12<00:01, 4.20it/s] 88%|████████▊ | 53/60 [00:12<00:01, 4.19it/s] 90%|█████████ | 54/60 [00:13<00:01, 4.20it/s] 92%|█████████▏| 55/60 [00:13<00:01, 4.21it/s] 93%|█████████▎| 56/60 [00:13<00:00, 4.21it/s] 95%|█████████▌| 57/60 [00:13<00:00, 4.21it/s] 97%|█████████▋| 58/60 [00:13<00:00, 4.21it/s] 98%|█████████▊| 59/60 [00:14<00:00, 4.22it/s] 100%|██████████| 60/60 [00:14<00:00, 4.23it/s] 100%|██████████| 60/60 [00:14<00:00, 4.16it/s] Requested to load AutoencoderKL Loading 1 new model [2024-06-30 19:55:50] INFO [Fooocus] Generating and saving time: 15.58 seconds [2024-06-30 19:55:51] INFO [Task Queue] Finish task, job_id=7480956d-f903-447e-a90c-99a4c587aabd [Predictor Predict] Finished with 1 images
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDwvc3jwjsvdrgg0cgdavrj5g5nmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A photo of a woman dressed in a Victorian gown standing in a lush garden.
- 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
- 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": "A photo of a woman dressed in a Victorian gown standing in a lush garden.", "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": "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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A photo of a woman dressed in a Victorian gown standing in a lush garden.", 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: "1152*896", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A photo of a woman dressed in a Victorian gown standing in a lush garden.", "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": "1152*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A photo of a woman dressed in a Victorian gown standing in a lush garden.", "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": "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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A photo of a woman dressed in a Victorian gown standing in a lush garden."' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=2' \ -i 'image_seed=-1' \ -i 'uov_method="Disabled"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt=""' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A photo of a woman dressed in a Victorian gown standing in a lush garden.", "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": "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": "2024-06-30T19:56:04.137987Z", "created_at": "2024-06-30T19:55:19.387000Z", "data_removed": false, "error": null, "id": "wvc3jwjsvdrgg0cgdavrj5g5nm", "input": { "prompt": "A photo of a woman dressed in a Victorian gown standing in a lush garden.", "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": "1152*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" }, "logs": "[Predictor Predict] Params: {'prompt': 'A photo of a woman dressed in a Victorian gown standing in a lush garden.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', '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-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 2.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Seed = 134263862432746637\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Steps = 30 - 15\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Prompt Expansion] A photo of a woman dressed in a Victorian gown standing in a lush garden, background composed glorious sparkling light, detailed, romantic, glowing, intricate, sharp focus, very coherent, candid, elegant, generous, extremely creative, highly tailored, colorful, artistic, color deep royal, cinematic, stunning, rich vibrant colors, amazing great original composition, beautiful perfect, ambient, epic\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (896, 1152)\u001b[0m\n\u001b[32m[2024-06-30 19:55:54] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 0.67 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.61it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.47it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.43it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.43it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.43it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.43it/s]\n 23%|██▎ | 7/30 [00:01<00:05, 4.45it/s]\n 27%|██▋ | 8/30 [00:01<00:05, 4.20it/s]\n 30%|███ | 9/30 [00:02<00:04, 4.24it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.16it/s]\n 37%|███▋ | 11/30 [00:02<00:04, 4.23it/s]\n 40%|████ | 12/30 [00:02<00:04, 4.29it/s]\n 43%|████▎ | 13/30 [00:03<00:03, 4.33it/s]\n 47%|████▋ | 14/30 [00:03<00:03, 4.36it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.38it/s]\n 53%|█████▎ | 16/30 [00:03<00:03, 4.39it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 4.41it/s]\n 60%|██████ | 18/30 [00:04<00:02, 4.42it/s]\n 63%|██████▎ | 19/30 [00:04<00:02, 4.42it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.43it/s]\n 70%|███████ | 21/30 [00:04<00:02, 4.44it/s]\n 73%|███████▎ | 22/30 [00:05<00:01, 4.44it/s]\n 77%|███████▋ | 23/30 [00:05<00:01, 4.46it/s]\n 80%|████████ | 24/30 [00:05<00:01, 4.47it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.48it/s]\n 87%|████████▋ | 26/30 [00:05<00:00, 4.48it/s]\n 90%|█████████ | 27/30 [00:06<00:00, 4.49it/s]\n 93%|█████████▎| 28/30 [00:06<00:00, 4.49it/s]\n 97%|█████████▋| 29/30 [00:06<00:00, 4.51it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.53it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.41it/s]\n\u001b[32m[2024-06-30 19:56:01] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 7.03 seconds\u001b[0m\n\u001b[32m[2024-06-30 19:56:02] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 10.10776877, "total_time": 44.750987 }, "output": { "paths": [ "https://replicate.delivery/pbxt/9FCidyjyvlaQLpUI8MBegfE1DSEBQ5WmaDYpWfHzmRdlStHmA/06d844b4-909c-4129-9f7a-a1ea9cd0fb2b.png" ], "seeds": [ "134263862432746637" ] }, "started_at": "2024-06-30T19:55:54.030218Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wvc3jwjsvdrgg0cgdavrj5g5nm", "cancel": "https://api.replicate.com/v1/predictions/wvc3jwjsvdrgg0cgdavrj5g5nm/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A photo of a woman dressed in a Victorian gown standing in a lush garden.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', '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-06-30 19:55:54] INFO [Task Queue] Waiting for task finished, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2 [2024-06-30 19:55:54] INFO [Task Queue] Task queue start task, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2 [2024-06-30 19:55:54] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 19:55:54] INFO [Parameters] Sharpness = 2.0 [2024-06-30 19:55:54] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 19:55:54] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 19:55:54] INFO [Parameters] CFG = 7.0 [2024-06-30 19:55:54] INFO [Parameters] Seed = 134263862432746637 [2024-06-30 19:55:54] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 19:55:54] INFO [Parameters] Steps = 30 - 15 [2024-06-30 19:55:54] INFO [Fooocus] Initializing ... [2024-06-30 19:55:54] INFO [Fooocus] Loading models ... Refiner unloaded. [2024-06-30 19:55:54] INFO [Fooocus] Processing prompts ... [2024-06-30 19:55:54] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 19:55:54] INFO [Prompt Expansion] A photo of a woman dressed in a Victorian gown standing in a lush garden, background composed glorious sparkling light, detailed, romantic, glowing, intricate, sharp focus, very coherent, candid, elegant, generous, extremely creative, highly tailored, colorful, artistic, color deep royal, cinematic, stunning, rich vibrant colors, amazing great original composition, beautiful perfect, ambient, epic [2024-06-30 19:55:54] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 19:55:54] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 19:55:54] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 19:55:54] INFO [Parameters] Initial Latent shape: Image Space (896, 1152) [2024-06-30 19:55:54] INFO [Fooocus] Preparation time: 0.67 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.61it/s] 7%|▋ | 2/30 [00:00<00:06, 4.47it/s] 10%|█ | 3/30 [00:00<00:06, 4.43it/s] 13%|█▎ | 4/30 [00:00<00:05, 4.43it/s] 17%|█▋ | 5/30 [00:01<00:05, 4.43it/s] 20%|██ | 6/30 [00:01<00:05, 4.43it/s] 23%|██▎ | 7/30 [00:01<00:05, 4.45it/s] 27%|██▋ | 8/30 [00:01<00:05, 4.20it/s] 30%|███ | 9/30 [00:02<00:04, 4.24it/s] 33%|███▎ | 10/30 [00:02<00:04, 4.16it/s] 37%|███▋ | 11/30 [00:02<00:04, 4.23it/s] 40%|████ | 12/30 [00:02<00:04, 4.29it/s] 43%|████▎ | 13/30 [00:03<00:03, 4.33it/s] 47%|████▋ | 14/30 [00:03<00:03, 4.36it/s] 50%|█████ | 15/30 [00:03<00:03, 4.38it/s] 53%|█████▎ | 16/30 [00:03<00:03, 4.39it/s] 57%|█████▋ | 17/30 [00:03<00:02, 4.41it/s] 60%|██████ | 18/30 [00:04<00:02, 4.42it/s] 63%|██████▎ | 19/30 [00:04<00:02, 4.42it/s] 67%|██████▋ | 20/30 [00:04<00:02, 4.43it/s] 70%|███████ | 21/30 [00:04<00:02, 4.44it/s] 73%|███████▎ | 22/30 [00:05<00:01, 4.44it/s] 77%|███████▋ | 23/30 [00:05<00:01, 4.46it/s] 80%|████████ | 24/30 [00:05<00:01, 4.47it/s] 83%|████████▎ | 25/30 [00:05<00:01, 4.48it/s] 87%|████████▋ | 26/30 [00:05<00:00, 4.48it/s] 90%|█████████ | 27/30 [00:06<00:00, 4.49it/s] 93%|█████████▎| 28/30 [00:06<00:00, 4.49it/s] 97%|█████████▋| 29/30 [00:06<00:00, 4.51it/s] 100%|██████████| 30/30 [00:06<00:00, 4.53it/s] 100%|██████████| 30/30 [00:06<00:00, 4.41it/s] [2024-06-30 19:56:01] INFO [Fooocus] Generating and saving time: 7.03 seconds [2024-06-30 19:56:02] INFO [Task Queue] Finish task, job_id=c0a97452-8aad-40ef-8ff3-68c3dd17d6c2 [Predictor Predict] Finished with 1 images
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDayp6r57znxrgg0cgdawtdg65p8StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A realistic photo of a women wearing a dress in a penthouse.
- 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
- 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": "A realistic photo of a women wearing a dress in a penthouse. ", "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": "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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A realistic photo of a women wearing a dress in a penthouse. ", 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: "1152*896", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A realistic photo of a women wearing a dress in a penthouse. ", "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": "1152*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A realistic photo of a women wearing a dress in a penthouse. ", "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": "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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A realistic photo of a women wearing a dress in a penthouse. "' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=2' \ -i 'image_seed=-1' \ -i 'uov_method="Disabled"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt=""' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A realistic photo of a women wearing a dress in a penthouse. ", "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": "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": "2024-06-30T19:58:24.126227Z", "created_at": "2024-06-30T19:58:12.911000Z", "data_removed": false, "error": null, "id": "ayp6r57znxrgg0cgdawtdg65p8", "input": { "prompt": "A realistic photo of a women wearing a dress in a penthouse. ", "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": "1152*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" }, "logs": "[Predictor Predict] Params: {'prompt': 'A realistic photo of a women wearing a dress in a penthouse. ', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', '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-06-30 19:58:12] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 2.0\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Seed = 6165792066649839121\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Steps = 30 - 15\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Prompt Expansion] A realistic photo of a women wearing a dress in a penthouse, designed translucent transparent, highly detailed, cinematic, extremely lush, very intricate, real colors, ambient background, sharp focus, atmosphere, radiant light, vivid, coherent, color, complex, beautiful, elegant, full, detail, gorgeous, illuminated, pretty, amazing, futuristic, thought, perfect, epic\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (896, 1152)\u001b[0m\n\u001b[32m[2024-06-30 19:58:13] 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:07, 3.94it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.26it/s]\n 10%|█ | 3/30 [00:00<00:06, 4.34it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 4.39it/s]\n 17%|█▋ | 5/30 [00:01<00:05, 4.40it/s]\n 20%|██ | 6/30 [00:01<00:05, 4.41it/s]\n 23%|██▎ | 7/30 [00:01<00:05, 4.42it/s]\n 27%|██▋ | 8/30 [00:01<00:04, 4.42it/s]\n 30%|███ | 9/30 [00:02<00:04, 4.43it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.43it/s]\n 37%|███▋ | 11/30 [00:02<00:04, 4.43it/s]\n 40%|████ | 12/30 [00:02<00:04, 4.42it/s]\n 43%|████▎ | 13/30 [00:02<00:03, 4.42it/s]\n 47%|████▋ | 14/30 [00:03<00:03, 4.42it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.42it/s]\n 53%|█████▎ | 16/30 [00:03<00:03, 4.42it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 4.42it/s]\n 60%|██████ | 18/30 [00:04<00:02, 4.41it/s]\n 63%|██████▎ | 19/30 [00:04<00:02, 4.41it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.41it/s]\n 70%|███████ | 21/30 [00:04<00:02, 4.41it/s]\n 73%|███████▎ | 22/30 [00:04<00:01, 4.41it/s]\n 77%|███████▋ | 23/30 [00:05<00:01, 4.40it/s]\n 80%|████████ | 24/30 [00:05<00:01, 4.40it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.40it/s]\n 87%|████████▋ | 26/30 [00:05<00:00, 4.40it/s]\n 90%|█████████ | 27/30 [00:06<00:00, 4.40it/s]\n 93%|█████████▎| 28/30 [00:06<00:00, 4.41it/s]\n 97%|█████████▋| 29/30 [00:06<00:00, 4.42it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.43it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.41it/s]\n\u001b[32m[2024-06-30 19:58:20] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 7.04 seconds\u001b[0m\n\u001b[32m[2024-06-30 19:58:22] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 11.170293139, "total_time": 11.215227 }, "output": { "paths": [ "https://replicate.delivery/pbxt/62UgcHvWatrBMNV1gONqSYP5WREvGxQeqExxTCJVq4JvV7hJA/d5c10a4e-369d-4995-8041-20c0acf46a43.png" ], "seeds": [ "6165792066649839121" ] }, "started_at": "2024-06-30T19:58:12.955934Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ayp6r57znxrgg0cgdawtdg65p8", "cancel": "https://api.replicate.com/v1/predictions/ayp6r57znxrgg0cgdawtdg65p8/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A realistic photo of a women wearing a dress in a penthouse. ', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Speed', 'aspect_ratios_selection': '1152*896', '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-06-30 19:58:12] INFO [Task Queue] Waiting for task finished, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6 [2024-06-30 19:58:13] INFO [Task Queue] Task queue start task, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6 [2024-06-30 19:58:13] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 19:58:13] INFO [Parameters] Sharpness = 2.0 [2024-06-30 19:58:13] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 19:58:13] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 19:58:13] INFO [Parameters] CFG = 7.0 [2024-06-30 19:58:13] INFO [Parameters] Seed = 6165792066649839121 [2024-06-30 19:58:13] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 19:58:13] INFO [Parameters] Steps = 30 - 15 [2024-06-30 19:58:13] INFO [Fooocus] Initializing ... [2024-06-30 19:58:13] INFO [Fooocus] Loading models ... Refiner unloaded. [2024-06-30 19:58:13] INFO [Fooocus] Processing prompts ... [2024-06-30 19:58:13] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 19:58:13] INFO [Prompt Expansion] A realistic photo of a women wearing a dress in a penthouse, designed translucent transparent, highly detailed, cinematic, extremely lush, very intricate, real colors, ambient background, sharp focus, atmosphere, radiant light, vivid, coherent, color, complex, beautiful, elegant, full, detail, gorgeous, illuminated, pretty, amazing, futuristic, thought, perfect, epic [2024-06-30 19:58:13] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 19:58:13] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 19:58:13] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 19:58:13] INFO [Parameters] Initial Latent shape: Image Space (896, 1152) [2024-06-30 19:58:13] 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:07, 3.94it/s] 7%|▋ | 2/30 [00:00<00:06, 4.26it/s] 10%|█ | 3/30 [00:00<00:06, 4.34it/s] 13%|█▎ | 4/30 [00:00<00:05, 4.39it/s] 17%|█▋ | 5/30 [00:01<00:05, 4.40it/s] 20%|██ | 6/30 [00:01<00:05, 4.41it/s] 23%|██▎ | 7/30 [00:01<00:05, 4.42it/s] 27%|██▋ | 8/30 [00:01<00:04, 4.42it/s] 30%|███ | 9/30 [00:02<00:04, 4.43it/s] 33%|███▎ | 10/30 [00:02<00:04, 4.43it/s] 37%|███▋ | 11/30 [00:02<00:04, 4.43it/s] 40%|████ | 12/30 [00:02<00:04, 4.42it/s] 43%|████▎ | 13/30 [00:02<00:03, 4.42it/s] 47%|████▋ | 14/30 [00:03<00:03, 4.42it/s] 50%|█████ | 15/30 [00:03<00:03, 4.42it/s] 53%|█████▎ | 16/30 [00:03<00:03, 4.42it/s] 57%|█████▋ | 17/30 [00:03<00:02, 4.42it/s] 60%|██████ | 18/30 [00:04<00:02, 4.41it/s] 63%|██████▎ | 19/30 [00:04<00:02, 4.41it/s] 67%|██████▋ | 20/30 [00:04<00:02, 4.41it/s] 70%|███████ | 21/30 [00:04<00:02, 4.41it/s] 73%|███████▎ | 22/30 [00:04<00:01, 4.41it/s] 77%|███████▋ | 23/30 [00:05<00:01, 4.40it/s] 80%|████████ | 24/30 [00:05<00:01, 4.40it/s] 83%|████████▎ | 25/30 [00:05<00:01, 4.40it/s] 87%|████████▋ | 26/30 [00:05<00:00, 4.40it/s] 90%|█████████ | 27/30 [00:06<00:00, 4.40it/s] 93%|█████████▎| 28/30 [00:06<00:00, 4.41it/s] 97%|█████████▋| 29/30 [00:06<00:00, 4.42it/s] 100%|██████████| 30/30 [00:06<00:00, 4.43it/s] 100%|██████████| 30/30 [00:06<00:00, 4.41it/s] [2024-06-30 19:58:20] INFO [Fooocus] Generating and saving time: 7.04 seconds [2024-06-30 19:58:22] INFO [Task Queue] Finish task, job_id=7a58bd65-d163-4e8d-91b9-a54a3c111aa6 [Predictor Predict] Finished with 1 images
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDp8x71jzx9srgg0cgdayttsa88mStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.
- cn_type1
- ImagePrompt
- cn_type2
- ImagePrompt
- cn_type3
- ImagePrompt
- cn_type4
- ImagePrompt
- sharpness
- 3
- image_seed
- -1
- uov_method
- Disabled
- image_number
- 1
- guidance_scale
- 7
- refiner_switch
- 0.5
- inpaint_strength
- 0.5
- style_selections
- Fooocus V2,Fooocus Enhance,Fooocus Sharp
- loras_custom_urls
- uov_upscale_value
- 0
- use_default_loras
- outpaint_selections
- outpaint_distance_top
- 0
- performance_selection
- Quality
- outpaint_distance_left
- 0
- aspect_ratios_selection
- 960*1024
- outpaint_distance_right
- 0
- outpaint_distance_bottom
- 0
- inpaint_additional_prompt
{ "prompt": "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 7, "refiner_switch": 0.5, "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "960*1024", "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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", cn_type1: "ImagePrompt", cn_type2: "ImagePrompt", cn_type3: "ImagePrompt", cn_type4: "ImagePrompt", sharpness: 3, image_seed: -1, uov_method: "Disabled", image_number: 1, guidance_scale: 7, refiner_switch: 0.5, 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: "Quality", outpaint_distance_left: 0, aspect_ratios_selection: "960*1024", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 7, "refiner_switch": 0.5, "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "960*1024", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 7, "refiner_switch": 0.5, "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "960*1024", "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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene."' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=3' \ -i 'image_seed=-1' \ -i 'uov_method="Disabled"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -i 'outpaint_selections=""' \ -i 'outpaint_distance_top=0' \ -i 'performance_selection="Quality"' \ -i 'outpaint_distance_left=0' \ -i 'aspect_ratios_selection="960*1024"' \ -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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 7, "refiner_switch": 0.5, "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "960*1024", "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": "2024-06-30T20:02:52.267012Z", "created_at": "2024-06-30T20:02:34.446000Z", "data_removed": false, "error": null, "id": "p8x71jzx9srgg0cgdayttsa88m", "input": { "prompt": "A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Disabled", "image_number": 1, "guidance_scale": 7, "refiner_switch": 0.5, "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "960*1024", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" }, "logs": "[Predictor Predict] Params: {'prompt': 'A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '960*1024', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 3.0\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] Seed = 5767418874438116856\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Parameters] Steps = 60 - 30\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Prompt Expansion] A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene, enhanced quality, detailed, real, dynamic dramatic cinematic, artistic, mystical, beautiful, scenic, rich deep color, stunning, gorgeous, striking, attractive, highly detail, advanced\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:02:34] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:02:35] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 20:02:35] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (1024, 960)\u001b[0m\n\u001b[32m[2024-06-30 20:02:35] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 0.53 seconds\u001b[0m\n[Sampler] refiner_swap_method = joint\n[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828\n 0%| | 0/60 [00:00<?, ?it/s]\n 2%|▏ | 1/60 [00:00<00:16, 3.48it/s]\n 3%|▎ | 2/60 [00:00<00:15, 3.84it/s]\n 5%|▌ | 3/60 [00:00<00:14, 3.98it/s]\n 7%|▋ | 4/60 [00:01<00:13, 4.04it/s]\n 8%|▊ | 5/60 [00:01<00:13, 4.06it/s]\n 10%|█ | 6/60 [00:01<00:13, 3.86it/s]\n 12%|█▏ | 7/60 [00:01<00:13, 3.91it/s]\n 13%|█▎ | 8/60 [00:02<00:13, 3.97it/s]\n 15%|█▌ | 9/60 [00:02<00:12, 4.04it/s]\n 17%|█▋ | 10/60 [00:02<00:12, 4.08it/s]\n 18%|█▊ | 11/60 [00:02<00:11, 4.10it/s]\n 20%|██ | 12/60 [00:02<00:11, 4.12it/s]\n 22%|██▏ | 13/60 [00:03<00:11, 4.13it/s]\n 23%|██▎ | 14/60 [00:03<00:11, 4.13it/s]\n 25%|██▌ | 15/60 [00:03<00:10, 4.14it/s]\n 27%|██▋ | 16/60 [00:03<00:10, 4.14it/s]\n 28%|██▊ | 17/60 [00:04<00:10, 4.14it/s]\n 30%|███ | 18/60 [00:04<00:10, 4.14it/s]\n 32%|███▏ | 19/60 [00:04<00:09, 4.14it/s]\n 33%|███▎ | 20/60 [00:04<00:09, 4.14it/s]\n 35%|███▌ | 21/60 [00:05<00:09, 4.14it/s]\n 37%|███▋ | 22/60 [00:05<00:09, 4.13it/s]\n 38%|███▊ | 23/60 [00:05<00:08, 4.13it/s]\n 40%|████ | 24/60 [00:05<00:08, 4.12it/s]\n 42%|████▏ | 25/60 [00:06<00:08, 4.12it/s]\n 43%|████▎ | 26/60 [00:06<00:08, 4.11it/s]\n 45%|████▌ | 27/60 [00:06<00:08, 4.12it/s]\n 47%|████▋ | 28/60 [00:06<00:07, 4.11it/s]\n 48%|████▊ | 29/60 [00:07<00:07, 4.10it/s]\n 50%|█████ | 30/60 [00:07<00:07, 4.10it/s]\n 52%|█████▏ | 31/60 [00:07<00:07, 4.11it/s]\n 53%|█████▎ | 32/60 [00:07<00:06, 4.11it/s]\n 55%|█████▌ | 33/60 [00:08<00:06, 4.08it/s]\n 57%|█████▋ | 34/60 [00:08<00:06, 4.08it/s]\n 58%|█████▊ | 35/60 [00:08<00:06, 4.09it/s]\n 60%|██████ | 36/60 [00:08<00:05, 4.09it/s]\n 62%|██████▏ | 37/60 [00:09<00:05, 4.10it/s]\n\u001b[32m[2024-06-30 20:02:44] INFO \u001b[0m \u001b[34m[Task Queue] Already waiting for 10.0 seconds, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb\u001b[0m\n 63%|██████▎ | 38/60 [00:09<00:05, 4.11it/s]\n 65%|██████▌ | 39/60 [00:09<00:05, 4.11it/s]\n 67%|██████▋ | 40/60 [00:09<00:04, 4.12it/s]\n 68%|██████▊ | 41/60 [00:10<00:04, 4.13it/s]\n 70%|███████ | 42/60 [00:10<00:04, 4.13it/s]\n 72%|███████▏ | 43/60 [00:10<00:04, 4.14it/s]\n 73%|███████▎ | 44/60 [00:10<00:03, 4.15it/s]\n 75%|███████▌ | 45/60 [00:10<00:03, 4.15it/s]\n 77%|███████▋ | 46/60 [00:11<00:03, 4.15it/s]\n 78%|███████▊ | 47/60 [00:11<00:03, 4.15it/s]\n 80%|████████ | 48/60 [00:11<00:02, 4.16it/s]\n 82%|████████▏ | 49/60 [00:11<00:02, 4.16it/s]\n 83%|████████▎ | 50/60 [00:12<00:02, 4.17it/s]\n 85%|████████▌ | 51/60 [00:12<00:02, 4.17it/s]\n 87%|████████▋ | 52/60 [00:12<00:01, 4.17it/s]\n 88%|████████▊ | 53/60 [00:12<00:01, 4.17it/s]\n 90%|█████████ | 54/60 [00:13<00:01, 4.18it/s]\n 92%|█████████▏| 55/60 [00:13<00:01, 4.18it/s]\n 93%|█████████▎| 56/60 [00:13<00:00, 4.19it/s]\n 95%|█████████▌| 57/60 [00:13<00:00, 4.19it/s]\n 97%|█████████▋| 58/60 [00:14<00:00, 4.18it/s]\n 98%|█████████▊| 59/60 [00:14<00:00, 4.19it/s]\n100%|██████████| 60/60 [00:14<00:00, 4.20it/s]\n100%|██████████| 60/60 [00:14<00:00, 4.11it/s]\n\u001b[32m[2024-06-30 20:02:49] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 14.81 seconds\u001b[0m\n\u001b[32m[2024-06-30 20:02:50] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 17.776735374, "total_time": 17.821012 }, "output": { "paths": [ "https://replicate.delivery/pbxt/rWQrSRVWpi41AFve09fyNO4aZTvjJ9QSksMhVjYSbIIrv2DTA/bae3dc61-efa0-4075-9a84-e073ea96290f.png" ], "seeds": [ "5767418874438116856" ] }, "started_at": "2024-06-30T20:02:34.490277Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/p8x71jzx9srgg0cgdayttsa88m", "cancel": "https://api.replicate.com/v1/predictions/p8x71jzx9srgg0cgdayttsa88m/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '960*1024', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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-06-30 20:02:34] INFO [Task Queue] Waiting for task finished, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb [2024-06-30 20:02:34] INFO [Task Queue] Task queue start task, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb [2024-06-30 20:02:34] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 20:02:34] INFO [Parameters] Sharpness = 3.0 [2024-06-30 20:02:34] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 20:02:34] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 20:02:34] INFO [Parameters] CFG = 7.0 [2024-06-30 20:02:34] INFO [Parameters] Seed = 5767418874438116856 [2024-06-30 20:02:34] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 20:02:34] INFO [Parameters] Steps = 60 - 30 [2024-06-30 20:02:34] INFO [Fooocus] Initializing ... [2024-06-30 20:02:34] INFO [Fooocus] Loading models ... Refiner unloaded. [2024-06-30 20:02:34] INFO [Fooocus] Processing prompts ... [2024-06-30 20:02:34] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 20:02:34] INFO [Prompt Expansion] A realistic depiction of a woman standing gracefully in a lush garden, wearing an elegant wedding dress. The dress is beautifully crafted with intricate lace detailing and a flowing train. Her hair is styled in a sophisticated updo adorned with small white flowers matching those in the garden. The setting is serene, with blooming flowers of various colors surrounding her, and gentle sunlight filtering through the leaves, casting soft, dappled light on her. The background features a variety of green plants and a few tall trees, enhancing the natural and romantic atmosphere of a perfect wedding day scene, enhanced quality, detailed, real, dynamic dramatic cinematic, artistic, mystical, beautiful, scenic, rich deep color, stunning, gorgeous, striking, attractive, highly detail, advanced [2024-06-30 20:02:34] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 20:02:34] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 20:02:35] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 20:02:35] INFO [Parameters] Initial Latent shape: Image Space (1024, 960) [2024-06-30 20:02:35] INFO [Fooocus] Preparation time: 0.53 seconds [Sampler] refiner_swap_method = joint [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828 0%| | 0/60 [00:00<?, ?it/s] 2%|▏ | 1/60 [00:00<00:16, 3.48it/s] 3%|▎ | 2/60 [00:00<00:15, 3.84it/s] 5%|▌ | 3/60 [00:00<00:14, 3.98it/s] 7%|▋ | 4/60 [00:01<00:13, 4.04it/s] 8%|▊ | 5/60 [00:01<00:13, 4.06it/s] 10%|█ | 6/60 [00:01<00:13, 3.86it/s] 12%|█▏ | 7/60 [00:01<00:13, 3.91it/s] 13%|█▎ | 8/60 [00:02<00:13, 3.97it/s] 15%|█▌ | 9/60 [00:02<00:12, 4.04it/s] 17%|█▋ | 10/60 [00:02<00:12, 4.08it/s] 18%|█▊ | 11/60 [00:02<00:11, 4.10it/s] 20%|██ | 12/60 [00:02<00:11, 4.12it/s] 22%|██▏ | 13/60 [00:03<00:11, 4.13it/s] 23%|██▎ | 14/60 [00:03<00:11, 4.13it/s] 25%|██▌ | 15/60 [00:03<00:10, 4.14it/s] 27%|██▋ | 16/60 [00:03<00:10, 4.14it/s] 28%|██▊ | 17/60 [00:04<00:10, 4.14it/s] 30%|███ | 18/60 [00:04<00:10, 4.14it/s] 32%|███▏ | 19/60 [00:04<00:09, 4.14it/s] 33%|███▎ | 20/60 [00:04<00:09, 4.14it/s] 35%|███▌ | 21/60 [00:05<00:09, 4.14it/s] 37%|███▋ | 22/60 [00:05<00:09, 4.13it/s] 38%|███▊ | 23/60 [00:05<00:08, 4.13it/s] 40%|████ | 24/60 [00:05<00:08, 4.12it/s] 42%|████▏ | 25/60 [00:06<00:08, 4.12it/s] 43%|████▎ | 26/60 [00:06<00:08, 4.11it/s] 45%|████▌ | 27/60 [00:06<00:08, 4.12it/s] 47%|████▋ | 28/60 [00:06<00:07, 4.11it/s] 48%|████▊ | 29/60 [00:07<00:07, 4.10it/s] 50%|█████ | 30/60 [00:07<00:07, 4.10it/s] 52%|█████▏ | 31/60 [00:07<00:07, 4.11it/s] 53%|█████▎ | 32/60 [00:07<00:06, 4.11it/s] 55%|█████▌ | 33/60 [00:08<00:06, 4.08it/s] 57%|█████▋ | 34/60 [00:08<00:06, 4.08it/s] 58%|█████▊ | 35/60 [00:08<00:06, 4.09it/s] 60%|██████ | 36/60 [00:08<00:05, 4.09it/s] 62%|██████▏ | 37/60 [00:09<00:05, 4.10it/s] [2024-06-30 20:02:44] INFO [Task Queue] Already waiting for 10.0 seconds, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb 63%|██████▎ | 38/60 [00:09<00:05, 4.11it/s] 65%|██████▌ | 39/60 [00:09<00:05, 4.11it/s] 67%|██████▋ | 40/60 [00:09<00:04, 4.12it/s] 68%|██████▊ | 41/60 [00:10<00:04, 4.13it/s] 70%|███████ | 42/60 [00:10<00:04, 4.13it/s] 72%|███████▏ | 43/60 [00:10<00:04, 4.14it/s] 73%|███████▎ | 44/60 [00:10<00:03, 4.15it/s] 75%|███████▌ | 45/60 [00:10<00:03, 4.15it/s] 77%|███████▋ | 46/60 [00:11<00:03, 4.15it/s] 78%|███████▊ | 47/60 [00:11<00:03, 4.15it/s] 80%|████████ | 48/60 [00:11<00:02, 4.16it/s] 82%|████████▏ | 49/60 [00:11<00:02, 4.16it/s] 83%|████████▎ | 50/60 [00:12<00:02, 4.17it/s] 85%|████████▌ | 51/60 [00:12<00:02, 4.17it/s] 87%|████████▋ | 52/60 [00:12<00:01, 4.17it/s] 88%|████████▊ | 53/60 [00:12<00:01, 4.17it/s] 90%|█████████ | 54/60 [00:13<00:01, 4.18it/s] 92%|█████████▏| 55/60 [00:13<00:01, 4.18it/s] 93%|█████████▎| 56/60 [00:13<00:00, 4.19it/s] 95%|█████████▌| 57/60 [00:13<00:00, 4.19it/s] 97%|█████████▋| 58/60 [00:14<00:00, 4.18it/s] 98%|█████████▊| 59/60 [00:14<00:00, 4.19it/s] 100%|██████████| 60/60 [00:14<00:00, 4.20it/s] 100%|██████████| 60/60 [00:14<00:00, 4.11it/s] [2024-06-30 20:02:49] INFO [Fooocus] Generating and saving time: 14.81 seconds [2024-06-30 20:02:50] INFO [Task Queue] Finish task, job_id=46600710-2d77-4a43-ae83-0f5ceff199cb [Predictor Predict] Finished with 1 images
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDk519z92s39rgj0cgdb0vfksbjcStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A portrait of a girl, realistic, golden hour.
- cn_type1
- ImagePrompt
- cn_type2
- ImagePrompt
- cn_type3
- ImagePrompt
- cn_type4
- ImagePrompt
- sharpness
- 3
- image_seed
- -1
- uov_method
- Upscale (2x)
- 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
- outpaint_selections
- outpaint_distance_top
- 0
- performance_selection
- Quality
- outpaint_distance_left
- 0
- aspect_ratios_selection
- 1088*896
- outpaint_distance_right
- 0
- outpaint_distance_bottom
- 0
- inpaint_additional_prompt
{ "prompt": "A portrait of a girl, realistic, golden hour.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1088*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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A portrait of a girl, realistic, golden hour.", cn_type1: "ImagePrompt", cn_type2: "ImagePrompt", cn_type3: "ImagePrompt", cn_type4: "ImagePrompt", sharpness: 3, image_seed: -1, uov_method: "Upscale (2x)", 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: "Quality", outpaint_distance_left: 0, aspect_ratios_selection: "1088*896", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A portrait of a girl, realistic, golden hour.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1088*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A portrait of a girl, realistic, golden hour.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1088*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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A portrait of a girl, realistic, golden hour."' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=3' \ -i 'image_seed=-1' \ -i 'uov_method="Upscale (2x)"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt=""' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -i 'outpaint_selections=""' \ -i 'outpaint_distance_top=0' \ -i 'performance_selection="Quality"' \ -i 'outpaint_distance_left=0' \ -i 'aspect_ratios_selection="1088*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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A portrait of a girl, realistic, golden hour.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1088*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": "2024-06-30T20:06:31.424594Z", "created_at": "2024-06-30T20:06:14.554000Z", "data_removed": false, "error": null, "id": "k519z92s39rgj0cgdb0vfksbjc", "input": { "prompt": "A portrait of a girl, realistic, golden hour.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "1088*896", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" }, "logs": "[Predictor Predict] Params: {'prompt': 'A portrait of a girl, realistic, golden hour.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '1088*896', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 3.0\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] Seed = 562411294473046079\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Parameters] Steps = 60 - 30\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 20:06:14] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Prompt Expansion] A portrait of a girl, realistic, golden hour, dramatic, intricate, elegant, highly detailed, sharp focus, illuminated background, incredible fine detail, advanced, full color, cinematic, dynamic light, great composition, atmosphere, merry, amazing, perfect, colorful, beautiful, inspirational, pure, calm, unique, scenic, thought, iconic, cute, fantastic, creative\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (896, 1088)\u001b[0m\n\u001b[32m[2024-06-30 20:06:15] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 0.75 seconds\u001b[0m\n[Sampler] refiner_swap_method = joint\n[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828\n 0%| | 0/60 [00:00<?, ?it/s]\n 2%|▏ | 1/60 [00:00<00:14, 4.20it/s]\n 3%|▎ | 2/60 [00:00<00:12, 4.49it/s]\n 5%|▌ | 3/60 [00:00<00:12, 4.61it/s]\n 7%|▋ | 4/60 [00:00<00:12, 4.63it/s]\n 8%|▊ | 5/60 [00:01<00:14, 3.75it/s]\n 10%|█ | 6/60 [00:01<00:13, 4.00it/s]\n 12%|█▏ | 7/60 [00:01<00:12, 4.19it/s]\n 13%|█▎ | 8/60 [00:01<00:12, 4.31it/s]\n 15%|█▌ | 9/60 [00:02<00:11, 4.38it/s]\n 17%|█▋ | 10/60 [00:02<00:11, 4.44it/s]\n 18%|█▊ | 11/60 [00:02<00:10, 4.49it/s]\n 20%|██ | 12/60 [00:02<00:10, 4.53it/s]\n 22%|██▏ | 13/60 [00:02<00:10, 4.55it/s]\n 23%|██▎ | 14/60 [00:03<00:10, 4.56it/s]\n 25%|██▌ | 15/60 [00:03<00:09, 4.56it/s]\n 27%|██▋ | 16/60 [00:03<00:09, 4.57it/s]\n 28%|██▊ | 17/60 [00:03<00:09, 4.58it/s]\n 30%|███ | 18/60 [00:04<00:09, 4.57it/s]\n 32%|███▏ | 19/60 [00:04<00:08, 4.57it/s]\n 33%|███▎ | 20/60 [00:04<00:08, 4.58it/s]\n 35%|███▌ | 21/60 [00:04<00:08, 4.58it/s]\n 37%|███▋ | 22/60 [00:04<00:08, 4.59it/s]\n 38%|███▊ | 23/60 [00:05<00:08, 4.58it/s]\n 40%|████ | 24/60 [00:05<00:07, 4.59it/s]\n 42%|████▏ | 25/60 [00:05<00:07, 4.60it/s]\n 43%|████▎ | 26/60 [00:05<00:07, 4.60it/s]\n 45%|████▌ | 27/60 [00:06<00:07, 4.59it/s]\n 47%|████▋ | 28/60 [00:06<00:06, 4.59it/s]\n 48%|████▊ | 29/60 [00:06<00:06, 4.60it/s]\n 50%|█████ | 30/60 [00:06<00:06, 4.60it/s]\n 52%|█████▏ | 31/60 [00:06<00:06, 4.60it/s]\n 53%|█████▎ | 32/60 [00:07<00:06, 4.59it/s]\n 55%|█████▌ | 33/60 [00:07<00:05, 4.59it/s]\n 57%|█████▋ | 34/60 [00:07<00:05, 4.60it/s]\n 58%|█████▊ | 35/60 [00:07<00:05, 4.59it/s]\n 60%|██████ | 36/60 [00:07<00:05, 4.59it/s]\n 62%|██████▏ | 37/60 [00:08<00:05, 4.59it/s]\n 63%|██████▎ | 38/60 [00:08<00:04, 4.60it/s]\n 65%|██████▌ | 39/60 [00:08<00:04, 4.60it/s]\n 67%|██████▋ | 40/60 [00:08<00:04, 4.60it/s]\n 68%|██████▊ | 41/60 [00:09<00:04, 4.60it/s]\n\u001b[32m[2024-06-30 20:06:24] INFO \u001b[0m \u001b[34m[Task Queue] Already waiting for 10.1 seconds, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438\u001b[0m\n 70%|███████ | 42/60 [00:09<00:03, 4.60it/s]\n 72%|███████▏ | 43/60 [00:09<00:03, 4.61it/s]\n 73%|███████▎ | 44/60 [00:09<00:03, 4.60it/s]\n 75%|███████▌ | 45/60 [00:09<00:03, 4.60it/s]\n 77%|███████▋ | 46/60 [00:10<00:03, 4.59it/s]\n 78%|███████▊ | 47/60 [00:10<00:02, 4.60it/s]\n 80%|████████ | 48/60 [00:10<00:02, 4.61it/s]\n 82%|████████▏ | 49/60 [00:10<00:02, 4.61it/s]\n 83%|████████▎ | 50/60 [00:11<00:02, 4.62it/s]\n 85%|████████▌ | 51/60 [00:11<00:01, 4.62it/s]\n 87%|████████▋ | 52/60 [00:11<00:01, 4.62it/s]\n 88%|████████▊ | 53/60 [00:11<00:01, 4.62it/s]\n 90%|█████████ | 54/60 [00:11<00:01, 4.62it/s]\n 92%|█████████▏| 55/60 [00:12<00:01, 4.62it/s]\n 93%|█████████▎| 56/60 [00:12<00:00, 4.62it/s]\n 95%|█████████▌| 57/60 [00:12<00:00, 4.61it/s]\n 97%|█████████▋| 58/60 [00:12<00:00, 4.62it/s]\n 98%|█████████▊| 59/60 [00:12<00:00, 4.64it/s]\n100%|██████████| 60/60 [00:13<00:00, 4.65it/s]\n100%|██████████| 60/60 [00:13<00:00, 4.55it/s]\n\u001b[32m[2024-06-30 20:06:28] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 13.40 seconds\u001b[0m\n\u001b[32m[2024-06-30 20:06:30] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 16.825026872, "total_time": 16.870594 }, "output": { "paths": [ "https://replicate.delivery/pbxt/xnEuK8zZ2J7iFxfC0DWwnfvG4HEfn4CO0UL7n5rlfIRYMbPMB/5cb7418d-b4e2-474d-8a8e-2567c55059f1.png" ], "seeds": [ "562411294473046079" ] }, "started_at": "2024-06-30T20:06:14.599567Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/k519z92s39rgj0cgdb0vfksbjc", "cancel": "https://api.replicate.com/v1/predictions/k519z92s39rgj0cgdb0vfksbjc/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A portrait of a girl, realistic, golden hour.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '1088*896', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 20:06:14] INFO [Task Queue] Waiting for task finished, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438 [2024-06-30 20:06:14] INFO [Task Queue] Task queue start task, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438 [2024-06-30 20:06:14] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 20:06:14] INFO [Parameters] Sharpness = 3.0 [2024-06-30 20:06:14] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 20:06:14] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 20:06:14] INFO [Parameters] CFG = 7.0 [2024-06-30 20:06:14] INFO [Parameters] Seed = 562411294473046079 [2024-06-30 20:06:14] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 20:06:14] INFO [Parameters] Steps = 60 - 30 [2024-06-30 20:06:14] INFO [Fooocus] Initializing ... [2024-06-30 20:06:14] INFO [Fooocus] Loading models ... Refiner unloaded. [2024-06-30 20:06:14] INFO [Fooocus] Processing prompts ... [2024-06-30 20:06:14] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 20:06:15] INFO [Prompt Expansion] A portrait of a girl, realistic, golden hour, dramatic, intricate, elegant, highly detailed, sharp focus, illuminated background, incredible fine detail, advanced, full color, cinematic, dynamic light, great composition, atmosphere, merry, amazing, perfect, colorful, beautiful, inspirational, pure, calm, unique, scenic, thought, iconic, cute, fantastic, creative [2024-06-30 20:06:15] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 20:06:15] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 20:06:15] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 20:06:15] INFO [Parameters] Initial Latent shape: Image Space (896, 1088) [2024-06-30 20:06:15] INFO [Fooocus] Preparation time: 0.75 seconds [Sampler] refiner_swap_method = joint [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828 0%| | 0/60 [00:00<?, ?it/s] 2%|▏ | 1/60 [00:00<00:14, 4.20it/s] 3%|▎ | 2/60 [00:00<00:12, 4.49it/s] 5%|▌ | 3/60 [00:00<00:12, 4.61it/s] 7%|▋ | 4/60 [00:00<00:12, 4.63it/s] 8%|▊ | 5/60 [00:01<00:14, 3.75it/s] 10%|█ | 6/60 [00:01<00:13, 4.00it/s] 12%|█▏ | 7/60 [00:01<00:12, 4.19it/s] 13%|█▎ | 8/60 [00:01<00:12, 4.31it/s] 15%|█▌ | 9/60 [00:02<00:11, 4.38it/s] 17%|█▋ | 10/60 [00:02<00:11, 4.44it/s] 18%|█▊ | 11/60 [00:02<00:10, 4.49it/s] 20%|██ | 12/60 [00:02<00:10, 4.53it/s] 22%|██▏ | 13/60 [00:02<00:10, 4.55it/s] 23%|██▎ | 14/60 [00:03<00:10, 4.56it/s] 25%|██▌ | 15/60 [00:03<00:09, 4.56it/s] 27%|██▋ | 16/60 [00:03<00:09, 4.57it/s] 28%|██▊ | 17/60 [00:03<00:09, 4.58it/s] 30%|███ | 18/60 [00:04<00:09, 4.57it/s] 32%|███▏ | 19/60 [00:04<00:08, 4.57it/s] 33%|███▎ | 20/60 [00:04<00:08, 4.58it/s] 35%|███▌ | 21/60 [00:04<00:08, 4.58it/s] 37%|███▋ | 22/60 [00:04<00:08, 4.59it/s] 38%|███▊ | 23/60 [00:05<00:08, 4.58it/s] 40%|████ | 24/60 [00:05<00:07, 4.59it/s] 42%|████▏ | 25/60 [00:05<00:07, 4.60it/s] 43%|████▎ | 26/60 [00:05<00:07, 4.60it/s] 45%|████▌ | 27/60 [00:06<00:07, 4.59it/s] 47%|████▋ | 28/60 [00:06<00:06, 4.59it/s] 48%|████▊ | 29/60 [00:06<00:06, 4.60it/s] 50%|█████ | 30/60 [00:06<00:06, 4.60it/s] 52%|█████▏ | 31/60 [00:06<00:06, 4.60it/s] 53%|█████▎ | 32/60 [00:07<00:06, 4.59it/s] 55%|█████▌ | 33/60 [00:07<00:05, 4.59it/s] 57%|█████▋ | 34/60 [00:07<00:05, 4.60it/s] 58%|█████▊ | 35/60 [00:07<00:05, 4.59it/s] 60%|██████ | 36/60 [00:07<00:05, 4.59it/s] 62%|██████▏ | 37/60 [00:08<00:05, 4.59it/s] 63%|██████▎ | 38/60 [00:08<00:04, 4.60it/s] 65%|██████▌ | 39/60 [00:08<00:04, 4.60it/s] 67%|██████▋ | 40/60 [00:08<00:04, 4.60it/s] 68%|██████▊ | 41/60 [00:09<00:04, 4.60it/s] [2024-06-30 20:06:24] INFO [Task Queue] Already waiting for 10.1 seconds, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438 70%|███████ | 42/60 [00:09<00:03, 4.60it/s] 72%|███████▏ | 43/60 [00:09<00:03, 4.61it/s] 73%|███████▎ | 44/60 [00:09<00:03, 4.60it/s] 75%|███████▌ | 45/60 [00:09<00:03, 4.60it/s] 77%|███████▋ | 46/60 [00:10<00:03, 4.59it/s] 78%|███████▊ | 47/60 [00:10<00:02, 4.60it/s] 80%|████████ | 48/60 [00:10<00:02, 4.61it/s] 82%|████████▏ | 49/60 [00:10<00:02, 4.61it/s] 83%|████████▎ | 50/60 [00:11<00:02, 4.62it/s] 85%|████████▌ | 51/60 [00:11<00:01, 4.62it/s] 87%|████████▋ | 52/60 [00:11<00:01, 4.62it/s] 88%|████████▊ | 53/60 [00:11<00:01, 4.62it/s] 90%|█████████ | 54/60 [00:11<00:01, 4.62it/s] 92%|█████████▏| 55/60 [00:12<00:01, 4.62it/s] 93%|█████████▎| 56/60 [00:12<00:00, 4.62it/s] 95%|█████████▌| 57/60 [00:12<00:00, 4.61it/s] 97%|█████████▋| 58/60 [00:12<00:00, 4.62it/s] 98%|█████████▊| 59/60 [00:12<00:00, 4.64it/s] 100%|██████████| 60/60 [00:13<00:00, 4.65it/s] 100%|██████████| 60/60 [00:13<00:00, 4.55it/s] [2024-06-30 20:06:28] INFO [Fooocus] Generating and saving time: 13.40 seconds [2024-06-30 20:06:30] INFO [Task Queue] Finish task, job_id=e1312fba-58df-4c76-b2f8-a4105ebe7438 [Predictor Predict] Finished with 1 images
Prediction
skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6IDz8qswyad7drgp0cgdb190x9j34StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A portrait of a girl, realistic.
- cn_type1
- ImagePrompt
- cn_type2
- ImagePrompt
- cn_type3
- ImagePrompt
- cn_type4
- ImagePrompt
- sharpness
- 3
- image_seed
- -1
- uov_method
- Upscale (2x)
- 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
- outpaint_selections
- outpaint_distance_top
- 0
- performance_selection
- Quality
- outpaint_distance_left
- 0
- aspect_ratios_selection
- 832*1216
- outpaint_distance_right
- 0
- outpaint_distance_bottom
- 0
- inpaint_additional_prompt
{ "prompt": "A portrait of a girl, realistic.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "832*1216", "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"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", { input: { prompt: "A portrait of a girl, realistic.", cn_type1: "ImagePrompt", cn_type2: "ImagePrompt", cn_type3: "ImagePrompt", cn_type4: "ImagePrompt", sharpness: 3, image_seed: -1, uov_method: "Upscale (2x)", 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: "Quality", outpaint_distance_left: 0, aspect_ratios_selection: "832*1216", outpaint_distance_right: 0, outpaint_distance_bottom: 0, inpaint_additional_prompt: "" } } ); console.log(output);
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 skytells-research/focus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", input={ "prompt": "A portrait of a girl, realistic.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "832*1216", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run skytells-research/focus 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": "skytells-research/focus:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6", "input": { "prompt": "A portrait of a girl, realistic.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "832*1216", "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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6 \ -i 'prompt="A portrait of a girl, realistic."' \ -i 'cn_type1="ImagePrompt"' \ -i 'cn_type2="ImagePrompt"' \ -i 'cn_type3="ImagePrompt"' \ -i 'cn_type4="ImagePrompt"' \ -i 'sharpness=3' \ -i 'image_seed=-1' \ -i 'uov_method="Upscale (2x)"' \ -i 'image_number=1' \ -i 'guidance_scale=7' \ -i 'refiner_switch=0.5' \ -i 'negative_prompt=""' \ -i 'inpaint_strength=0.5' \ -i 'style_selections="Fooocus V2,Fooocus Enhance,Fooocus Sharp"' \ -i 'loras_custom_urls=""' \ -i 'uov_upscale_value=0' \ -i 'use_default_loras=true' \ -i 'outpaint_selections=""' \ -i 'outpaint_distance_top=0' \ -i 'performance_selection="Quality"' \ -i 'outpaint_distance_left=0' \ -i 'aspect_ratios_selection="832*1216"' \ -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/skytells-research/focus@sha256:b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "prompt": "A portrait of a girl, realistic.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "832*1216", "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": "2024-06-30T20:07:34.331196Z", "created_at": "2024-06-30T20:07:17.051000Z", "data_removed": false, "error": null, "id": "z8qswyad7drgp0cgdb190x9j34", "input": { "prompt": "A portrait of a girl, realistic.", "cn_type1": "ImagePrompt", "cn_type2": "ImagePrompt", "cn_type3": "ImagePrompt", "cn_type4": "ImagePrompt", "sharpness": 3, "image_seed": -1, "uov_method": "Upscale (2x)", "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": "Quality", "outpaint_distance_left": 0, "aspect_ratios_selection": "832*1216", "outpaint_distance_right": 0, "outpaint_distance_bottom": 0, "inpaint_additional_prompt": "" }, "logs": "[Predictor Predict] Params: {'prompt': 'A portrait of a girl, realistic.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '832*1216', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Task Queue] Waiting for task finished, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Task Queue] Task queue start task, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Adaptive CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Sharpness = 3.0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] ControlNet Softness = 0.25\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] ADM Scale = 1.5 : 0.8 : 0.3\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] CFG = 7.0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Seed = 6419922338249343093\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Sampler = dpmpp_2m_sde_gpu - karras\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Steps = 60 - 30\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Initializing ...\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Loading models ...\u001b[0m\nRefiner unloaded.\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Processing prompts ...\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Preparing Fooocus text #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Prompt Expansion] A portrait of a girl, realistic, highly detailed, epic, beautiful, elegant, luxury, elite, illuminated, intricate, dramatic, cinematic, modern, scenic, thought, extremely, sharp, fine detail, polished, open background, professional, artistic, color, great composition, appealing, incredible light, dynamic, atmosphere, rich vivid colors, perfect, ambient, flawless\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Encoding positive #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Encoding negative #1 ...\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Denoising Strength = 1.0\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Parameters] Initial Latent shape: Image Space (1216, 832)\u001b[0m\n\u001b[32m[2024-06-30 20:07:17] INFO \u001b[0m \u001b[34m[Fooocus] Preparation time: 0.77 seconds\u001b[0m\n[Sampler] refiner_swap_method = joint\n[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828\n 0%| | 0/60 [00:00<?, ?it/s]\n 2%|▏ | 1/60 [00:00<00:14, 4.06it/s]\n 3%|▎ | 2/60 [00:00<00:13, 4.37it/s]\n 5%|▌ | 3/60 [00:00<00:12, 4.51it/s]\n 7%|▋ | 4/60 [00:00<00:12, 4.55it/s]\n 8%|▊ | 5/60 [00:01<00:12, 4.56it/s]\n 10%|█ | 6/60 [00:01<00:11, 4.56it/s]\n 12%|█▏ | 7/60 [00:01<00:11, 4.55it/s]\n 13%|█▎ | 8/60 [00:01<00:11, 4.50it/s]\n 15%|█▌ | 9/60 [00:01<00:11, 4.51it/s]\n 17%|█▋ | 10/60 [00:02<00:11, 4.50it/s]\n 18%|█▊ | 11/60 [00:02<00:10, 4.51it/s]\n 20%|██ | 12/60 [00:02<00:10, 4.51it/s]\n 22%|██▏ | 13/60 [00:02<00:10, 4.51it/s]\n 23%|██▎ | 14/60 [00:03<00:10, 4.51it/s]\n 25%|██▌ | 15/60 [00:03<00:09, 4.51it/s]\n 27%|██▋ | 16/60 [00:03<00:09, 4.51it/s]\n 28%|██▊ | 17/60 [00:03<00:09, 4.51it/s]\n 30%|███ | 18/60 [00:03<00:09, 4.51it/s]\n 32%|███▏ | 19/60 [00:04<00:09, 4.50it/s]\n 33%|███▎ | 20/60 [00:04<00:08, 4.49it/s]\n 35%|███▌ | 21/60 [00:04<00:08, 4.49it/s]\n 37%|███▋ | 22/60 [00:04<00:08, 4.49it/s]\n 38%|███▊ | 23/60 [00:05<00:08, 4.49it/s]\n 40%|████ | 24/60 [00:05<00:08, 4.48it/s]\n 42%|████▏ | 25/60 [00:05<00:07, 4.47it/s]\n 43%|████▎ | 26/60 [00:05<00:07, 4.46it/s]\n 45%|████▌ | 27/60 [00:06<00:07, 4.47it/s]\n 47%|████▋ | 28/60 [00:06<00:07, 4.46it/s]\n 48%|████▊ | 29/60 [00:06<00:06, 4.45it/s]\n 50%|█████ | 30/60 [00:06<00:06, 4.45it/s]\n 52%|█████▏ | 31/60 [00:06<00:06, 4.45it/s]\n 53%|█████▎ | 32/60 [00:07<00:06, 4.45it/s]\n 55%|█████▌ | 33/60 [00:07<00:06, 4.45it/s]\n 57%|█████▋ | 34/60 [00:07<00:05, 4.44it/s]\n 58%|█████▊ | 35/60 [00:07<00:05, 4.44it/s]\n 60%|██████ | 36/60 [00:08<00:05, 4.44it/s]\n 62%|██████▏ | 37/60 [00:08<00:05, 4.44it/s]\n 63%|██████▎ | 38/60 [00:08<00:04, 4.44it/s]\n 65%|██████▌ | 39/60 [00:08<00:04, 4.43it/s]\n 67%|██████▋ | 40/60 [00:08<00:04, 4.43it/s]\n\u001b[32m[2024-06-30 20:07:27] INFO \u001b[0m \u001b[34m[Task Queue] Already waiting for 10.0 seconds, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0\u001b[0m\n 68%|██████▊ | 41/60 [00:09<00:04, 4.43it/s]\n 70%|███████ | 42/60 [00:09<00:04, 4.43it/s]\n 72%|███████▏ | 43/60 [00:09<00:03, 4.43it/s]\n 73%|███████▎ | 44/60 [00:09<00:03, 4.43it/s]\n 75%|███████▌ | 45/60 [00:10<00:03, 4.43it/s]\n 77%|███████▋ | 46/60 [00:10<00:03, 4.42it/s]\n 78%|███████▊ | 47/60 [00:10<00:02, 4.41it/s]\n 80%|████████ | 48/60 [00:10<00:02, 4.42it/s]\n 82%|████████▏ | 49/60 [00:10<00:02, 4.41it/s]\n 83%|████████▎ | 50/60 [00:11<00:02, 4.42it/s]\n 85%|████████▌ | 51/60 [00:11<00:02, 4.42it/s]\n 87%|████████▋ | 52/60 [00:11<00:01, 4.42it/s]\n 88%|████████▊ | 53/60 [00:11<00:01, 4.42it/s]\n 90%|█████████ | 54/60 [00:12<00:01, 4.42it/s]\n 92%|█████████▏| 55/60 [00:12<00:01, 4.42it/s]\n 93%|█████████▎| 56/60 [00:12<00:00, 4.42it/s]\n 95%|█████████▌| 57/60 [00:12<00:00, 4.42it/s]\n 97%|█████████▋| 58/60 [00:13<00:00, 4.43it/s]\n 98%|█████████▊| 59/60 [00:13<00:00, 4.44it/s]\n100%|██████████| 60/60 [00:13<00:00, 4.45it/s]\n100%|██████████| 60/60 [00:13<00:00, 4.46it/s]\n\u001b[32m[2024-06-30 20:07:31] INFO \u001b[0m \u001b[34m[Fooocus] Generating and saving time: 13.69 seconds\u001b[0m\n\u001b[32m[2024-06-30 20:07:32] INFO \u001b[0m \u001b[34m[Task Queue] Finish task, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0\u001b[0m\n[Predictor Predict] Finished with 1 images", "metrics": { "predict_time": 17.235524672, "total_time": 17.280196 }, "output": { "paths": [ "https://replicate.delivery/pbxt/HkzDxdukKIZVIRc2W32nD9AAf9Iex6zQP4xXzRQM1fULotHmA/eff46d94-0bbe-4edd-8760-c415d9491c5d.png" ], "seeds": [ "6419922338249343093" ] }, "started_at": "2024-06-30T20:07:17.095671Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/z8qswyad7drgp0cgdb190x9j34", "cancel": "https://api.replicate.com/v1/predictions/z8qswyad7drgp0cgdb190x9j34/cancel" }, "version": "b10ff975d21fcc846be90dd57d4c7a99003b064116ef2b667b78d435421387d6" }
Generated in[Predictor Predict] Params: {'prompt': 'A portrait of a girl, realistic.', 'negative_prompt': '', 'style_selections': ['Fooocus V2', 'Fooocus Enhance', 'Fooocus Sharp'], 'performance_selection': 'Quality', 'aspect_ratios_selection': '832*1216', 'image_number': 1, 'image_seed': -1, 'sharpness': 3.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': 'Upscale (2x)', '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-06-30 20:07:17] INFO [Task Queue] Waiting for task finished, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0 [2024-06-30 20:07:17] INFO [Task Queue] Task queue start task, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0 [2024-06-30 20:07:17] INFO [Parameters] Adaptive CFG = 7.0 [2024-06-30 20:07:17] INFO [Parameters] Sharpness = 3.0 [2024-06-30 20:07:17] INFO [Parameters] ControlNet Softness = 0.25 [2024-06-30 20:07:17] INFO [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [2024-06-30 20:07:17] INFO [Parameters] CFG = 7.0 [2024-06-30 20:07:17] INFO [Parameters] Seed = 6419922338249343093 [2024-06-30 20:07:17] INFO [Parameters] Sampler = dpmpp_2m_sde_gpu - karras [2024-06-30 20:07:17] INFO [Parameters] Steps = 60 - 30 [2024-06-30 20:07:17] INFO [Fooocus] Initializing ... [2024-06-30 20:07:17] INFO [Fooocus] Loading models ... Refiner unloaded. [2024-06-30 20:07:17] INFO [Fooocus] Processing prompts ... [2024-06-30 20:07:17] INFO [Fooocus] Preparing Fooocus text #1 ... [2024-06-30 20:07:17] INFO [Prompt Expansion] A portrait of a girl, realistic, highly detailed, epic, beautiful, elegant, luxury, elite, illuminated, intricate, dramatic, cinematic, modern, scenic, thought, extremely, sharp, fine detail, polished, open background, professional, artistic, color, great composition, appealing, incredible light, dynamic, atmosphere, rich vivid colors, perfect, ambient, flawless [2024-06-30 20:07:17] INFO [Fooocus] Encoding positive #1 ... [2024-06-30 20:07:17] INFO [Fooocus] Encoding negative #1 ... [2024-06-30 20:07:17] INFO [Parameters] Denoising Strength = 1.0 [2024-06-30 20:07:17] INFO [Parameters] Initial Latent shape: Image Space (1216, 832) [2024-06-30 20:07:17] INFO [Fooocus] Preparation time: 0.77 seconds [Sampler] refiner_swap_method = joint [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828 0%| | 0/60 [00:00<?, ?it/s] 2%|▏ | 1/60 [00:00<00:14, 4.06it/s] 3%|▎ | 2/60 [00:00<00:13, 4.37it/s] 5%|▌ | 3/60 [00:00<00:12, 4.51it/s] 7%|▋ | 4/60 [00:00<00:12, 4.55it/s] 8%|▊ | 5/60 [00:01<00:12, 4.56it/s] 10%|█ | 6/60 [00:01<00:11, 4.56it/s] 12%|█▏ | 7/60 [00:01<00:11, 4.55it/s] 13%|█▎ | 8/60 [00:01<00:11, 4.50it/s] 15%|█▌ | 9/60 [00:01<00:11, 4.51it/s] 17%|█▋ | 10/60 [00:02<00:11, 4.50it/s] 18%|█▊ | 11/60 [00:02<00:10, 4.51it/s] 20%|██ | 12/60 [00:02<00:10, 4.51it/s] 22%|██▏ | 13/60 [00:02<00:10, 4.51it/s] 23%|██▎ | 14/60 [00:03<00:10, 4.51it/s] 25%|██▌ | 15/60 [00:03<00:09, 4.51it/s] 27%|██▋ | 16/60 [00:03<00:09, 4.51it/s] 28%|██▊ | 17/60 [00:03<00:09, 4.51it/s] 30%|███ | 18/60 [00:03<00:09, 4.51it/s] 32%|███▏ | 19/60 [00:04<00:09, 4.50it/s] 33%|███▎ | 20/60 [00:04<00:08, 4.49it/s] 35%|███▌ | 21/60 [00:04<00:08, 4.49it/s] 37%|███▋ | 22/60 [00:04<00:08, 4.49it/s] 38%|███▊ | 23/60 [00:05<00:08, 4.49it/s] 40%|████ | 24/60 [00:05<00:08, 4.48it/s] 42%|████▏ | 25/60 [00:05<00:07, 4.47it/s] 43%|████▎ | 26/60 [00:05<00:07, 4.46it/s] 45%|████▌ | 27/60 [00:06<00:07, 4.47it/s] 47%|████▋ | 28/60 [00:06<00:07, 4.46it/s] 48%|████▊ | 29/60 [00:06<00:06, 4.45it/s] 50%|█████ | 30/60 [00:06<00:06, 4.45it/s] 52%|█████▏ | 31/60 [00:06<00:06, 4.45it/s] 53%|█████▎ | 32/60 [00:07<00:06, 4.45it/s] 55%|█████▌ | 33/60 [00:07<00:06, 4.45it/s] 57%|█████▋ | 34/60 [00:07<00:05, 4.44it/s] 58%|█████▊ | 35/60 [00:07<00:05, 4.44it/s] 60%|██████ | 36/60 [00:08<00:05, 4.44it/s] 62%|██████▏ | 37/60 [00:08<00:05, 4.44it/s] 63%|██████▎ | 38/60 [00:08<00:04, 4.44it/s] 65%|██████▌ | 39/60 [00:08<00:04, 4.43it/s] 67%|██████▋ | 40/60 [00:08<00:04, 4.43it/s] [2024-06-30 20:07:27] INFO [Task Queue] Already waiting for 10.0 seconds, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0 68%|██████▊ | 41/60 [00:09<00:04, 4.43it/s] 70%|███████ | 42/60 [00:09<00:04, 4.43it/s] 72%|███████▏ | 43/60 [00:09<00:03, 4.43it/s] 73%|███████▎ | 44/60 [00:09<00:03, 4.43it/s] 75%|███████▌ | 45/60 [00:10<00:03, 4.43it/s] 77%|███████▋ | 46/60 [00:10<00:03, 4.42it/s] 78%|███████▊ | 47/60 [00:10<00:02, 4.41it/s] 80%|████████ | 48/60 [00:10<00:02, 4.42it/s] 82%|████████▏ | 49/60 [00:10<00:02, 4.41it/s] 83%|████████▎ | 50/60 [00:11<00:02, 4.42it/s] 85%|████████▌ | 51/60 [00:11<00:02, 4.42it/s] 87%|████████▋ | 52/60 [00:11<00:01, 4.42it/s] 88%|████████▊ | 53/60 [00:11<00:01, 4.42it/s] 90%|█████████ | 54/60 [00:12<00:01, 4.42it/s] 92%|█████████▏| 55/60 [00:12<00:01, 4.42it/s] 93%|█████████▎| 56/60 [00:12<00:00, 4.42it/s] 95%|█████████▌| 57/60 [00:12<00:00, 4.42it/s] 97%|█████████▋| 58/60 [00:13<00:00, 4.43it/s] 98%|█████████▊| 59/60 [00:13<00:00, 4.44it/s] 100%|██████████| 60/60 [00:13<00:00, 4.45it/s] 100%|██████████| 60/60 [00:13<00:00, 4.46it/s] [2024-06-30 20:07:31] INFO [Fooocus] Generating and saving time: 13.69 seconds [2024-06-30 20:07:32] INFO [Task Queue] Finish task, job_id=89d42172-dbb9-4e70-ab88-2484059b86c0 [Predictor Predict] Finished with 1 images
Want to make some of these yourself?
Run this model