Readme
This model doesn't have a readme.
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run mohamad1998630/controlnet-seg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"mohamad1998630/controlnet-seg:6a3ef42b7e0d227c2d2abb2443de9c280dde48e48bace94c91ee4aa44f8144bd",
{
input: {
eta: 0,
seed: 3.5,
scale: 9,
a_prompt: "best quality, extremely detailed",
n_prompt: "longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
strength: 1,
ddim_steps: 20,
guess_mode: false,
num_samples: 1,
image_resolution: 512,
detect_resolution: 512
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia T4 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.