vetkastar / sd_1.8

  • Public
  • 94 runs
  • L40S

Input

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

npx create-replicate --model=vetkastar/sd_1.8
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/sd_1.8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "vetkastar/sd_1.8:476509a1420ba2a184504f58b293e8459559756bdfd2ede00cdf387cc2fbf9da",
  {
    input: {
      width: 512,
      height: 512,
      prompt: "",
      sampler: "Euler a",
      ad_model: "face_yolov8s",
      hr_scale: 2,
      ad_prompt: "",
      cfg_scale: 7,
      mask_blur: 4,
      seg_model: "controlnet11Models_seg",
      ad_enabled: false,
      ad_sampler: "Euler a",
      checkpoint: "deliberate_v2",
      hr_enabled: false,
      mlsd_model: "controlnet11Models_mlsd",
      canny_model: "controlnet11Models_canny",
      depth_model: "controlnet11Models_depth",
      hr_resize_x: 0,
      hr_resize_y: 0,
      hr_upscaler: "4x_foolhardy_Remacri",
      num_outputs: 1,
      resize_mode: "Just resize",
      seg_enabled: false,
      ad_mask_blur: 4,
      mlsd_enabled: false,
      ad_2_ad_model: "face_yolov8s",
      ad_3_ad_model: "face_yolov8s",
      ad_4_ad_model: "face_yolov8s",
      ad_confidence: 0.3,
      canny_enabled: false,
      depth_enabled: false,
      inpaint_model: "controlnet11Models_inpaint",
      lineart_model: "controlnet11Models_lineart",
      recolor_model: "ioclab_sd15_recolor",
      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",
      softedge_model: "controlnet11Models_softedge",
      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",
      inpaint_enabled: false,
      inpainting_fill: "Original",
      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",
      recolor_enabled: false,
      tile_blur_model: "controlnet11Models_tile",
      ad_inpaint_width: 512,
      inpaint_full_res: "Whole picture",
      instant_id_model: "control_instant_id_sdxl",
      ip_adapter_model: "ip-adapter_sd15",
      openpose_enabled: false,
      scribble_enabled: false,
      seg_control_mode: "Balanced",
      seg_guidance_end: 1,
      seg_preprocessor: "seg_ofade20k",
      softedge_enabled: false,
      ad_2_ad_mask_blur: 4,
      ad_3_ad_mask_blur: 4,
      ad_4_ad_mask_blur: 4,
      ad_inpaint_height: 512,
      mlsd_control_mode: "Balanced",
      mlsd_guidance_end: 1,
      mlsd_preprocessor: "mlsd",
      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: "",
      canny_control_mode: "Balanced",
      canny_guidance_end: 1,
      canny_preprocessor: "canny",
      denoising_strength: 0.75,
      depth_control_mode: "Balanced",
      depth_guidance_end: 1,
      depth_preprocessor: "depth_anything",
      instant_id_enabled: false,
      instruct_p2p_model: "control_v11e_sd15_ip2p_fp16",
      ip_adapter_enabled: false,
      sd_upscaler_enable: false,
      seg_control_weight: 1,
      seg_guidance_start: 0,
      seg_use_image_size: false,
      ad_2_ad_use_sampler: true,
      ad_3_ad_use_sampler: true,
      ad_4_ad_use_sampler: true,
      canny_low_threshold: 100,
      mlsd_control_weight: 0.8,
      mlsd_guidance_start: 0,
      mlsd_use_image_size: false,
      reference_2_enabled: false,
      ad_2_ad_dilate_erode: 4,
      ad_3_ad_dilate_erode: 4,
      ad_4_ad_dilate_erode: 4,
      canny_control_weight: 1,
      canny_guidance_start: 0,
      canny_high_threshold: 200,
      canny_use_image_size: false,
      depth_control_weight: 1,
      depth_guidance_start: 0,
      depth_use_image_size: false,
      hr_second_pass_steps: 0,
      inpaint_control_mode: "Balanced",
      inpaint_guidance_end: 1,
      inpaint_preprocessor: "inpaint_only",
      instruct_p2p_enabled: false,
      lineart_control_mode: "Balanced",
      lineart_guidance_end: 1,
      lineart_preprocessor: "lineart_realistic",
      recolor_control_mode: "Balanced",
      recolor_guidance_end: 1,
      recolor_preprocessor: "recolor_luminance",
      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,
      mlsd__value_threshold: 0,
      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",
      softedge_control_mode: "Balanced",
      softedge_guidance_end: 1,
      softedge_preprocessor: "softedge_hed",
      ad_2_ad_inpaint_height: 512,
      ad_3_ad_inpaint_height: 512,
      ad_4_ad_inpaint_height: 512,
      ad_inpaint_only_masked: true,
      inpaint_control_weight: 1,
      inpaint_guidance_start: 0,
      inpaint_use_image_size: false,
      lineart_control_weight: 1,
      lineart_guidance_start: 0,
      lineart_use_image_size: false,
      recolor_control_weight: 1,
      recolor_guidance_start: 0,
      recolor_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: "",
      instant_id_control_mode: "Balanced",
      instant_id_guidance_end: 1,
      instant_id_preprocessor: "Без препроцессора",
      ip_adapter_control_mode: "Balanced",
      ip_adapter_guidance_end: 1,
      ip_adapter_preprocessor: "ip-adapter-auto",
      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,
      softedge_control_weight: 1,
      softedge_guidance_start: 0,
      softedge_use_image_size: false,
      clip_stop_at_last_layers: 2,
      inpaint_full_res_padding: 32,
      mlsd__distance_threshold: 0,
      recolor_gamma_correction: 1,
      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,
      instant_id_control_weight: 0.8,
      instant_id_guidance_start: 0,
      instant_id_use_image_size: false,
      instruct_p2p_control_mode: "Balanced",
      instruct_p2p_guidance_end: 1,
      ip_adapter_control_weight: 0.8,
      ip_adapter_guidance_start: 0,
      ip_adapter_use_image_size: false,
      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,
      seg_preprocessor_resolution: 512,
      mlsd_preprocessor_resolution: 512,
      tile_blur_down_sampling_rate: 1,
      canny_preprocessor_resolution: 512,
      depth_preprocessor_resolution: 512,
      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,
      softedge_preprocessor_resolution: 512,
      ip_adapter_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 runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.