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 prompthunt/cog-sd15-inference-embeds using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"prompthunt/cog-sd15-inference-embeds:d9628a3cdae6c1f1b91d60afc3667b988b890550d6225bf715764224924d6378",
{
input: {
width: 512,
height: 512,
prompt: "An photo of cjw man",
refine: "no_refiner",
scheduler: "K_EULER",
num_outputs: 1,
root_prompt: "crisp details, neutral expression, high-definition, sharp focus, ambient lighting, masterpiece, cinematic light, cinematic lighting, ultrarealistic, photorealistic, 8k, raw photo, realistic, sharp focus on eyes, symmetrical eyes, intact eyes, hyperrealistic, highest quality, best quality, highly detailed, masterpiece, best quality, extremely detailed 8k wallpaper, masterpiece, best quality, ultra-detailed, best shadow, detailed background, detailed face, detailed eyes, high contrast, best illumination, detailed face, dulux, caustic, dynamic angle, detailed glow. dramatic lighting. highly detailed, insanely detailed hair, symmetrical, intricate details, professionally retouched, 8k high definition. strong bokeh. award winning photo.",
face_padding: 2,
inpaint_face: false,
upscale_face: false,
upscale_scale: 2,
controlnet_end: 1,
face_resize_to: 512,
guidance_scale: 7.5,
inpaint_prompt: "A photo of cjw man",
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.8,
controlnet_start: 0,
inpaint_strength: 0.35,
mask_blur_amount: 8,
should_swap_face: false,
show_debug_images: false,
inpaint_lora_scale: 0.6,
codeformer_fidelity: 0.7,
num_inference_steps: 50,
upscale_final_image: false,
root_negative_prompt: "old, multiple heads, 2 heads, elongated body, double image, 2 faces, multiple people, double head, <cyberrealistic-neg>, <badhandv4>, <negative-hand>, <baddream> , (nsfw), nsfw, nsfw, nsfw, nude, nude, nude, porn, porn, porn, naked, naked, nude, porn, frilly, frilled, lacy, ruffled, armpit hair, victorian, (sunglasses), (sunglasses), (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
inpaint_controlnet_end: 1,
inpaint_guidance_scale: 3,
inpaint_negative_prompt: "",
inpaint_controlnet_start: 0,
inpaint_num_inference_steps: 25,
controlnet_conditioning_scale: 0.75,
inpaint_controlnet_conditioning_scale: 0.75
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip 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
Run prompthunt/cog-sd15-inference-embeds using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prompthunt/cog-sd15-inference-embeds:d9628a3cdae6c1f1b91d60afc3667b988b890550d6225bf715764224924d6378",
input={
"width": 512,
"height": 512,
"prompt": "An photo of cjw man",
"refine": "no_refiner",
"scheduler": "K_EULER",
"num_outputs": 1,
"root_prompt": "crisp details, neutral expression, high-definition, sharp focus, ambient lighting, masterpiece, cinematic light, cinematic lighting, ultrarealistic, photorealistic, 8k, raw photo, realistic, sharp focus on eyes, symmetrical eyes, intact eyes, hyperrealistic, highest quality, best quality, highly detailed, masterpiece, best quality, extremely detailed 8k wallpaper, masterpiece, best quality, ultra-detailed, best shadow, detailed background, detailed face, detailed eyes, high contrast, best illumination, detailed face, dulux, caustic, dynamic angle, detailed glow. dramatic lighting. highly detailed, insanely detailed hair, symmetrical, intricate details, professionally retouched, 8k high definition. strong bokeh. award winning photo.",
"face_padding": 2,
"inpaint_face": False,
"upscale_face": False,
"upscale_scale": 2,
"controlnet_end": 1,
"face_resize_to": 512,
"guidance_scale": 7.5,
"inpaint_prompt": "A photo of cjw man",
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"controlnet_start": 0,
"inpaint_strength": 0.35,
"mask_blur_amount": 8,
"should_swap_face": False,
"show_debug_images": False,
"inpaint_lora_scale": 0.6,
"codeformer_fidelity": 0.7,
"num_inference_steps": 50,
"upscale_final_image": False,
"root_negative_prompt": "old, multiple heads, 2 heads, elongated body, double image, 2 faces, multiple people, double head, <cyberrealistic-neg>, <badhandv4>, <negative-hand>, <baddream> , (nsfw), nsfw, nsfw, nsfw, nude, nude, nude, porn, porn, porn, naked, naked, nude, porn, frilly, frilled, lacy, ruffled, armpit hair, victorian, (sunglasses), (sunglasses), (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"inpaint_controlnet_end": 1,
"inpaint_guidance_scale": 3,
"inpaint_negative_prompt": "",
"inpaint_controlnet_start": 0,
"inpaint_num_inference_steps": 25,
"controlnet_conditioning_scale": 0.75,
"inpaint_controlnet_conditioning_scale": 0.75
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run prompthunt/cog-sd15-inference-embeds 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": "d9628a3cdae6c1f1b91d60afc3667b988b890550d6225bf715764224924d6378",
"input": {
"width": 512,
"height": 512,
"prompt": "An photo of cjw man",
"refine": "no_refiner",
"scheduler": "K_EULER",
"num_outputs": 1,
"root_prompt": "crisp details, neutral expression, high-definition, sharp focus, ambient lighting, masterpiece, cinematic light, cinematic lighting, ultrarealistic, photorealistic, 8k, raw photo, realistic, sharp focus on eyes, symmetrical eyes, intact eyes, hyperrealistic, highest quality, best quality, highly detailed, masterpiece, best quality, extremely detailed 8k wallpaper, masterpiece, best quality, ultra-detailed, best shadow, detailed background, detailed face, detailed eyes, high contrast, best illumination, detailed face, dulux, caustic, dynamic angle, detailed glow. dramatic lighting. highly detailed, insanely detailed hair, symmetrical, intricate details, professionally retouched, 8k high definition. strong bokeh. award winning photo.",
"face_padding": 2,
"inpaint_face": false,
"upscale_face": false,
"upscale_scale": 2,
"controlnet_end": 1,
"face_resize_to": 512,
"guidance_scale": 7.5,
"inpaint_prompt": "A photo of cjw man",
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"controlnet_start": 0,
"inpaint_strength": 0.35,
"mask_blur_amount": 8,
"should_swap_face": false,
"show_debug_images": false,
"inpaint_lora_scale": 0.6,
"codeformer_fidelity": 0.7,
"num_inference_steps": 50,
"upscale_final_image": false,
"root_negative_prompt": "old, multiple heads, 2 heads, elongated body, double image, 2 faces, multiple people, double head, <cyberrealistic-neg>, <badhandv4>, <negative-hand>, <baddream> , (nsfw), nsfw, nsfw, nsfw, nude, nude, nude, porn, porn, porn, naked, naked, nude, porn, frilly, frilled, lacy, ruffled, armpit hair, victorian, (sunglasses), (sunglasses), (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
"inpaint_controlnet_end": 1,
"inpaint_guidance_scale": 3,
"inpaint_negative_prompt": "",
"inpaint_controlnet_start": 0,
"inpaint_num_inference_steps": 25,
"controlnet_conditioning_scale": 0.75,
"inpaint_controlnet_conditioning_scale": 0.75
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input