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.
omniedgeio /deepfashionsdxl:a3bfe0b3
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 omniedgeio/deepfashionsdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"omniedgeio/deepfashionsdxl:a3bfe0b3be7300072b03c7367e9d4bfdd14d484c4a6ae878a3c464cf93e0dc3e",
{
input: {
hdr: 1,
width: 1024,
height: 1024,
prompt: "a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.",
refine: "base_image_refiner",
strength: 0.8,
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
refine_steps: 10,
guidance_scale: 7.5,
apply_watermark: false,
condition_scale: 1.1,
high_noise_frac: 0.8,
negative_prompt: "illustration, cropped face, cover face, cover visage, mutated hands, bad anatomy, bad hands, three hands, three legs, bad arms,missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, worst face, three crus, extra crus, fused crus, worst feet, three feet, fused feet, fused thigh, three thigh, fused thigh, extra thigh, worst thigh, missing fingers, extra fingers, ugly fingers, long fingers, horn, extra eyes, huge eyes, 2girl, amputation, disconnected limbs, cartoon, cg, 3d, unreal, animate, not human, no head,low quality, worst quality, cgi, extra limbs, cleavage, pencil drawing, black and white, greyscale, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
prompt_strength: 0.8,
num_inference_steps: 28
}
}
);
// 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 omniedgeio/deepfashionsdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"omniedgeio/deepfashionsdxl:a3bfe0b3be7300072b03c7367e9d4bfdd14d484c4a6ae878a3c464cf93e0dc3e",
input={
"hdr": 1,
"width": 1024,
"height": 1024,
"prompt": "a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.",
"refine": "base_image_refiner",
"strength": 0.8,
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"refine_steps": 10,
"guidance_scale": 7.5,
"apply_watermark": False,
"condition_scale": 1.1,
"high_noise_frac": 0.8,
"negative_prompt": "illustration, cropped face, cover face, cover visage, mutated hands, bad anatomy, bad hands, three hands, three legs, bad arms,missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, worst face, three crus, extra crus, fused crus, worst feet, three feet, fused feet, fused thigh, three thigh, fused thigh, extra thigh, worst thigh, missing fingers, extra fingers, ugly fingers, long fingers, horn, extra eyes, huge eyes, 2girl, amputation, disconnected limbs, cartoon, cg, 3d, unreal, animate, not human, no head,low quality, worst quality, cgi, extra limbs, cleavage, pencil drawing, black and white, greyscale, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
"prompt_strength": 0.8,
"num_inference_steps": 28
}
)
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 omniedgeio/deepfashionsdxl 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": "omniedgeio/deepfashionsdxl:a3bfe0b3be7300072b03c7367e9d4bfdd14d484c4a6ae878a3c464cf93e0dc3e",
"input": {
"hdr": 1,
"width": 1024,
"height": 1024,
"prompt": "a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.",
"refine": "base_image_refiner",
"strength": 0.8,
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"refine_steps": 10,
"guidance_scale": 7.5,
"apply_watermark": false,
"condition_scale": 1.1,
"high_noise_frac": 0.8,
"negative_prompt": "illustration, cropped face, cover face, cover visage, mutated hands, bad anatomy, bad hands, three hands, three legs, bad arms,missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, worst face, three crus, extra crus, fused crus, worst feet, three feet, fused feet, fused thigh, three thigh, fused thigh, extra thigh, worst thigh, missing fingers, extra fingers, ugly fingers, long fingers, horn, extra eyes, huge eyes, 2girl, amputation, disconnected limbs, cartoon, cg, 3d, unreal, animate, not human, no head,low quality, worst quality, cgi, extra limbs, cleavage, pencil drawing, black and white, greyscale, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
"prompt_strength": 0.8,
"num_inference_steps": 28
}
}' \
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-06-25T13:19:39.081256Z",
"created_at": "2024-06-25T13:18:30.535000Z",
"data_removed": false,
"error": null,
"id": "39bn4vj2gxrgj0cg9y69h06r28",
"input": {
"hdr": 1,
"width": 1024,
"height": 1024,
"prompt": "a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.",
"refine": "base_image_refiner",
"strength": 0.8,
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"refine_steps": 10,
"guidance_scale": 7.5,
"apply_watermark": false,
"condition_scale": 1.1,
"high_noise_frac": 0.8,
"negative_prompt": "illustration, cropped face, cover face, cover visage, mutated hands, bad anatomy, bad hands, three hands, three legs, bad arms,missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, worst face, three crus, extra crus, fused crus, worst feet, three feet, fused feet, fused thigh, three thigh, fused thigh, extra thigh, worst thigh, missing fingers, extra fingers, ugly fingers, long fingers, horn, extra eyes, huge eyes, 2girl, amputation, disconnected limbs, cartoon, cg, 3d, unreal, animate, not human, no head,low quality, worst quality, cgi, extra limbs, cleavage, pencil drawing, black and white, greyscale, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
"prompt_strength": 0.8,
"num_inference_steps": 28
},
"logs": "Using seed: 20405\nPrompt: a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.\ntxt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:20, 1.35it/s]\n 7%|▋ | 2/28 [00:00<00:09, 2.68it/s]\n 11%|█ | 3/28 [00:00<00:06, 3.94it/s]\n 14%|█▍ | 4/28 [00:01<00:04, 5.05it/s]\n 18%|█▊ | 5/28 [00:01<00:03, 5.98it/s]\n 21%|██▏ | 6/28 [00:01<00:03, 6.73it/s]\n 25%|██▌ | 7/28 [00:01<00:02, 7.30it/s]\n 29%|██▊ | 8/28 [00:01<00:02, 7.73it/s]\n 32%|███▏ | 9/28 [00:01<00:02, 8.05it/s]\n 36%|███▌ | 10/28 [00:01<00:02, 8.28it/s]\n 39%|███▉ | 11/28 [00:01<00:02, 8.45it/s]\n 43%|████▎ | 12/28 [00:01<00:01, 8.55it/s]\n 46%|████▋ | 13/28 [00:02<00:01, 8.63it/s]\n 50%|█████ | 14/28 [00:02<00:01, 8.70it/s]\n 54%|█████▎ | 15/28 [00:02<00:01, 8.76it/s]\n 57%|█████▋ | 16/28 [00:02<00:01, 8.80it/s]\n 61%|██████ | 17/28 [00:02<00:01, 8.81it/s]\n 64%|██████▍ | 18/28 [00:02<00:01, 8.82it/s]\n 68%|██████▊ | 19/28 [00:02<00:01, 8.83it/s]\n 71%|███████▏ | 20/28 [00:02<00:00, 8.84it/s]\n 75%|███████▌ | 21/28 [00:03<00:00, 8.84it/s]\n 79%|███████▊ | 22/28 [00:03<00:00, 8.84it/s]\n 82%|████████▏ | 23/28 [00:03<00:00, 8.85it/s]\n 86%|████████▌ | 24/28 [00:03<00:00, 8.84it/s]\n 89%|████████▉ | 25/28 [00:03<00:00, 8.84it/s]\n 93%|█████████▎| 26/28 [00:03<00:00, 8.83it/s]\n 96%|█████████▋| 27/28 [00:03<00:00, 8.83it/s]\n100%|██████████| 28/28 [00:03<00:00, 8.82it/s]\n100%|██████████| 28/28 [00:03<00:00, 7.38it/s]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:00, 7.50it/s]\n 67%|██████▋ | 2/3 [00:00<00:00, 7.73it/s]\n100%|██████████| 3/3 [00:00<00:00, 7.81it/s]\n100%|██████████| 3/3 [00:00<00:00, 7.76it/s]\n/root/.pyenv/versions/3.9.19/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\nwarnings.warn(\n/root/.pyenv/versions/3.9.19/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`.\nwarnings.warn(msg)\nDownloading: \"https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth\" to /src/gfpgan/weights/detection_Resnet50_Final.pth\n 0%| | 0.00/104M [00:00<?, ?B/s]\n 38%|███▊ | 39.2M/104M [00:00<00:00, 411MB/s]\n 78%|███████▊ | 81.6M/104M [00:00<00:00, 431MB/s]\n100%|██████████| 104M/104M [00:00<00:00, 431MB/s]\nDownloading: \"https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth\" to /src/gfpgan/weights/parsing_parsenet.pth\n 0%| | 0.00/81.4M [00:00<?, ?B/s]\n 58%|█████▊ | 46.9M/81.4M [00:00<00:00, 492MB/s]\n100%|██████████| 81.4M/81.4M [00:00<00:00, 498MB/s]",
"metrics": {
"predict_time": 11.979974044,
"total_time": 68.546256
},
"output": [
"https://replicate.delivery/pbxt/TKVGogApmaJiMhDesxzmcMnkYCHe0ElIwsYe3q1SXM5VvOEmA/output.png"
],
"started_at": "2024-06-25T13:19:27.101282Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/39bn4vj2gxrgj0cg9y69h06r28",
"cancel": "https://api.replicate.com/v1/predictions/39bn4vj2gxrgj0cg9y69h06r28/cancel"
},
"version": "a3bfe0b3be7300072b03c7367e9d4bfdd14d484c4a6ae878a3c464cf93e0dc3e"
}
Using seed: 20405
Prompt: a young woman in a floral bikini stands on a beach, posing for a photo. she wears a necklace and seems to be enjoying her time at the beach. the sunset in the background adds a serene and picturesque atmosphere. the woman is the focal point of the scene, with the beach and sunset creating a peaceful and relaxing environment.
txt2img mode
0%| | 0/28 [00:00<?, ?it/s]
4%|▎ | 1/28 [00:00<00:20, 1.35it/s]
7%|▋ | 2/28 [00:00<00:09, 2.68it/s]
11%|█ | 3/28 [00:00<00:06, 3.94it/s]
14%|█▍ | 4/28 [00:01<00:04, 5.05it/s]
18%|█▊ | 5/28 [00:01<00:03, 5.98it/s]
21%|██▏ | 6/28 [00:01<00:03, 6.73it/s]
25%|██▌ | 7/28 [00:01<00:02, 7.30it/s]
29%|██▊ | 8/28 [00:01<00:02, 7.73it/s]
32%|███▏ | 9/28 [00:01<00:02, 8.05it/s]
36%|███▌ | 10/28 [00:01<00:02, 8.28it/s]
39%|███▉ | 11/28 [00:01<00:02, 8.45it/s]
43%|████▎ | 12/28 [00:01<00:01, 8.55it/s]
46%|████▋ | 13/28 [00:02<00:01, 8.63it/s]
50%|█████ | 14/28 [00:02<00:01, 8.70it/s]
54%|█████▎ | 15/28 [00:02<00:01, 8.76it/s]
57%|█████▋ | 16/28 [00:02<00:01, 8.80it/s]
61%|██████ | 17/28 [00:02<00:01, 8.81it/s]
64%|██████▍ | 18/28 [00:02<00:01, 8.82it/s]
68%|██████▊ | 19/28 [00:02<00:01, 8.83it/s]
71%|███████▏ | 20/28 [00:02<00:00, 8.84it/s]
75%|███████▌ | 21/28 [00:03<00:00, 8.84it/s]
79%|███████▊ | 22/28 [00:03<00:00, 8.84it/s]
82%|████████▏ | 23/28 [00:03<00:00, 8.85it/s]
86%|████████▌ | 24/28 [00:03<00:00, 8.84it/s]
89%|████████▉ | 25/28 [00:03<00:00, 8.84it/s]
93%|█████████▎| 26/28 [00:03<00:00, 8.83it/s]
96%|█████████▋| 27/28 [00:03<00:00, 8.83it/s]
100%|██████████| 28/28 [00:03<00:00, 8.82it/s]
100%|██████████| 28/28 [00:03<00:00, 7.38it/s]
0%| | 0/3 [00:00<?, ?it/s]
33%|███▎ | 1/3 [00:00<00:00, 7.50it/s]
67%|██████▋ | 2/3 [00:00<00:00, 7.73it/s]
100%|██████████| 3/3 [00:00<00:00, 7.81it/s]
100%|██████████| 3/3 [00:00<00:00, 7.76it/s]
/root/.pyenv/versions/3.9.19/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
/root/.pyenv/versions/3.9.19/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`.
warnings.warn(msg)
Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth" to /src/gfpgan/weights/detection_Resnet50_Final.pth
0%| | 0.00/104M [00:00<?, ?B/s]
38%|███▊ | 39.2M/104M [00:00<00:00, 411MB/s]
78%|███████▊ | 81.6M/104M [00:00<00:00, 431MB/s]
100%|██████████| 104M/104M [00:00<00:00, 431MB/s]
Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth" to /src/gfpgan/weights/parsing_parsenet.pth
0%| | 0.00/81.4M [00:00<?, ?B/s]
58%|█████▊ | 46.9M/81.4M [00:00<00:00, 492MB/s]
100%|██████████| 81.4M/81.4M [00:00<00:00, 498MB/s]