Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
tgohblio /instant-id-albedobase-xl:2a2afbff
Input
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run tgohblio/instant-id-albedobase-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
{
input: {
image: "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg",
width: 768,
height: 1024,
prompt: "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous",
guidance_scale: 0,
safety_checker: true,
negative_prompt: "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature",
ip_adapter_scale: 0.7,
num_inference_steps: 6,
controlnet_conditioning_scale: 0.7
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
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 tgohblio/instant-id-albedobase-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
input={
"image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg",
"width": 768,
"height": 1024,
"prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous",
"guidance_scale": 0,
"safety_checker": True,
"negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature",
"ip_adapter_scale": 0.7,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.7
}
)
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 tgohblio/instant-id-albedobase-xl 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": "tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
"input": {
"image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg",
"width": 768,
"height": 1024,
"prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous",
"guidance_scale": 0,
"safety_checker": true,
"negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature",
"ip_adapter_scale": 0.7,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.7
}
}' \
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
Output
{
"completed_at": "2024-03-19T15:38:55.063797Z",
"created_at": "2024-03-19T15:35:19.610984Z",
"data_removed": false,
"error": null,
"id": "trki3tdbd7dvhlklptcitctj3m",
"input": {
"image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg",
"width": 768,
"height": 1024,
"prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous",
"guidance_scale": 0,
"safety_checker": true,
"negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature",
"ip_adapter_scale": 0.7,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.7
},
"logs": "[!] Resizing output to 768x1024\nset det-size: (768, 1024)\nwarning: det_size is already set in detection model, ignore\n/root/.pyenv/versions/3.11.7/lib/python3.11/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.\nTo use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.\nP = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:02, 1.69it/s]\n 33%|███▎ | 2/6 [00:00<00:01, 2.50it/s]\n 50%|█████ | 3/6 [00:01<00:01, 2.96it/s]\n 67%|██████▋ | 4/6 [00:01<00:00, 3.23it/s]\n 83%|████████▎ | 5/6 [00:01<00:00, 3.40it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.52it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.13it/s]",
"metrics": {
"predict_time": 16.532756,
"total_time": 215.452813
},
"output": "https://replicate.delivery/pbxt/2fkfTXze0OKXzp3KvwPrNPFjXeZnCXl1bLdBixAY9KS44YHKB/result.jpg",
"started_at": "2024-03-19T15:38:38.531041Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/trki3tdbd7dvhlklptcitctj3m",
"cancel": "https://api.replicate.com/v1/predictions/trki3tdbd7dvhlklptcitctj3m/cancel"
},
"version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e"
}
[!] Resizing output to 768x1024
set det-size: (768, 1024)
warning: det_size is already set in detection model, ignore
/root/.pyenv/versions/3.11.7/lib/python3.11/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4
0%| | 0/6 [00:00<?, ?it/s]
17%|█▋ | 1/6 [00:00<00:02, 1.69it/s]
33%|███▎ | 2/6 [00:00<00:01, 2.50it/s]
50%|█████ | 3/6 [00:01<00:01, 2.96it/s]
67%|██████▋ | 4/6 [00:01<00:00, 3.23it/s]
83%|████████▎ | 5/6 [00:01<00:00, 3.40it/s]
100%|██████████| 6/6 [00:01<00:00, 3.52it/s]
100%|██████████| 6/6 [00:01<00:00, 3.13it/s]