Prediction
leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffbIDaqsp0xk559rme0ckrq68rh6xe4StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 2
- output_quality
- 100
- prompt_strength
- 0.9
- extra_lora_scale
- 1
- num_inference_steps
- 45
{ "image": "https://replicate.delivery/pbxt/M8wxklFIjIjicmWCvhCJ3dsNPV9Nt7sdz6TkeMz7DoZUAasS/IMG_0954.png", "model": "dev", "prompt": "A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.9, "extra_lora_scale": 1, "num_inference_steps": 45 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", { input: { image: "https://replicate.delivery/pbxt/M8wxklFIjIjicmWCvhCJ3dsNPV9Nt7sdz6TkeMz7DoZUAasS/IMG_0954.png", model: "dev", prompt: "A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes. ", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "1:1", output_format: "png", guidance_scale: 2, output_quality: 100, prompt_strength: 0.9, extra_lora_scale: 1, num_inference_steps: 45 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", input={ "image": "https://replicate.delivery/pbxt/M8wxklFIjIjicmWCvhCJ3dsNPV9Nt7sdz6TkeMz7DoZUAasS/IMG_0954.png", "model": "dev", "prompt": "A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes. ", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.9, "extra_lora_scale": 1, "num_inference_steps": 45 } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run leticiaaduke/test2 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": "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", "input": { "image": "https://replicate.delivery/pbxt/M8wxklFIjIjicmWCvhCJ3dsNPV9Nt7sdz6TkeMz7DoZUAasS/IMG_0954.png", "model": "dev", "prompt": "A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.9, "extra_lora_scale": 1, "num_inference_steps": 45 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-12-14T15:32:35.561034Z", "created_at": "2024-12-14T15:32:07.082000Z", "data_removed": false, "error": null, "id": "aqsp0xk559rme0ckrq68rh6xe4", "input": { "image": "https://replicate.delivery/pbxt/M8wxklFIjIjicmWCvhCJ3dsNPV9Nt7sdz6TkeMz7DoZUAasS/IMG_0954.png", "model": "dev", "prompt": "A confident woman le with pale skin and long, sleek brown shoulder length hair sitting on a chair. She is dressed in a perfectly fit tailored deep teal suit with satin lapels, paired with a black top underneath. The background is softly textured, creating a subtle contrast with her polished and elegant appearance. Her expression is poised and composed, exuding authority and charisma. The shot is professional. She has dark eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.9, "extra_lora_scale": 1, "num_inference_steps": 45 }, "logs": "2024-12-14 15:32:08.067 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-14 15:32:08.067 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2811.56it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2613.00it/s]\n2024-12-14 15:32:08.184 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s\nfree=28649486286848\nDownloading weights\n2024-12-14T15:32:08Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp6a1n8yo5/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\n2024-12-14T15:32:10Z | INFO | [ Complete ] dest=/tmp/tmp6a1n8yo5/weights size=\"172 MB\" total_elapsed=2.158s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\nDownloaded weights in 2.18s\n2024-12-14 15:32:10.369 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f\n2024-12-14 15:32:10.446 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-14 15:32:10.446 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-14 15:32:10.446 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2814.41it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2615.05it/s]\n2024-12-14 15:32:10.563 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s\nUsing seed: 54295\nImage detected - settting to img2img mode\nInput image size: 736x896\nInput image size set to: 736x896\n0it [00:00, ?it/s]\n2it [00:00, 9.48it/s]\n3it [00:00, 8.55it/s]\n4it [00:00, 8.13it/s]\n5it [00:00, 7.90it/s]\n6it [00:00, 7.77it/s]\n7it [00:00, 7.69it/s]\n8it [00:01, 7.63it/s]\n9it [00:01, 7.60it/s]\n10it [00:01, 7.57it/s]\n11it [00:01, 7.55it/s]\n12it [00:01, 7.54it/s]\n13it [00:01, 7.53it/s]\n14it [00:01, 7.51it/s]\n15it [00:01, 7.49it/s]\n16it [00:02, 7.49it/s]\n17it [00:02, 7.50it/s]\n18it [00:02, 7.49it/s]\n19it [00:02, 7.49it/s]\n20it [00:02, 7.49it/s]\n21it [00:02, 7.50it/s]\n22it [00:02, 7.50it/s]\n23it [00:03, 7.50it/s]\n24it [00:03, 7.50it/s]\n25it [00:03, 7.50it/s]\n26it [00:03, 7.49it/s]\n27it [00:03, 7.48it/s]\n28it [00:03, 7.49it/s]\n29it [00:03, 7.48it/s]\n30it [00:03, 7.49it/s]\n31it [00:04, 7.49it/s]\n32it [00:04, 7.50it/s]\n33it [00:04, 7.50it/s]\n34it [00:04, 7.50it/s]\n35it [00:04, 7.50it/s]\n36it [00:04, 7.50it/s]\n37it [00:04, 7.50it/s]\n38it [00:05, 7.50it/s]\n39it [00:05, 7.48it/s]\n40it [00:05, 7.47it/s]\n41it [00:05, 7.48it/s]\n41it [00:05, 7.57it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.69it/s]\n2it [00:00, 7.57it/s]\n3it [00:00, 7.53it/s]\n4it [00:00, 7.49it/s]\n5it [00:00, 7.45it/s]\n6it [00:00, 7.45it/s]\n7it [00:00, 7.43it/s]\n8it [00:01, 7.43it/s]\n9it [00:01, 7.42it/s]\n10it [00:01, 7.43it/s]\n11it [00:01, 7.45it/s]\n12it [00:01, 7.46it/s]\n13it [00:01, 7.48it/s]\n14it [00:01, 7.48it/s]\n15it [00:02, 7.47it/s]\n16it [00:02, 7.47it/s]\n17it [00:02, 7.47it/s]\n18it [00:02, 7.47it/s]\n19it [00:02, 7.47it/s]\n20it [00:02, 7.47it/s]\n21it [00:02, 7.47it/s]\n22it [00:02, 7.47it/s]\n23it [00:03, 7.48it/s]\n24it [00:03, 7.48it/s]\n25it [00:03, 7.49it/s]\n26it [00:03, 7.50it/s]\n27it [00:03, 7.51it/s]\n28it [00:03, 7.51it/s]\n29it [00:03, 7.50it/s]\n30it [00:04, 7.50it/s]\n31it [00:04, 7.48it/s]\n32it [00:04, 7.48it/s]\n33it [00:04, 7.49it/s]\n34it [00:04, 7.48it/s]\n35it [00:04, 7.48it/s]\n36it [00:04, 7.49it/s]\n37it [00:04, 7.49it/s]\n38it [00:05, 7.50it/s]\n39it [00:05, 7.50it/s]\n40it [00:05, 7.49it/s]\n41it [00:05, 7.50it/s]\n41it [00:05, 7.48it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.68it/s]\n2it [00:00, 7.57it/s]\n3it [00:00, 7.54it/s]\n4it [00:00, 7.51it/s]\n5it [00:00, 7.49it/s]\n6it [00:00, 7.48it/s]\n7it [00:00, 7.48it/s]\n8it [00:01, 7.46it/s]\n9it [00:01, 7.44it/s]\n10it [00:01, 7.43it/s]\n11it [00:01, 7.43it/s]\n12it [00:01, 7.44it/s]\n13it [00:01, 7.44it/s]\n14it [00:01, 7.44it/s]\n15it [00:02, 7.45it/s]\n16it [00:02, 7.46it/s]\n17it [00:02, 7.47it/s]\n18it [00:02, 7.46it/s]\n19it [00:02, 7.47it/s]\n20it [00:02, 7.48it/s]\n21it [00:02, 7.48it/s]\n22it [00:02, 7.49it/s]\n23it [00:03, 7.48it/s]\n24it [00:03, 7.47it/s]\n25it [00:03, 7.46it/s]\n26it [00:03, 7.44it/s]\n27it [00:03, 7.43it/s]\n28it [00:03, 7.44it/s]\n29it [00:03, 7.45it/s]\n30it [00:04, 7.45it/s]\n31it [00:04, 7.46it/s]\n32it [00:04, 7.47it/s]\n33it [00:04, 7.47it/s]\n34it [00:04, 7.47it/s]\n35it [00:04, 7.46it/s]\n36it [00:04, 7.46it/s]\n37it [00:04, 7.47it/s]\n38it [00:05, 7.47it/s]\n39it [00:05, 7.46it/s]\n40it [00:05, 7.47it/s]\n41it [00:05, 7.46it/s]\n41it [00:05, 7.47it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.60it/s]\n2it [00:00, 7.50it/s]\n3it [00:00, 7.48it/s]\n4it [00:00, 7.47it/s]\n5it [00:00, 7.47it/s]\n6it [00:00, 7.48it/s]\n7it [00:00, 7.47it/s]\n8it [00:01, 7.47it/s]\n9it [00:01, 7.44it/s]\n10it [00:01, 7.45it/s]\n11it [00:01, 7.44it/s]\n12it [00:01, 7.44it/s]\n13it [00:01, 7.45it/s]\n14it [00:01, 7.44it/s]\n15it [00:02, 7.46it/s]\n16it [00:02, 7.45it/s]\n17it [00:02, 7.46it/s]\n18it [00:02, 7.44it/s]\n19it [00:02, 7.43it/s]\n20it [00:02, 7.42it/s]\n21it [00:02, 7.42it/s]\n22it [00:02, 7.43it/s]\n23it [00:03, 7.45it/s]\n24it [00:03, 7.44it/s]\n25it [00:03, 7.44it/s]\n26it [00:03, 7.45it/s]\n27it [00:03, 7.45it/s]\n28it [00:03, 7.45it/s]\n29it [00:03, 7.44it/s]\n30it [00:04, 7.42it/s]\n31it [00:04, 7.43it/s]\n32it [00:04, 7.44it/s]\n33it [00:04, 7.43it/s]\n34it [00:04, 7.44it/s]\n35it [00:04, 7.45it/s]\n36it [00:04, 7.46it/s]\n37it [00:04, 7.47it/s]\n38it [00:05, 7.46it/s]\n39it [00:05, 7.45it/s]\n40it [00:05, 7.44it/s]\n41it [00:05, 7.43it/s]\n41it [00:05, 7.45it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 27.614942868, "total_time": 28.479034 }, "output": [ "https://replicate.delivery/xezq/XqbIQc4vWZrYGlVS3zat83QQTwuv13S6iPMqWpnuuQeJua9JA/out-0.png", "https://replicate.delivery/xezq/LZEnfFBS9PSbRqIautKjlxgZeDkHY7UEaFaXVt3lHk7Tc16TA/out-1.png", "https://replicate.delivery/xezq/09LtfmIOgX2iIK8jIsA7aN3DKpA1spsVD56WjHQkUEoJua9JA/out-2.png", "https://replicate.delivery/xezq/yGb0b0RtebwvfUw4rT7ZhelTpfszDfeqrN9cdDB3SXlfJua9JA/out-3.png" ], "started_at": "2024-12-14T15:32:07.946092Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zlmp3mvzd7nfdjtjybxykrhlco7o3kiujwrtnqblq6rvh564a2wq", "get": "https://api.replicate.com/v1/predictions/aqsp0xk559rme0ckrq68rh6xe4", "cancel": "https://api.replicate.com/v1/predictions/aqsp0xk559rme0ckrq68rh6xe4/cancel" }, "version": "5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb" }
Generated in2024-12-14 15:32:08.067 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-14 15:32:08.067 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2811.56it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2613.00it/s] 2024-12-14 15:32:08.184 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s free=28649486286848 Downloading weights 2024-12-14T15:32:08Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp6a1n8yo5/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar 2024-12-14T15:32:10Z | INFO | [ Complete ] dest=/tmp/tmp6a1n8yo5/weights size="172 MB" total_elapsed=2.158s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar Downloaded weights in 2.18s 2024-12-14 15:32:10.369 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f 2024-12-14 15:32:10.446 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded 2024-12-14 15:32:10.446 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-14 15:32:10.446 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2814.41it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2615.05it/s] 2024-12-14 15:32:10.563 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s Using seed: 54295 Image detected - settting to img2img mode Input image size: 736x896 Input image size set to: 736x896 0it [00:00, ?it/s] 2it [00:00, 9.48it/s] 3it [00:00, 8.55it/s] 4it [00:00, 8.13it/s] 5it [00:00, 7.90it/s] 6it [00:00, 7.77it/s] 7it [00:00, 7.69it/s] 8it [00:01, 7.63it/s] 9it [00:01, 7.60it/s] 10it [00:01, 7.57it/s] 11it [00:01, 7.55it/s] 12it [00:01, 7.54it/s] 13it [00:01, 7.53it/s] 14it [00:01, 7.51it/s] 15it [00:01, 7.49it/s] 16it [00:02, 7.49it/s] 17it [00:02, 7.50it/s] 18it [00:02, 7.49it/s] 19it [00:02, 7.49it/s] 20it [00:02, 7.49it/s] 21it [00:02, 7.50it/s] 22it [00:02, 7.50it/s] 23it [00:03, 7.50it/s] 24it [00:03, 7.50it/s] 25it [00:03, 7.50it/s] 26it [00:03, 7.49it/s] 27it [00:03, 7.48it/s] 28it [00:03, 7.49it/s] 29it [00:03, 7.48it/s] 30it [00:03, 7.49it/s] 31it [00:04, 7.49it/s] 32it [00:04, 7.50it/s] 33it [00:04, 7.50it/s] 34it [00:04, 7.50it/s] 35it [00:04, 7.50it/s] 36it [00:04, 7.50it/s] 37it [00:04, 7.50it/s] 38it [00:05, 7.50it/s] 39it [00:05, 7.48it/s] 40it [00:05, 7.47it/s] 41it [00:05, 7.48it/s] 41it [00:05, 7.57it/s] 0it [00:00, ?it/s] 1it [00:00, 7.69it/s] 2it [00:00, 7.57it/s] 3it [00:00, 7.53it/s] 4it [00:00, 7.49it/s] 5it [00:00, 7.45it/s] 6it [00:00, 7.45it/s] 7it [00:00, 7.43it/s] 8it [00:01, 7.43it/s] 9it [00:01, 7.42it/s] 10it [00:01, 7.43it/s] 11it [00:01, 7.45it/s] 12it [00:01, 7.46it/s] 13it [00:01, 7.48it/s] 14it [00:01, 7.48it/s] 15it [00:02, 7.47it/s] 16it [00:02, 7.47it/s] 17it [00:02, 7.47it/s] 18it [00:02, 7.47it/s] 19it [00:02, 7.47it/s] 20it [00:02, 7.47it/s] 21it [00:02, 7.47it/s] 22it [00:02, 7.47it/s] 23it [00:03, 7.48it/s] 24it [00:03, 7.48it/s] 25it [00:03, 7.49it/s] 26it [00:03, 7.50it/s] 27it [00:03, 7.51it/s] 28it [00:03, 7.51it/s] 29it [00:03, 7.50it/s] 30it [00:04, 7.50it/s] 31it [00:04, 7.48it/s] 32it [00:04, 7.48it/s] 33it [00:04, 7.49it/s] 34it [00:04, 7.48it/s] 35it [00:04, 7.48it/s] 36it [00:04, 7.49it/s] 37it [00:04, 7.49it/s] 38it [00:05, 7.50it/s] 39it [00:05, 7.50it/s] 40it [00:05, 7.49it/s] 41it [00:05, 7.50it/s] 41it [00:05, 7.48it/s] 0it [00:00, ?it/s] 1it [00:00, 7.68it/s] 2it [00:00, 7.57it/s] 3it [00:00, 7.54it/s] 4it [00:00, 7.51it/s] 5it [00:00, 7.49it/s] 6it [00:00, 7.48it/s] 7it [00:00, 7.48it/s] 8it [00:01, 7.46it/s] 9it [00:01, 7.44it/s] 10it [00:01, 7.43it/s] 11it [00:01, 7.43it/s] 12it [00:01, 7.44it/s] 13it [00:01, 7.44it/s] 14it [00:01, 7.44it/s] 15it [00:02, 7.45it/s] 16it [00:02, 7.46it/s] 17it [00:02, 7.47it/s] 18it [00:02, 7.46it/s] 19it [00:02, 7.47it/s] 20it [00:02, 7.48it/s] 21it [00:02, 7.48it/s] 22it [00:02, 7.49it/s] 23it [00:03, 7.48it/s] 24it [00:03, 7.47it/s] 25it [00:03, 7.46it/s] 26it [00:03, 7.44it/s] 27it [00:03, 7.43it/s] 28it [00:03, 7.44it/s] 29it [00:03, 7.45it/s] 30it [00:04, 7.45it/s] 31it [00:04, 7.46it/s] 32it [00:04, 7.47it/s] 33it [00:04, 7.47it/s] 34it [00:04, 7.47it/s] 35it [00:04, 7.46it/s] 36it [00:04, 7.46it/s] 37it [00:04, 7.47it/s] 38it [00:05, 7.47it/s] 39it [00:05, 7.46it/s] 40it [00:05, 7.47it/s] 41it [00:05, 7.46it/s] 41it [00:05, 7.47it/s] 0it [00:00, ?it/s] 1it [00:00, 7.60it/s] 2it [00:00, 7.50it/s] 3it [00:00, 7.48it/s] 4it [00:00, 7.47it/s] 5it [00:00, 7.47it/s] 6it [00:00, 7.48it/s] 7it [00:00, 7.47it/s] 8it [00:01, 7.47it/s] 9it [00:01, 7.44it/s] 10it [00:01, 7.45it/s] 11it [00:01, 7.44it/s] 12it [00:01, 7.44it/s] 13it [00:01, 7.45it/s] 14it [00:01, 7.44it/s] 15it [00:02, 7.46it/s] 16it [00:02, 7.45it/s] 17it [00:02, 7.46it/s] 18it [00:02, 7.44it/s] 19it [00:02, 7.43it/s] 20it [00:02, 7.42it/s] 21it [00:02, 7.42it/s] 22it [00:02, 7.43it/s] 23it [00:03, 7.45it/s] 24it [00:03, 7.44it/s] 25it [00:03, 7.44it/s] 26it [00:03, 7.45it/s] 27it [00:03, 7.45it/s] 28it [00:03, 7.45it/s] 29it [00:03, 7.44it/s] 30it [00:04, 7.42it/s] 31it [00:04, 7.43it/s] 32it [00:04, 7.44it/s] 33it [00:04, 7.43it/s] 34it [00:04, 7.44it/s] 35it [00:04, 7.45it/s] 36it [00:04, 7.46it/s] 37it [00:04, 7.47it/s] 38it [00:05, 7.46it/s] 39it [00:05, 7.45it/s] 40it [00:05, 7.44it/s] 41it [00:05, 7.43it/s] 41it [00:05, 7.45it/s] Total safe images: 4 out of 4
Prediction
leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffbID4tf2p14969rme0cktje90amekrStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 2
- output_quality
- 100
- prompt_strength
- 0.65
- extra_lora_scale
- 1
- num_inference_steps
- 50
{ "image": "https://replicate.delivery/pbxt/M9yGTtlBnjstAcKLMv6WtrK821zkeVqSRAsnadV3IV2L4aQc/IMG_1149.jpeg", "model": "dev", "prompt": "A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.65, "extra_lora_scale": 1, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", { input: { image: "https://replicate.delivery/pbxt/M9yGTtlBnjstAcKLMv6WtrK821zkeVqSRAsnadV3IV2L4aQc/IMG_1149.jpeg", model: "dev", prompt: "A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes. ", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "1:1", output_format: "png", guidance_scale: 2, output_quality: 100, prompt_strength: 0.65, extra_lora_scale: 1, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", input={ "image": "https://replicate.delivery/pbxt/M9yGTtlBnjstAcKLMv6WtrK821zkeVqSRAsnadV3IV2L4aQc/IMG_1149.jpeg", "model": "dev", "prompt": "A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes. ", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.65, "extra_lora_scale": 1, "num_inference_steps": 50 } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run leticiaaduke/test2 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": "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", "input": { "image": "https://replicate.delivery/pbxt/M9yGTtlBnjstAcKLMv6WtrK821zkeVqSRAsnadV3IV2L4aQc/IMG_1149.jpeg", "model": "dev", "prompt": "A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.65, "extra_lora_scale": 1, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-12-17T12:34:38.585438Z", "created_at": "2024-12-17T12:34:08.818000Z", "data_removed": false, "error": null, "id": "4tf2p14969rme0cktje90amekr", "input": { "image": "https://replicate.delivery/pbxt/M9yGTtlBnjstAcKLMv6WtrK821zkeVqSRAsnadV3IV2L4aQc/IMG_1149.jpeg", "model": "dev", "prompt": "A brunette woman a radiant, natural smile sitting in a contemporary office space. She wears a tailored navy blue suit with a matching blouse, and her short, wavy hair frames her face. The background includes bookshelves and greenery, giving the scene a warm and intellectual atmosphere. She looks directly into the camera with a poised yet approachable expression. She has deep brown eyes. ", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.65, "extra_lora_scale": 1, "num_inference_steps": 50 }, "logs": "2024-12-17 12:34:10.724 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 12:34:10.724 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2732.26it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2614.31it/s]\n2024-12-17 12:34:10.841 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s\nfree=29028969181184\nDownloading weights\n2024-12-17T12:34:10Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpa9p7zrjv/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\n2024-12-17T12:34:16Z | INFO | [ Complete ] dest=/tmp/tmpa9p7zrjv/weights size=\"172 MB\" total_elapsed=5.974s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\nDownloaded weights in 6.00s\n2024-12-17 12:34:16.841 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f\n2024-12-17 12:34:16.914 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-17 12:34:16.914 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 12:34:16.914 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2733.81it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2616.19it/s]\n2024-12-17 12:34:17.031 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s\nUsing seed: 8945\nImage detected - settting to img2img mode\nInput image size: 736x938\nInput image size set to: 736x944\n0it [00:00, ?it/s]\n2it [00:00, 9.10it/s]\n3it [00:00, 8.23it/s]\n4it [00:00, 7.83it/s]\n5it [00:00, 7.62it/s]\n6it [00:00, 7.49it/s]\n7it [00:00, 7.41it/s]\n8it [00:01, 7.35it/s]\n9it [00:01, 7.32it/s]\n10it [00:01, 7.30it/s]\n11it [00:01, 7.29it/s]\n12it [00:01, 7.28it/s]\n13it [00:01, 7.28it/s]\n14it [00:01, 7.27it/s]\n15it [00:02, 7.27it/s]\n16it [00:02, 7.27it/s]\n17it [00:02, 7.27it/s]\n18it [00:02, 7.27it/s]\n19it [00:02, 7.27it/s]\n20it [00:02, 7.27it/s]\n21it [00:02, 7.27it/s]\n22it [00:02, 7.27it/s]\n23it [00:03, 7.27it/s]\n24it [00:03, 7.27it/s]\n25it [00:03, 7.27it/s]\n26it [00:03, 7.27it/s]\n27it [00:03, 7.27it/s]\n28it [00:03, 7.27it/s]\n29it [00:03, 7.27it/s]\n30it [00:04, 7.26it/s]\n31it [00:04, 7.27it/s]\n32it [00:04, 7.27it/s]\n33it [00:04, 7.26it/s]\n33it [00:04, 7.35it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.36it/s]\n2it [00:00, 7.30it/s]\n3it [00:00, 7.28it/s]\n4it [00:00, 7.27it/s]\n5it [00:00, 7.26it/s]\n6it [00:00, 7.25it/s]\n7it [00:00, 7.25it/s]\n8it [00:01, 7.25it/s]\n9it [00:01, 7.25it/s]\n10it [00:01, 7.26it/s]\n11it [00:01, 7.26it/s]\n12it [00:01, 7.26it/s]\n13it [00:01, 7.26it/s]\n14it [00:01, 7.26it/s]\n15it [00:02, 7.26it/s]\n16it [00:02, 7.26it/s]\n17it [00:02, 7.26it/s]\n18it [00:02, 7.26it/s]\n19it [00:02, 7.26it/s]\n20it [00:02, 7.26it/s]\n21it [00:02, 7.26it/s]\n22it [00:03, 7.26it/s]\n23it [00:03, 7.26it/s]\n24it [00:03, 7.26it/s]\n25it [00:03, 7.26it/s]\n26it [00:03, 7.26it/s]\n27it [00:03, 7.26it/s]\n28it [00:03, 7.26it/s]\n29it [00:03, 7.26it/s]\n30it [00:04, 7.26it/s]\n31it [00:04, 7.26it/s]\n32it [00:04, 7.26it/s]\n33it [00:04, 7.26it/s]\n33it [00:04, 7.26it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.32it/s]\n2it [00:00, 7.27it/s]\n3it [00:00, 7.27it/s]\n4it [00:00, 7.22it/s]\n5it [00:00, 7.23it/s]\n6it [00:00, 7.24it/s]\n7it [00:00, 7.25it/s]\n8it [00:01, 7.25it/s]\n9it [00:01, 7.25it/s]\n10it [00:01, 7.24it/s]\n11it [00:01, 7.24it/s]\n12it [00:01, 7.23it/s]\n13it [00:01, 7.24it/s]\n14it [00:01, 7.23it/s]\n15it [00:02, 7.23it/s]\n16it [00:02, 7.24it/s]\n17it [00:02, 7.25it/s]\n18it [00:02, 7.24it/s]\n19it [00:02, 7.24it/s]\n20it [00:02, 7.24it/s]\n21it [00:02, 7.24it/s]\n22it [00:03, 7.23it/s]\n23it [00:03, 7.23it/s]\n24it [00:03, 7.23it/s]\n25it [00:03, 7.24it/s]\n26it [00:03, 7.24it/s]\n27it [00:03, 7.24it/s]\n28it [00:03, 7.24it/s]\n29it [00:04, 7.23it/s]\n30it [00:04, 7.24it/s]\n31it [00:04, 7.24it/s]\n32it [00:04, 7.25it/s]\n33it [00:04, 7.24it/s]\n33it [00:04, 7.24it/s]\n0it [00:00, ?it/s]\n1it [00:00, 7.31it/s]\n2it [00:00, 7.26it/s]\n3it [00:00, 7.26it/s]\n4it [00:00, 7.26it/s]\n5it [00:00, 7.25it/s]\n6it [00:00, 7.25it/s]\n7it [00:00, 7.24it/s]\n8it [00:01, 7.24it/s]\n9it [00:01, 7.23it/s]\n10it [00:01, 7.23it/s]\n11it [00:01, 7.23it/s]\n12it [00:01, 7.22it/s]\n13it [00:01, 7.22it/s]\n14it [00:01, 7.22it/s]\n15it [00:02, 7.22it/s]\n16it [00:02, 7.22it/s]\n17it [00:02, 7.22it/s]\n18it [00:02, 7.22it/s]\n19it [00:02, 7.22it/s]\n20it [00:02, 7.22it/s]\n21it [00:02, 7.22it/s]\n22it [00:03, 7.22it/s]\n23it [00:03, 7.22it/s]\n24it [00:03, 7.22it/s]\n25it [00:03, 7.22it/s]\n26it [00:03, 7.22it/s]\n27it [00:03, 7.22it/s]\n28it [00:03, 7.22it/s]\n29it [00:04, 7.22it/s]\n30it [00:04, 7.22it/s]\n31it [00:04, 7.22it/s]\n32it [00:04, 7.22it/s]\n33it [00:04, 7.22it/s]\n33it [00:04, 7.23it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 27.962458859, "total_time": 29.767438 }, "output": [ "https://replicate.delivery/xezq/b9wLdYj9WRYee0dZowtYLr3dbiCN1gvrBJ0lf0afZsx7dIvPB/out-0.png", "https://replicate.delivery/xezq/nfGjfxL97ePjko3ZfAGU8hUAuGH2KuKeA8ypEAZYPBGz7QeeJA/out-1.png", "https://replicate.delivery/xezq/6kefDSvQzaiP8UxF0USeR1hbnBGbZbhfdbfO19fHLdTl3h8eJA/out-2.png", "https://replicate.delivery/xezq/RfkX03VphtwDSaefLWHL1V7MtkiHchsego4EbUsuNJs7dIvPB/out-3.png" ], "started_at": "2024-12-17T12:34:10.622979Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-hu3rsr6bzyansgozz4e7bjwlkr6naemhvjwboy4xfix6akqfbkxa", "get": "https://api.replicate.com/v1/predictions/4tf2p14969rme0cktje90amekr", "cancel": "https://api.replicate.com/v1/predictions/4tf2p14969rme0cktje90amekr/cancel" }, "version": "5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb" }
Generated in2024-12-17 12:34:10.724 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 12:34:10.724 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2732.26it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2614.31it/s] 2024-12-17 12:34:10.841 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s free=29028969181184 Downloading weights 2024-12-17T12:34:10Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpa9p7zrjv/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar 2024-12-17T12:34:16Z | INFO | [ Complete ] dest=/tmp/tmpa9p7zrjv/weights size="172 MB" total_elapsed=5.974s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar Downloaded weights in 6.00s 2024-12-17 12:34:16.841 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f 2024-12-17 12:34:16.914 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded 2024-12-17 12:34:16.914 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 12:34:16.914 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2733.81it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2616.19it/s] 2024-12-17 12:34:17.031 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s Using seed: 8945 Image detected - settting to img2img mode Input image size: 736x938 Input image size set to: 736x944 0it [00:00, ?it/s] 2it [00:00, 9.10it/s] 3it [00:00, 8.23it/s] 4it [00:00, 7.83it/s] 5it [00:00, 7.62it/s] 6it [00:00, 7.49it/s] 7it [00:00, 7.41it/s] 8it [00:01, 7.35it/s] 9it [00:01, 7.32it/s] 10it [00:01, 7.30it/s] 11it [00:01, 7.29it/s] 12it [00:01, 7.28it/s] 13it [00:01, 7.28it/s] 14it [00:01, 7.27it/s] 15it [00:02, 7.27it/s] 16it [00:02, 7.27it/s] 17it [00:02, 7.27it/s] 18it [00:02, 7.27it/s] 19it [00:02, 7.27it/s] 20it [00:02, 7.27it/s] 21it [00:02, 7.27it/s] 22it [00:02, 7.27it/s] 23it [00:03, 7.27it/s] 24it [00:03, 7.27it/s] 25it [00:03, 7.27it/s] 26it [00:03, 7.27it/s] 27it [00:03, 7.27it/s] 28it [00:03, 7.27it/s] 29it [00:03, 7.27it/s] 30it [00:04, 7.26it/s] 31it [00:04, 7.27it/s] 32it [00:04, 7.27it/s] 33it [00:04, 7.26it/s] 33it [00:04, 7.35it/s] 0it [00:00, ?it/s] 1it [00:00, 7.36it/s] 2it [00:00, 7.30it/s] 3it [00:00, 7.28it/s] 4it [00:00, 7.27it/s] 5it [00:00, 7.26it/s] 6it [00:00, 7.25it/s] 7it [00:00, 7.25it/s] 8it [00:01, 7.25it/s] 9it [00:01, 7.25it/s] 10it [00:01, 7.26it/s] 11it [00:01, 7.26it/s] 12it [00:01, 7.26it/s] 13it [00:01, 7.26it/s] 14it [00:01, 7.26it/s] 15it [00:02, 7.26it/s] 16it [00:02, 7.26it/s] 17it [00:02, 7.26it/s] 18it [00:02, 7.26it/s] 19it [00:02, 7.26it/s] 20it [00:02, 7.26it/s] 21it [00:02, 7.26it/s] 22it [00:03, 7.26it/s] 23it [00:03, 7.26it/s] 24it [00:03, 7.26it/s] 25it [00:03, 7.26it/s] 26it [00:03, 7.26it/s] 27it [00:03, 7.26it/s] 28it [00:03, 7.26it/s] 29it [00:03, 7.26it/s] 30it [00:04, 7.26it/s] 31it [00:04, 7.26it/s] 32it [00:04, 7.26it/s] 33it [00:04, 7.26it/s] 33it [00:04, 7.26it/s] 0it [00:00, ?it/s] 1it [00:00, 7.32it/s] 2it [00:00, 7.27it/s] 3it [00:00, 7.27it/s] 4it [00:00, 7.22it/s] 5it [00:00, 7.23it/s] 6it [00:00, 7.24it/s] 7it [00:00, 7.25it/s] 8it [00:01, 7.25it/s] 9it [00:01, 7.25it/s] 10it [00:01, 7.24it/s] 11it [00:01, 7.24it/s] 12it [00:01, 7.23it/s] 13it [00:01, 7.24it/s] 14it [00:01, 7.23it/s] 15it [00:02, 7.23it/s] 16it [00:02, 7.24it/s] 17it [00:02, 7.25it/s] 18it [00:02, 7.24it/s] 19it [00:02, 7.24it/s] 20it [00:02, 7.24it/s] 21it [00:02, 7.24it/s] 22it [00:03, 7.23it/s] 23it [00:03, 7.23it/s] 24it [00:03, 7.23it/s] 25it [00:03, 7.24it/s] 26it [00:03, 7.24it/s] 27it [00:03, 7.24it/s] 28it [00:03, 7.24it/s] 29it [00:04, 7.23it/s] 30it [00:04, 7.24it/s] 31it [00:04, 7.24it/s] 32it [00:04, 7.25it/s] 33it [00:04, 7.24it/s] 33it [00:04, 7.24it/s] 0it [00:00, ?it/s] 1it [00:00, 7.31it/s] 2it [00:00, 7.26it/s] 3it [00:00, 7.26it/s] 4it [00:00, 7.26it/s] 5it [00:00, 7.25it/s] 6it [00:00, 7.25it/s] 7it [00:00, 7.24it/s] 8it [00:01, 7.24it/s] 9it [00:01, 7.23it/s] 10it [00:01, 7.23it/s] 11it [00:01, 7.23it/s] 12it [00:01, 7.22it/s] 13it [00:01, 7.22it/s] 14it [00:01, 7.22it/s] 15it [00:02, 7.22it/s] 16it [00:02, 7.22it/s] 17it [00:02, 7.22it/s] 18it [00:02, 7.22it/s] 19it [00:02, 7.22it/s] 20it [00:02, 7.22it/s] 21it [00:02, 7.22it/s] 22it [00:03, 7.22it/s] 23it [00:03, 7.22it/s] 24it [00:03, 7.22it/s] 25it [00:03, 7.22it/s] 26it [00:03, 7.22it/s] 27it [00:03, 7.22it/s] 28it [00:03, 7.22it/s] 29it [00:04, 7.22it/s] 30it [00:04, 7.22it/s] 31it [00:04, 7.22it/s] 32it [00:04, 7.22it/s] 33it [00:04, 7.22it/s] 33it [00:04, 7.23it/s] Total safe images: 4 out of 4
Prediction
leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffbIDnvyn5k3nd1rmc0cktk49gqg5dmStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 2
- output_quality
- 100
- prompt_strength
- 0.6
- extra_lora_scale
- 1
- num_inference_steps
- 50
{ "image": "https://replicate.delivery/pbxt/M9yzvQUa2QgcZUPny45JnBZcmIXtf3m3Ifgn577agsvD1Nz2/IMG_1180.jpeg", "model": "dev", "prompt": "A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", { input: { image: "https://replicate.delivery/pbxt/M9yzvQUa2QgcZUPny45JnBZcmIXtf3m3Ifgn577agsvD1Nz2/IMG_1180.jpeg", model: "dev", prompt: "A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "1:1", output_format: "png", guidance_scale: 2, output_quality: 100, prompt_strength: 0.6, extra_lora_scale: 1, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", input={ "image": "https://replicate.delivery/pbxt/M9yzvQUa2QgcZUPny45JnBZcmIXtf3m3Ifgn577agsvD1Nz2/IMG_1180.jpeg", "model": "dev", "prompt": "A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run leticiaaduke/test2 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": "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", "input": { "image": "https://replicate.delivery/pbxt/M9yzvQUa2QgcZUPny45JnBZcmIXtf3m3Ifgn577agsvD1Nz2/IMG_1180.jpeg", "model": "dev", "prompt": "A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-12-17T13:22:34.224858Z", "created_at": "2024-12-17T13:22:07.336000Z", "data_removed": false, "error": null, "id": "nvyn5k3nd1rmc0cktk49gqg5dm", "input": { "image": "https://replicate.delivery/pbxt/M9yzvQUa2QgcZUPny45JnBZcmIXtf3m3Ifgn577agsvD1Nz2/IMG_1180.jpeg", "model": "dev", "prompt": "A brunette woman le with long, flowing waves, dressed in a relaxed yet structured black suit. She sits on a minimalist chair, her pose casual but self-assured. Her expression conveys warmth and poise against a neutral-toned background", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 }, "logs": "2024-12-17 13:22:07.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 13:22:07.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2800.57it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2688.01it/s]\n2024-12-17 13:22:07.584 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s\nfree=29298925981696\nDownloading weights\n2024-12-17T13:22:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpst7zcf4k/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\n2024-12-17T13:22:12Z | INFO | [ Complete ] dest=/tmp/tmpst7zcf4k/weights size=\"172 MB\" total_elapsed=4.717s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\nDownloaded weights in 4.74s\n2024-12-17 13:22:12.327 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f\n2024-12-17 13:22:12.396 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-17 13:22:12.397 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 13:22:12.397 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2806.58it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2692.66it/s]\n2024-12-17 13:22:12.510 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s\nUsing seed: 43377\nImage detected - settting to img2img mode\nInput image size: 720x1037\nInput image size set to: 720x1040\n0it [00:00, ?it/s]\n2it [00:00, 8.40it/s]\n3it [00:00, 7.55it/s]\n4it [00:00, 7.18it/s]\n5it [00:00, 6.93it/s]\n6it [00:00, 6.83it/s]\n7it [00:00, 6.74it/s]\n8it [00:01, 6.70it/s]\n9it [00:01, 6.68it/s]\n10it [00:01, 6.65it/s]\n11it [00:01, 6.63it/s]\n12it [00:01, 6.60it/s]\n13it [00:01, 6.59it/s]\n14it [00:02, 6.56it/s]\n15it [00:02, 6.57it/s]\n16it [00:02, 6.58it/s]\n17it [00:02, 6.59it/s]\n18it [00:02, 6.58it/s]\n19it [00:02, 6.57it/s]\n20it [00:02, 6.59it/s]\n21it [00:03, 6.58it/s]\n22it [00:03, 6.55it/s]\n23it [00:03, 6.56it/s]\n24it [00:03, 6.57it/s]\n25it [00:03, 6.57it/s]\n26it [00:03, 6.58it/s]\n27it [00:04, 6.58it/s]\n28it [00:04, 6.57it/s]\n29it [00:04, 6.58it/s]\n30it [00:04, 6.59it/s]\n30it [00:04, 6.68it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.60it/s]\n2it [00:00, 6.58it/s]\n3it [00:00, 6.58it/s]\n4it [00:00, 6.58it/s]\n5it [00:00, 6.57it/s]\n6it [00:00, 6.57it/s]\n7it [00:01, 6.58it/s]\n8it [00:01, 6.60it/s]\n9it [00:01, 6.60it/s]\n10it [00:01, 6.60it/s]\n11it [00:01, 6.60it/s]\n12it [00:01, 6.59it/s]\n13it [00:01, 6.60it/s]\n14it [00:02, 6.59it/s]\n15it [00:02, 6.60it/s]\n16it [00:02, 6.60it/s]\n17it [00:02, 6.59it/s]\n18it [00:02, 6.60it/s]\n19it [00:02, 6.60it/s]\n20it [00:03, 6.59it/s]\n21it [00:03, 6.59it/s]\n22it [00:03, 6.59it/s]\n23it [00:03, 6.60it/s]\n24it [00:03, 6.60it/s]\n25it [00:03, 6.60it/s]\n26it [00:03, 6.57it/s]\n27it [00:04, 6.57it/s]\n28it [00:04, 6.57it/s]\n29it [00:04, 6.58it/s]\n30it [00:04, 6.59it/s]\n30it [00:04, 6.59it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.62it/s]\n2it [00:00, 6.57it/s]\n3it [00:00, 6.56it/s]\n4it [00:00, 6.55it/s]\n5it [00:00, 6.58it/s]\n6it [00:00, 6.59it/s]\n7it [00:01, 6.59it/s]\n8it [00:01, 6.60it/s]\n9it [00:01, 6.59it/s]\n10it [00:01, 6.58it/s]\n11it [00:01, 6.57it/s]\n12it [00:01, 6.58it/s]\n13it [00:01, 6.57it/s]\n14it [00:02, 6.59it/s]\n15it [00:02, 6.59it/s]\n16it [00:02, 6.59it/s]\n17it [00:02, 6.60it/s]\n18it [00:02, 6.58it/s]\n19it [00:02, 6.57it/s]\n20it [00:03, 6.58it/s]\n21it [00:03, 6.60it/s]\n22it [00:03, 6.61it/s]\n23it [00:03, 6.60it/s]\n24it [00:03, 6.58it/s]\n25it [00:03, 6.58it/s]\n26it [00:03, 6.57it/s]\n27it [00:04, 6.58it/s]\n28it [00:04, 6.57it/s]\n29it [00:04, 6.57it/s]\n30it [00:04, 6.57it/s]\n30it [00:04, 6.58it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.57it/s]\n2it [00:00, 6.56it/s]\n3it [00:00, 6.55it/s]\n4it [00:00, 6.58it/s]\n5it [00:00, 6.58it/s]\n6it [00:00, 6.59it/s]\n7it [00:01, 6.58it/s]\n8it [00:01, 6.58it/s]\n9it [00:01, 6.58it/s]\n10it [00:01, 6.58it/s]\n11it [00:01, 6.57it/s]\n12it [00:01, 6.59it/s]\n13it [00:01, 6.59it/s]\n14it [00:02, 6.57it/s]\n15it [00:02, 6.59it/s]\n16it [00:02, 6.57it/s]\n17it [00:02, 6.57it/s]\n18it [00:02, 6.55it/s]\n19it [00:02, 6.56it/s]\n20it [00:03, 6.57it/s]\n21it [00:03, 6.56it/s]\n22it [00:03, 6.56it/s]\n23it [00:03, 6.56it/s]\n24it [00:03, 6.55it/s]\n25it [00:03, 6.56it/s]\n26it [00:03, 6.56it/s]\n27it [00:04, 6.58it/s]\n28it [00:04, 6.59it/s]\n29it [00:04, 6.59it/s]\n30it [00:04, 6.58it/s]\n30it [00:04, 6.57it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 26.86640624, "total_time": 26.888858 }, "output": [ "https://replicate.delivery/xezq/4vw1QwcEr7IRCxSjefoGBexP9UsABJ5A4xIKr3O2iiv1ol3nA/out-0.png", "https://replicate.delivery/xezq/tmmdgGq6eqVAUScXeflBWddNQReUjVhmpfknibRQNbvVjWeeJA/out-1.png", "https://replicate.delivery/xezq/8QbXbNrdjabEMtlcdFwBxDK4oxweyMuXzWDTfFlOIfD0ol3nA/out-2.png", "https://replicate.delivery/xezq/Rzhs9uu4fhTmYq0Fk8pSfdFM6hfp5ejeSlp91SeWOhRkGt8eJA/out-3.png" ], "started_at": "2024-12-17T13:22:07.358452Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-2wsljegnaq46wjpncoy3oo5ol6vxky3nrd2upy6k2kizbrt6dl3q", "get": "https://api.replicate.com/v1/predictions/nvyn5k3nd1rmc0cktk49gqg5dm", "cancel": "https://api.replicate.com/v1/predictions/nvyn5k3nd1rmc0cktk49gqg5dm/cancel" }, "version": "5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb" }
Generated in2024-12-17 13:22:07.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 13:22:07.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2800.57it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2688.01it/s] 2024-12-17 13:22:07.584 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s free=29298925981696 Downloading weights 2024-12-17T13:22:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpst7zcf4k/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar 2024-12-17T13:22:12Z | INFO | [ Complete ] dest=/tmp/tmpst7zcf4k/weights size="172 MB" total_elapsed=4.717s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar Downloaded weights in 4.74s 2024-12-17 13:22:12.327 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f 2024-12-17 13:22:12.396 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded 2024-12-17 13:22:12.397 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 13:22:12.397 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 92%|█████████▏| 281/304 [00:00<00:00, 2806.58it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2692.66it/s] 2024-12-17 13:22:12.510 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s Using seed: 43377 Image detected - settting to img2img mode Input image size: 720x1037 Input image size set to: 720x1040 0it [00:00, ?it/s] 2it [00:00, 8.40it/s] 3it [00:00, 7.55it/s] 4it [00:00, 7.18it/s] 5it [00:00, 6.93it/s] 6it [00:00, 6.83it/s] 7it [00:00, 6.74it/s] 8it [00:01, 6.70it/s] 9it [00:01, 6.68it/s] 10it [00:01, 6.65it/s] 11it [00:01, 6.63it/s] 12it [00:01, 6.60it/s] 13it [00:01, 6.59it/s] 14it [00:02, 6.56it/s] 15it [00:02, 6.57it/s] 16it [00:02, 6.58it/s] 17it [00:02, 6.59it/s] 18it [00:02, 6.58it/s] 19it [00:02, 6.57it/s] 20it [00:02, 6.59it/s] 21it [00:03, 6.58it/s] 22it [00:03, 6.55it/s] 23it [00:03, 6.56it/s] 24it [00:03, 6.57it/s] 25it [00:03, 6.57it/s] 26it [00:03, 6.58it/s] 27it [00:04, 6.58it/s] 28it [00:04, 6.57it/s] 29it [00:04, 6.58it/s] 30it [00:04, 6.59it/s] 30it [00:04, 6.68it/s] 0it [00:00, ?it/s] 1it [00:00, 6.60it/s] 2it [00:00, 6.58it/s] 3it [00:00, 6.58it/s] 4it [00:00, 6.58it/s] 5it [00:00, 6.57it/s] 6it [00:00, 6.57it/s] 7it [00:01, 6.58it/s] 8it [00:01, 6.60it/s] 9it [00:01, 6.60it/s] 10it [00:01, 6.60it/s] 11it [00:01, 6.60it/s] 12it [00:01, 6.59it/s] 13it [00:01, 6.60it/s] 14it [00:02, 6.59it/s] 15it [00:02, 6.60it/s] 16it [00:02, 6.60it/s] 17it [00:02, 6.59it/s] 18it [00:02, 6.60it/s] 19it [00:02, 6.60it/s] 20it [00:03, 6.59it/s] 21it [00:03, 6.59it/s] 22it [00:03, 6.59it/s] 23it [00:03, 6.60it/s] 24it [00:03, 6.60it/s] 25it [00:03, 6.60it/s] 26it [00:03, 6.57it/s] 27it [00:04, 6.57it/s] 28it [00:04, 6.57it/s] 29it [00:04, 6.58it/s] 30it [00:04, 6.59it/s] 30it [00:04, 6.59it/s] 0it [00:00, ?it/s] 1it [00:00, 6.62it/s] 2it [00:00, 6.57it/s] 3it [00:00, 6.56it/s] 4it [00:00, 6.55it/s] 5it [00:00, 6.58it/s] 6it [00:00, 6.59it/s] 7it [00:01, 6.59it/s] 8it [00:01, 6.60it/s] 9it [00:01, 6.59it/s] 10it [00:01, 6.58it/s] 11it [00:01, 6.57it/s] 12it [00:01, 6.58it/s] 13it [00:01, 6.57it/s] 14it [00:02, 6.59it/s] 15it [00:02, 6.59it/s] 16it [00:02, 6.59it/s] 17it [00:02, 6.60it/s] 18it [00:02, 6.58it/s] 19it [00:02, 6.57it/s] 20it [00:03, 6.58it/s] 21it [00:03, 6.60it/s] 22it [00:03, 6.61it/s] 23it [00:03, 6.60it/s] 24it [00:03, 6.58it/s] 25it [00:03, 6.58it/s] 26it [00:03, 6.57it/s] 27it [00:04, 6.58it/s] 28it [00:04, 6.57it/s] 29it [00:04, 6.57it/s] 30it [00:04, 6.57it/s] 30it [00:04, 6.58it/s] 0it [00:00, ?it/s] 1it [00:00, 6.57it/s] 2it [00:00, 6.56it/s] 3it [00:00, 6.55it/s] 4it [00:00, 6.58it/s] 5it [00:00, 6.58it/s] 6it [00:00, 6.59it/s] 7it [00:01, 6.58it/s] 8it [00:01, 6.58it/s] 9it [00:01, 6.58it/s] 10it [00:01, 6.58it/s] 11it [00:01, 6.57it/s] 12it [00:01, 6.59it/s] 13it [00:01, 6.59it/s] 14it [00:02, 6.57it/s] 15it [00:02, 6.59it/s] 16it [00:02, 6.57it/s] 17it [00:02, 6.57it/s] 18it [00:02, 6.55it/s] 19it [00:02, 6.56it/s] 20it [00:03, 6.57it/s] 21it [00:03, 6.56it/s] 22it [00:03, 6.56it/s] 23it [00:03, 6.56it/s] 24it [00:03, 6.55it/s] 25it [00:03, 6.56it/s] 26it [00:03, 6.56it/s] 27it [00:04, 6.58it/s] 28it [00:04, 6.59it/s] 29it [00:04, 6.59it/s] 30it [00:04, 6.58it/s] 30it [00:04, 6.57it/s] Total safe images: 4 out of 4
Prediction
leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffbIDtn4cy8dygsrmc0cktk6sm3451wStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere
- go_fast
- lora_scale
- 0.85
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 2
- output_quality
- 100
- prompt_strength
- 0.6
- extra_lora_scale
- 1
- num_inference_steps
- 50
{ "image": "https://replicate.delivery/pbxt/M9z5PXdvDdyeOHSLoUAa6j5EF0sLW2WfZ04wC9Yqz239Re9S/IMG_1182.jpeg", "model": "dev", "prompt": "A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere", "go_fast": false, "lora_scale": 0.85, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", { input: { image: "https://replicate.delivery/pbxt/M9z5PXdvDdyeOHSLoUAa6j5EF0sLW2WfZ04wC9Yqz239Re9S/IMG_1182.jpeg", model: "dev", prompt: "A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere", go_fast: false, lora_scale: 0.85, megapixels: "1", num_outputs: 4, aspect_ratio: "1:1", output_format: "png", guidance_scale: 2, output_quality: 100, prompt_strength: 0.6, extra_lora_scale: 1, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run leticiaaduke/test2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", input={ "image": "https://replicate.delivery/pbxt/M9z5PXdvDdyeOHSLoUAa6j5EF0sLW2WfZ04wC9Yqz239Re9S/IMG_1182.jpeg", "model": "dev", "prompt": "A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere", "go_fast": False, "lora_scale": 0.85, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run leticiaaduke/test2 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": "leticiaaduke/test2:5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb", "input": { "image": "https://replicate.delivery/pbxt/M9z5PXdvDdyeOHSLoUAa6j5EF0sLW2WfZ04wC9Yqz239Re9S/IMG_1182.jpeg", "model": "dev", "prompt": "A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere", "go_fast": false, "lora_scale": 0.85, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-12-17T13:28:25.079488Z", "created_at": "2024-12-17T13:27:53.734000Z", "data_removed": false, "error": null, "id": "tn4cy8dygsrmc0cktk6sm3451w", "input": { "image": "https://replicate.delivery/pbxt/M9z5PXdvDdyeOHSLoUAa6j5EF0sLW2WfZ04wC9Yqz239Re9S/IMG_1182.jpeg", "model": "dev", "prompt": "A black-and-white close-up portrait of a woman le with long, flowing blonde hair. She wears a fitted black suit jacket and a delicate necklace. Her gaze is strong and serene, with soft lighting highlighting her facial features and hair texture, creating a classic and editorial atmosphere", "go_fast": false, "lora_scale": 0.85, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 2, "output_quality": 100, "prompt_strength": 0.6, "extra_lora_scale": 1, "num_inference_steps": 50 }, "logs": "2024-12-17 13:27:56.474 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 13:27:56.474 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 91%|█████████ | 277/304 [00:00<00:00, 2768.19it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2602.04it/s]\n2024-12-17 13:27:56.591 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s\nfree=28855270301696\nDownloading weights\n2024-12-17T13:27:56Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpidrrsxpd/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\n2024-12-17T13:28:01Z | INFO | [ Complete ] dest=/tmp/tmpidrrsxpd/weights size=\"172 MB\" total_elapsed=5.312s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar\nDownloaded weights in 5.34s\n2024-12-17 13:28:01.930 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f\n2024-12-17 13:28:02.003 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-17 13:28:02.003 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-17 13:28:02.003 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 91%|█████████ | 277/304 [00:00<00:00, 2753.84it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2588.20it/s]\n2024-12-17 13:28:02.121 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s\nUsing seed: 61010\nImage detected - settting to img2img mode\nInput image size: 735x1102\nInput image size set to: 736x1104\n0it [00:00, ?it/s]\n2it [00:00, 7.94it/s]\n3it [00:00, 7.16it/s]\n4it [00:00, 6.81it/s]\n5it [00:00, 6.61it/s]\n6it [00:00, 6.48it/s]\n7it [00:01, 6.38it/s]\n8it [00:01, 6.33it/s]\n9it [00:01, 6.31it/s]\n10it [00:01, 6.32it/s]\n11it [00:01, 6.32it/s]\n12it [00:01, 6.31it/s]\n13it [00:02, 6.28it/s]\n14it [00:02, 6.26it/s]\n15it [00:02, 6.26it/s]\n16it [00:02, 6.27it/s]\n17it [00:02, 6.28it/s]\n18it [00:02, 6.28it/s]\n19it [00:02, 6.29it/s]\n20it [00:03, 6.28it/s]\n21it [00:03, 6.28it/s]\n22it [00:03, 6.27it/s]\n23it [00:03, 6.28it/s]\n24it [00:03, 6.29it/s]\n25it [00:03, 6.28it/s]\n26it [00:04, 6.27it/s]\n27it [00:04, 6.27it/s]\n28it [00:04, 6.27it/s]\n29it [00:04, 6.25it/s]\n30it [00:04, 6.27it/s]\n30it [00:04, 6.36it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.29it/s]\n2it [00:00, 6.30it/s]\n3it [00:00, 6.30it/s]\n4it [00:00, 6.29it/s]\n5it [00:00, 6.27it/s]\n6it [00:00, 6.27it/s]\n7it [00:01, 6.27it/s]\n8it [00:01, 6.26it/s]\n9it [00:01, 6.26it/s]\n10it [00:01, 6.27it/s]\n11it [00:01, 6.26it/s]\n12it [00:01, 6.27it/s]\n13it [00:02, 6.26it/s]\n14it [00:02, 6.27it/s]\n15it [00:02, 6.27it/s]\n16it [00:02, 6.27it/s]\n17it [00:02, 6.27it/s]\n18it [00:02, 6.26it/s]\n19it [00:03, 6.27it/s]\n20it [00:03, 6.27it/s]\n21it [00:03, 6.27it/s]\n22it [00:03, 6.27it/s]\n23it [00:03, 6.27it/s]\n24it [00:03, 6.26it/s]\n25it [00:03, 6.25it/s]\n26it [00:04, 6.26it/s]\n27it [00:04, 6.25it/s]\n28it [00:04, 6.26it/s]\n29it [00:04, 6.27it/s]\n30it [00:04, 6.27it/s]\n30it [00:04, 6.27it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.28it/s]\n2it [00:00, 6.27it/s]\n3it [00:00, 6.26it/s]\n4it [00:00, 6.27it/s]\n5it [00:00, 6.25it/s]\n6it [00:00, 6.24it/s]\n7it [00:01, 6.24it/s]\n8it [00:01, 6.24it/s]\n9it [00:01, 6.25it/s]\n10it [00:01, 6.26it/s]\n11it [00:01, 6.25it/s]\n12it [00:01, 6.25it/s]\n13it [00:02, 6.25it/s]\n14it [00:02, 6.24it/s]\n15it [00:02, 6.24it/s]\n16it [00:02, 6.23it/s]\n17it [00:02, 6.24it/s]\n18it [00:02, 6.24it/s]\n19it [00:03, 6.24it/s]\n20it [00:03, 6.25it/s]\n21it [00:03, 6.25it/s]\n22it [00:03, 6.25it/s]\n23it [00:03, 6.25it/s]\n24it [00:03, 6.24it/s]\n25it [00:04, 6.26it/s]\n26it [00:04, 6.26it/s]\n27it [00:04, 6.26it/s]\n28it [00:04, 6.26it/s]\n29it [00:04, 6.25it/s]\n30it [00:04, 6.26it/s]\n30it [00:04, 6.25it/s]\n0it [00:00, ?it/s]\n1it [00:00, 6.30it/s]\n2it [00:00, 6.25it/s]\n3it [00:00, 6.26it/s]\n4it [00:00, 6.26it/s]\n5it [00:00, 6.26it/s]\n6it [00:00, 6.26it/s]\n7it [00:01, 6.25it/s]\n8it [00:01, 6.25it/s]\n9it [00:01, 6.25it/s]\n10it [00:01, 6.25it/s]\n11it [00:01, 6.26it/s]\n12it [00:01, 6.27it/s]\n13it [00:02, 6.26it/s]\n14it [00:02, 6.27it/s]\n15it [00:02, 6.26it/s]\n16it [00:02, 6.26it/s]\n17it [00:02, 6.26it/s]\n18it [00:02, 6.26it/s]\n19it [00:03, 6.27it/s]\n20it [00:03, 6.26it/s]\n21it [00:03, 6.26it/s]\n22it [00:03, 6.26it/s]\n23it [00:03, 6.26it/s]\n24it [00:03, 6.25it/s]\n25it [00:03, 6.26it/s]\n26it [00:04, 6.26it/s]\n27it [00:04, 6.26it/s]\n28it [00:04, 6.26it/s]\n29it [00:04, 6.26it/s]\n30it [00:04, 6.26it/s]\n30it [00:04, 6.26it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 28.714349899, "total_time": 31.345488 }, "output": [ "https://replicate.delivery/xezq/Ed9d7IV8wXJCAhkw5ymkXkD02w6fSfyCOyeQ9PxtYsfnnLvPB/out-0.png", "https://replicate.delivery/xezq/WikLNk4Zex2IeU3GkTuOdqvWRDMiswxaHm26pu1Xx5J55y7TA/out-1.png", "https://replicate.delivery/xezq/7t4ndFvtp9qXBFXesLut70c2kGY3Ievk0NZh32ebwFlzzl3nA/out-2.png", "https://replicate.delivery/xezq/LH9YsHUEhRKXPh2V8DOm1PTmaxZUnj1fD0IXr3pELD98c59JA/out-3.png" ], "started_at": "2024-12-17T13:27:56.365138Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-fojy46kolto27a3mkfliyd6m26heny7garsokwmvcrgr5pd4do4a", "get": "https://api.replicate.com/v1/predictions/tn4cy8dygsrmc0cktk6sm3451w", "cancel": "https://api.replicate.com/v1/predictions/tn4cy8dygsrmc0cktk6sm3451w/cancel" }, "version": "5f6bfb817ddae4f4423f0730e1ea04dca771ea57fbe65306c26a39526d9bfffb" }
Generated in2024-12-17 13:27:56.474 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 13:27:56.474 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 91%|█████████ | 277/304 [00:00<00:00, 2768.19it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2602.04it/s] 2024-12-17 13:27:56.591 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s free=28855270301696 Downloading weights 2024-12-17T13:27:56Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpidrrsxpd/weights url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar 2024-12-17T13:28:01Z | INFO | [ Complete ] dest=/tmp/tmpidrrsxpd/weights size="172 MB" total_elapsed=5.312s url=https://replicate.delivery/yhqm/BG3zE6pGnqojI199jhDFH5f9Zjg4bYXoObN2fSU4eGsFfrtOB/trained_model.tar Downloaded weights in 5.34s 2024-12-17 13:28:01.930 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/3b1473488bc6cf5f 2024-12-17 13:28:02.003 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded 2024-12-17 13:28:02.003 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2024-12-17 13:28:02.003 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 91%|█████████ | 277/304 [00:00<00:00, 2753.84it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2588.20it/s] 2024-12-17 13:28:02.121 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.19s Using seed: 61010 Image detected - settting to img2img mode Input image size: 735x1102 Input image size set to: 736x1104 0it [00:00, ?it/s] 2it [00:00, 7.94it/s] 3it [00:00, 7.16it/s] 4it [00:00, 6.81it/s] 5it [00:00, 6.61it/s] 6it [00:00, 6.48it/s] 7it [00:01, 6.38it/s] 8it [00:01, 6.33it/s] 9it [00:01, 6.31it/s] 10it [00:01, 6.32it/s] 11it [00:01, 6.32it/s] 12it [00:01, 6.31it/s] 13it [00:02, 6.28it/s] 14it [00:02, 6.26it/s] 15it [00:02, 6.26it/s] 16it [00:02, 6.27it/s] 17it [00:02, 6.28it/s] 18it [00:02, 6.28it/s] 19it [00:02, 6.29it/s] 20it [00:03, 6.28it/s] 21it [00:03, 6.28it/s] 22it [00:03, 6.27it/s] 23it [00:03, 6.28it/s] 24it [00:03, 6.29it/s] 25it [00:03, 6.28it/s] 26it [00:04, 6.27it/s] 27it [00:04, 6.27it/s] 28it [00:04, 6.27it/s] 29it [00:04, 6.25it/s] 30it [00:04, 6.27it/s] 30it [00:04, 6.36it/s] 0it [00:00, ?it/s] 1it [00:00, 6.29it/s] 2it [00:00, 6.30it/s] 3it [00:00, 6.30it/s] 4it [00:00, 6.29it/s] 5it [00:00, 6.27it/s] 6it [00:00, 6.27it/s] 7it [00:01, 6.27it/s] 8it [00:01, 6.26it/s] 9it [00:01, 6.26it/s] 10it [00:01, 6.27it/s] 11it [00:01, 6.26it/s] 12it [00:01, 6.27it/s] 13it [00:02, 6.26it/s] 14it [00:02, 6.27it/s] 15it [00:02, 6.27it/s] 16it [00:02, 6.27it/s] 17it [00:02, 6.27it/s] 18it [00:02, 6.26it/s] 19it [00:03, 6.27it/s] 20it [00:03, 6.27it/s] 21it [00:03, 6.27it/s] 22it [00:03, 6.27it/s] 23it [00:03, 6.27it/s] 24it [00:03, 6.26it/s] 25it [00:03, 6.25it/s] 26it [00:04, 6.26it/s] 27it [00:04, 6.25it/s] 28it [00:04, 6.26it/s] 29it [00:04, 6.27it/s] 30it [00:04, 6.27it/s] 30it [00:04, 6.27it/s] 0it [00:00, ?it/s] 1it [00:00, 6.28it/s] 2it [00:00, 6.27it/s] 3it [00:00, 6.26it/s] 4it [00:00, 6.27it/s] 5it [00:00, 6.25it/s] 6it [00:00, 6.24it/s] 7it [00:01, 6.24it/s] 8it [00:01, 6.24it/s] 9it [00:01, 6.25it/s] 10it [00:01, 6.26it/s] 11it [00:01, 6.25it/s] 12it [00:01, 6.25it/s] 13it [00:02, 6.25it/s] 14it [00:02, 6.24it/s] 15it [00:02, 6.24it/s] 16it [00:02, 6.23it/s] 17it [00:02, 6.24it/s] 18it [00:02, 6.24it/s] 19it [00:03, 6.24it/s] 20it [00:03, 6.25it/s] 21it [00:03, 6.25it/s] 22it [00:03, 6.25it/s] 23it [00:03, 6.25it/s] 24it [00:03, 6.24it/s] 25it [00:04, 6.26it/s] 26it [00:04, 6.26it/s] 27it [00:04, 6.26it/s] 28it [00:04, 6.26it/s] 29it [00:04, 6.25it/s] 30it [00:04, 6.26it/s] 30it [00:04, 6.25it/s] 0it [00:00, ?it/s] 1it [00:00, 6.30it/s] 2it [00:00, 6.25it/s] 3it [00:00, 6.26it/s] 4it [00:00, 6.26it/s] 5it [00:00, 6.26it/s] 6it [00:00, 6.26it/s] 7it [00:01, 6.25it/s] 8it [00:01, 6.25it/s] 9it [00:01, 6.25it/s] 10it [00:01, 6.25it/s] 11it [00:01, 6.26it/s] 12it [00:01, 6.27it/s] 13it [00:02, 6.26it/s] 14it [00:02, 6.27it/s] 15it [00:02, 6.26it/s] 16it [00:02, 6.26it/s] 17it [00:02, 6.26it/s] 18it [00:02, 6.26it/s] 19it [00:03, 6.27it/s] 20it [00:03, 6.26it/s] 21it [00:03, 6.26it/s] 22it [00:03, 6.26it/s] 23it [00:03, 6.26it/s] 24it [00:03, 6.25it/s] 25it [00:03, 6.26it/s] 26it [00:04, 6.26it/s] 27it [00:04, 6.26it/s] 28it [00:04, 6.26it/s] 29it [00:04, 6.26it/s] 30it [00:04, 6.26it/s] 30it [00:04, 6.26it/s] Total safe images: 4 out of 4
Want to make some of these yourself?
Run this model