genius-grid / inference

  • Public
  • 15 runs
  • L40S

Input

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

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

const output = await replicate.run(
  "genius-grid/inference:b8552126bd73b766a6185e77b8161055bc72e4c3499fec07c42ad3114b77cb6d",
  {
    input: {
      width: 768,
      height: 1024,
      prompt: "A photo of TOK",
      refine: "no_refiner",
      scheduler: "DPM++SDEKarras",
      lora_scale: 0.8,
      num_outputs: 1,
      face_padding: 2,
      face_resize_to: 1024,
      guidance_scale: 3,
      inpaint_prompt: "A photo of TOK",
      high_noise_frac: 0.8,
      negative_prompt: "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
      prompt_strength: 0.8,
      inpaint_strength: 0.35,
      mask_blur_amount: 8,
      upscale_face_image: false,
      num_inference_steps: 50,
      upscale_final_image: false,
      inpaint_guidance_scale: 3,
      inpaint_negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
      include_debug_output_images: true,
      inpaint_num_inference_steps: 25,
      controlnet_conditioning_scale: 1
    }
  }
);
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.