vetkastar / stable_diffusion_control_photo_epic

  • Public
  • 17.4K runs
  • L40S

Input

Run this model in Node.js with one line of code:

npx create-replicate --model=vetkastar/stable_diffusion_control_photo_epic
or set up a project from scratch
npm install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import and set up the client:
import Replicate from "replicate";

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

Run vetkastar/stable_diffusion_control_photo_epic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "vetkastar/stable_diffusion_control_photo_epic:4ca2dab584c2d24a272bc14e47a9cdb44822f656c2c6f12575f84b83a3618f9f",
  {
    input: {
      width: 512,
      height: 512,
      prompt: "",
      tiling: false,
      sampler: "Euler a",
      ad_model: "face_yolov8s",
      hr_scale: 2,
      ad_prompt: "",
      cfg_scale: 7,
      ad_enabled: false,
      ad_sampler: "Euler a",
      hr_enabled: false,
      hr_resize_x: 0,
      hr_resize_y: 0,
      hr_upscaler: "4x_foolhardy_Remacri",
      num_outputs: 1,
      ad_mask_blur: 4,
      ad_2_ad_model: "face_yolov8s",
      ad_3_ad_model: "face_yolov8s",
      ad_4_ad_model: "face_yolov8s",
      ad_confidence: 0.3,
      lineart_model: "controlnet11Models_lineart",
      sampler_steps: 20,
      ad_2_ad_prompt: "",
      ad_3_ad_prompt: "",
      ad_4_ad_prompt: "",
      ad_use_sampler: true,
      openpose_model: "controlnet11Models_openpose",
      scribble_model: "controlnet11Models_scribble",
      ad_2_ad_enabled: false,
      ad_2_ad_sampler: "Euler a",
      ad_3_ad_enabled: false,
      ad_3_ad_sampler: "Euler a",
      ad_4_ad_enabled: false,
      ad_4_ad_sampler: "Euler a",
      ad_dilate_erode: 4,
      generation_type: "txt2img",
      lineart_enabled: false,
      negative_prompt: "(deformed, distorted, disfigured:1.3), (naked, nude:1.5), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
      tile_blur_model: "controlnet11Models_tile",
      ad_inpaint_width: 512,
      openpose_enabled: false,
      scribble_enabled: false,
      ad_2_ad_mask_blur: 4,
      ad_3_ad_mask_blur: 4,
      ad_4_ad_mask_blur: 4,
      ad_inpaint_height: 512,
      reference_enabled: false,
      tile_blur_enabled: false,
      ad_2_ad_confidence: 0.3,
      ad_3_ad_confidence: 0.3,
      ad_4_ad_confidence: 0.3,
      ad_mask_merge_mode: "None",
      ad_negative_prompt: "",
      denoising_strength: 0.75,
      instruct_p2p_model: "control_v11e_sd15_ip2p_fp16",
      sd_upscaler_enable: false,
      ad_2_ad_use_sampler: true,
      ad_3_ad_use_sampler: true,
      ad_4_ad_use_sampler: true,
      reference_2_enabled: false,
      ad_2_ad_dilate_erode: 4,
      ad_3_ad_dilate_erode: 4,
      ad_4_ad_dilate_erode: 4,
      hr_second_pass_steps: 0,
      instruct_p2p_enabled: false,
      lineart_control_mode: "Balanced",
      lineart_guidance_end: 1,
      lineart_preprocessor: "lineart_realistic",
      sd_upscaler_upscaler: "4x_foolhardy_Remacri",
      ad_2_ad_inpaint_width: 512,
      ad_3_ad_inpaint_width: 512,
      ad_4_ad_inpaint_width: 512,
      ad_denoising_strength: 0.4,
      openpose_control_mode: "Balanced",
      openpose_guidance_end: 1,
      openpose_preprocessor: "openpose_full",
      scribble_control_mode: "Balanced",
      scribble_guidance_end: 1,
      scribble_preprocessor: "t2ia_sketch_pidi",
      ad_2_ad_inpaint_height: 512,
      ad_3_ad_inpaint_height: 512,
      ad_4_ad_inpaint_height: 512,
      ad_inpaint_only_masked: true,
      lineart_control_weight: 1,
      lineart_guidance_start: 0,
      lineart_use_image_size: false,
      reference_control_mode: "Balanced",
      reference_guidance_end: 1,
      reference_preprocessor: "reference_only",
      tile_blur_control_mode: "Balanced",
      tile_blur_guidance_end: 1,
      tile_blur_preprocessor: "tile_resample",
      ad_2_ad_mask_merge_mode: "None",
      ad_2_ad_negative_prompt: "",
      ad_3_ad_mask_merge_mode: "None",
      ad_3_ad_negative_prompt: "",
      ad_4_ad_mask_merge_mode: "None",
      ad_4_ad_negative_prompt: "",
      openpose_control_weight: 1,
      openpose_guidance_start: 0,
      openpose_use_image_size: false,
      scribble_control_weight: 1,
      scribble_guidance_start: 0,
      scribble_use_image_size: false,
      scribble_xdog_threshold: 32,
      clip_stop_at_last_layers: 2,
      reference_2_control_mode: "Balanced",
      reference_2_guidance_end: 1,
      reference_2_preprocessor: "reference_only",
      reference_control_weight: 1,
      reference_guidance_start: 0,
      reference_style_fidelity: 0.5,
      reference_use_image_size: false,
      sd_upscaler_scale_factor: 2,
      sd_upscaler_tile_overlap: 16,
      tile_blur_control_weight: 1,
      tile_blur_guidance_start: 0,
      tile_blur_use_image_size: false,
      instruct_p2p_control_mode: "Balanced",
      instruct_p2p_guidance_end: 1,
      ad_2_ad_denoising_strength: 0.4,
      ad_3_ad_denoising_strength: 0.4,
      ad_4_ad_denoising_strength: 0.4,
      reference_2_control_weight: 1,
      reference_2_guidance_start: 0,
      reference_2_style_fidelity: 0.5,
      reference_2_use_image_size: false,
      ad_2_ad_inpaint_only_masked: true,
      ad_3_ad_inpaint_only_masked: true,
      ad_4_ad_inpaint_only_masked: true,
      ad_use_inpaint_width_height: false,
      instruct_p2p_control_weight: 1,
      instruct_p2p_guidance_start: 0,
      instruct_p2p_use_image_size: false,
      tile_blur_down_sampling_rate: 1,
      ad_inpaint_only_masked_padding: 32,
      lineart_preprocessor_resolution: 512,
      ad_2_ad_use_inpaint_width_height: false,
      ad_3_ad_use_inpaint_width_height: false,
      ad_4_ad_use_inpaint_width_height: false,
      openpose_preprocessor_resolution: 512,
      scribble_preprocessor_resolution: 512,
      ad_2_ad_inpaint_only_masked_padding: 32,
      ad_3_ad_inpaint_only_masked_padding: 32,
      ad_4_ad_inpaint_only_masked_padding: 32
    }
  }
);

console.log(output);

To learn more, take a look at the guide on getting started with Node.js.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model costs approximately $0.0055 to run on Replicate, or 181 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 6 seconds. The predict time for this model varies significantly based on the inputs.

Readme

This model doesn't have a readme.