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 urieltac/polar-fleece using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"urieltac/polar-fleece:033b9e73d03a4b391ef526ef04567c313fb482734723c199d6d197db7e4608ad",
{
input: {
model: "dev",
prompt: "Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.",
go_fast: false,
lora_scale: 0.5,
megapixels: "1",
num_outputs: 3,
aspect_ratio: "1:1",
output_format: "png",
guidance_scale: 3.5,
output_quality: 100,
prompt_strength: 0.8,
extra_lora_scale: 0.8,
num_inference_steps: 32
}
}
);
// 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 urieltac/polar-fleece using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"urieltac/polar-fleece:033b9e73d03a4b391ef526ef04567c313fb482734723c199d6d197db7e4608ad",
input={
"model": "dev",
"prompt": "Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.",
"go_fast": False,
"lora_scale": 0.5,
"megapixels": "1",
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 32
}
)
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 urieltac/polar-fleece 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": "033b9e73d03a4b391ef526ef04567c313fb482734723c199d6d197db7e4608ad",
"input": {
"model": "dev",
"prompt": "Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.",
"go_fast": false,
"lora_scale": 0.5,
"megapixels": "1",
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 32
}
}' \
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
{
"completed_at": "2024-09-01T19:10:15.957075Z",
"created_at": "2024-09-01T19:09:20.769000Z",
"data_removed": false,
"error": null,
"id": "zd9kkq7605rm00chnvyvc4tdyc",
"input": {
"model": "dev",
"prompt": "Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.",
"lora_scale": 0.5,
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"extra_lora_scale": 0.8,
"num_inference_steps": 32
},
"logs": "Using seed: 24777\nPrompt: Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.\ntxt2img mode\nUsing dev model\nfree=9730479144960\nDownloading weights\n2024-09-01T19:09:33Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpt2rugjy7/weights url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar\n2024-09-01T19:09:36Z | INFO | [ Complete ] dest=/tmp/tmpt2rugjy7/weights size=\"344 MB\" total_elapsed=3.099s url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar\nDownloaded weights in 3.14s\nLoaded LoRAs in 16.02s\n 0%| | 0/32 [00:00<?, ?it/s]\n 3%|▎ | 1/32 [00:00<00:23, 1.31it/s]\n 6%|▋ | 2/32 [00:01<00:20, 1.48it/s]\n 9%|▉ | 3/32 [00:02<00:20, 1.39it/s]\n 12%|█▎ | 4/32 [00:02<00:20, 1.35it/s]\n 16%|█▌ | 5/32 [00:03<00:20, 1.33it/s]\n 19%|█▉ | 6/32 [00:04<00:19, 1.32it/s]\n 22%|██▏ | 7/32 [00:05<00:19, 1.31it/s]\n 25%|██▌ | 8/32 [00:06<00:18, 1.31it/s]\n 28%|██▊ | 9/32 [00:06<00:17, 1.30it/s]\n 31%|███▏ | 10/32 [00:07<00:16, 1.30it/s]\n 34%|███▍ | 11/32 [00:08<00:16, 1.30it/s]\n 38%|███▊ | 12/32 [00:09<00:15, 1.30it/s]\n 41%|████ | 13/32 [00:09<00:14, 1.29it/s]\n 44%|████▍ | 14/32 [00:10<00:13, 1.30it/s]\n 47%|████▋ | 15/32 [00:11<00:13, 1.30it/s]\n 50%|█████ | 16/32 [00:12<00:12, 1.29it/s]\n 53%|█████▎ | 17/32 [00:12<00:11, 1.30it/s]\n 56%|█████▋ | 18/32 [00:13<00:10, 1.29it/s]\n 59%|█████▉ | 19/32 [00:14<00:10, 1.29it/s]\n 62%|██████▎ | 20/32 [00:15<00:09, 1.29it/s]\n 66%|██████▌ | 21/32 [00:16<00:08, 1.29it/s]\n 69%|██████▉ | 22/32 [00:16<00:07, 1.29it/s]\n 72%|███████▏ | 23/32 [00:17<00:06, 1.29it/s]\n 75%|███████▌ | 24/32 [00:18<00:06, 1.29it/s]\n 78%|███████▊ | 25/32 [00:19<00:05, 1.29it/s]\n 81%|████████▏ | 26/32 [00:19<00:04, 1.29it/s]\n 84%|████████▍ | 27/32 [00:20<00:03, 1.29it/s]\n 88%|████████▊ | 28/32 [00:21<00:03, 1.29it/s]\n 91%|█████████ | 29/32 [00:22<00:02, 1.29it/s]\n 94%|█████████▍| 30/32 [00:23<00:01, 1.29it/s]\n 97%|█████████▋| 31/32 [00:23<00:00, 1.29it/s]\n100%|██████████| 32/32 [00:24<00:00, 1.29it/s]\n100%|██████████| 32/32 [00:24<00:00, 1.30it/s]",
"metrics": {
"predict_time": 42.762961982,
"total_time": 55.188075
},
"output": [
"https://replicate.delivery/yhqm/Efx2McAxfTpBbEy2SnMafdg4NMcp8C4T44ABhJrlHvfdhbiNB/out-0.png",
"https://replicate.delivery/yhqm/Zetg8VY8LZVUSCfH9trKm707aRZZy53leZ9d1opjNmBvwNxmA/out-1.png",
"https://replicate.delivery/yhqm/6GWzvYVgwC5LEZlxbPXzL14YzszGrlZvyePy0LEWk8vLcTsJA/out-2.png"
],
"started_at": "2024-09-01T19:09:33.194113Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/zd9kkq7605rm00chnvyvc4tdyc",
"cancel": "https://api.replicate.com/v1/predictions/zd9kkq7605rm00chnvyvc4tdyc/cancel"
},
"version": "033b9e73d03a4b391ef526ef04567c313fb482734723c199d6d197db7e4608ad"
}
Using seed: 24777
Prompt: Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.
txt2img mode
Using dev model
free=9730479144960
Downloading weights
2024-09-01T19:09:33Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpt2rugjy7/weights url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar
2024-09-01T19:09:36Z | INFO | [ Complete ] dest=/tmp/tmpt2rugjy7/weights size="344 MB" total_elapsed=3.099s url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar
Downloaded weights in 3.14s
Loaded LoRAs in 16.02s
0%| | 0/32 [00:00<?, ?it/s]
3%|▎ | 1/32 [00:00<00:23, 1.31it/s]
6%|▋ | 2/32 [00:01<00:20, 1.48it/s]
9%|▉ | 3/32 [00:02<00:20, 1.39it/s]
12%|█▎ | 4/32 [00:02<00:20, 1.35it/s]
16%|█▌ | 5/32 [00:03<00:20, 1.33it/s]
19%|█▉ | 6/32 [00:04<00:19, 1.32it/s]
22%|██▏ | 7/32 [00:05<00:19, 1.31it/s]
25%|██▌ | 8/32 [00:06<00:18, 1.31it/s]
28%|██▊ | 9/32 [00:06<00:17, 1.30it/s]
31%|███▏ | 10/32 [00:07<00:16, 1.30it/s]
34%|███▍ | 11/32 [00:08<00:16, 1.30it/s]
38%|███▊ | 12/32 [00:09<00:15, 1.30it/s]
41%|████ | 13/32 [00:09<00:14, 1.29it/s]
44%|████▍ | 14/32 [00:10<00:13, 1.30it/s]
47%|████▋ | 15/32 [00:11<00:13, 1.30it/s]
50%|█████ | 16/32 [00:12<00:12, 1.29it/s]
53%|█████▎ | 17/32 [00:12<00:11, 1.30it/s]
56%|█████▋ | 18/32 [00:13<00:10, 1.29it/s]
59%|█████▉ | 19/32 [00:14<00:10, 1.29it/s]
62%|██████▎ | 20/32 [00:15<00:09, 1.29it/s]
66%|██████▌ | 21/32 [00:16<00:08, 1.29it/s]
69%|██████▉ | 22/32 [00:16<00:07, 1.29it/s]
72%|███████▏ | 23/32 [00:17<00:06, 1.29it/s]
75%|███████▌ | 24/32 [00:18<00:06, 1.29it/s]
78%|███████▊ | 25/32 [00:19<00:05, 1.29it/s]
81%|████████▏ | 26/32 [00:19<00:04, 1.29it/s]
84%|████████▍ | 27/32 [00:20<00:03, 1.29it/s]
88%|████████▊ | 28/32 [00:21<00:03, 1.29it/s]
91%|█████████ | 29/32 [00:22<00:02, 1.29it/s]
94%|█████████▍| 30/32 [00:23<00:01, 1.29it/s]
97%|█████████▋| 31/32 [00:23<00:00, 1.29it/s]
100%|██████████| 32/32 [00:24<00:00, 1.29it/s]
100%|██████████| 32/32 [00:24<00:00, 1.30it/s]
This model runs on Nvidia H100 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 warm. 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
Using seed: 24777
Prompt: Front-facing photograph of an Italian man seated on a chair, with a plain blue background. The man is sitting with his legs crossed in a relaxed manner, the man dress POLARFLEECE. The chair is minimalist yet luxurious. The man is looking straight ahead to the camera. Professional, symmetrical photograph.
txt2img mode
Using dev model
free=9730479144960
Downloading weights
2024-09-01T19:09:33Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpt2rugjy7/weights url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar
2024-09-01T19:09:36Z | INFO | [ Complete ] dest=/tmp/tmpt2rugjy7/weights size="344 MB" total_elapsed=3.099s url=https://replicate.delivery/yhqm/LdmfColbTd3HICgQ3xSc1DO45cJ7bHW0x13BmGlhcMULrBsJA/trained_model.tar
Downloaded weights in 3.14s
Loaded LoRAs in 16.02s
0%| | 0/32 [00:00<?, ?it/s]
3%|▎ | 1/32 [00:00<00:23, 1.31it/s]
6%|▋ | 2/32 [00:01<00:20, 1.48it/s]
9%|▉ | 3/32 [00:02<00:20, 1.39it/s]
12%|█▎ | 4/32 [00:02<00:20, 1.35it/s]
16%|█▌ | 5/32 [00:03<00:20, 1.33it/s]
19%|█▉ | 6/32 [00:04<00:19, 1.32it/s]
22%|██▏ | 7/32 [00:05<00:19, 1.31it/s]
25%|██▌ | 8/32 [00:06<00:18, 1.31it/s]
28%|██▊ | 9/32 [00:06<00:17, 1.30it/s]
31%|███▏ | 10/32 [00:07<00:16, 1.30it/s]
34%|███▍ | 11/32 [00:08<00:16, 1.30it/s]
38%|███▊ | 12/32 [00:09<00:15, 1.30it/s]
41%|████ | 13/32 [00:09<00:14, 1.29it/s]
44%|████▍ | 14/32 [00:10<00:13, 1.30it/s]
47%|████▋ | 15/32 [00:11<00:13, 1.30it/s]
50%|█████ | 16/32 [00:12<00:12, 1.29it/s]
53%|█████▎ | 17/32 [00:12<00:11, 1.30it/s]
56%|█████▋ | 18/32 [00:13<00:10, 1.29it/s]
59%|█████▉ | 19/32 [00:14<00:10, 1.29it/s]
62%|██████▎ | 20/32 [00:15<00:09, 1.29it/s]
66%|██████▌ | 21/32 [00:16<00:08, 1.29it/s]
69%|██████▉ | 22/32 [00:16<00:07, 1.29it/s]
72%|███████▏ | 23/32 [00:17<00:06, 1.29it/s]
75%|███████▌ | 24/32 [00:18<00:06, 1.29it/s]
78%|███████▊ | 25/32 [00:19<00:05, 1.29it/s]
81%|████████▏ | 26/32 [00:19<00:04, 1.29it/s]
84%|████████▍ | 27/32 [00:20<00:03, 1.29it/s]
88%|████████▊ | 28/32 [00:21<00:03, 1.29it/s]
91%|█████████ | 29/32 [00:22<00:02, 1.29it/s]
94%|█████████▍| 30/32 [00:23<00:01, 1.29it/s]
97%|█████████▋| 31/32 [00:23<00:00, 1.29it/s]
100%|██████████| 32/32 [00:24<00:00, 1.29it/s]
100%|██████████| 32/32 [00:24<00:00, 1.30it/s]