crivera / sketch-lora
Create pencil sketches of anything
- Public
- 4.5K runs
-
H100
- License
Prediction
crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08IDw2zwk1ym0xrm60chtyn89zb118StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", { input: { model: "dev", prompt: "A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", input={ "model": "dev", "prompt": "A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run crivera/sketch-lora 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": "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", "input": { "model": "dev", "prompt": "A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-09T16:43:21.799183Z", "created_at": "2024-09-09T16:43:02.535000Z", "data_removed": false, "error": null, "id": "w2zwk1ym0xrm60chtyn89zb118", "input": { "model": "dev", "prompt": "A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 56285\nPrompt: A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel.\n[!] txt2img mode\nUsing dev model\nfree=9266474115072\nDownloading weights\n2024-09-09T16:43:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsnjutrv1/weights url=https://replicate.delivery/yhqm/e0KqeYrcwAimh0RPBeEQJa5MJEct4Ja85wfcValQsK5S9ysNB/trained_model.tar\n2024-09-09T16:43:07Z | INFO | [ Complete ] dest=/tmp/tmpsnjutrv1/weights size=\"172 MB\" total_elapsed=3.201s url=https://replicate.delivery/yhqm/e0KqeYrcwAimh0RPBeEQJa5MJEct4Ja85wfcValQsK5S9ysNB/trained_model.tar\nDownloaded weights in 3.24s\nLoaded LoRAs in 10.05s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:07, 3.76it/s]\n 7%|▋ | 2/28 [00:00<00:06, 4.25it/s]\n 11%|█ | 3/28 [00:00<00:06, 4.01it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.91it/s]\n 18%|█▊ | 5/28 [00:01<00:05, 3.86it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 3.83it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.81it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.79it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.78it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 3.77it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 3.77it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.77it/s]\n 46%|████▋ | 13/28 [00:03<00:03, 3.76it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.76it/s]\n 54%|█████▎ | 15/28 [00:03<00:03, 3.76it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.76it/s]\n 61%|██████ | 17/28 [00:04<00:02, 3.76it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 3.76it/s]\n 68%|██████▊ | 19/28 [00:05<00:02, 3.76it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.76it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.76it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 3.76it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.76it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.76it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 3.76it/s]\n 93%|█████████▎| 26/28 [00:06<00:00, 3.76it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.76it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.76it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.79it/s]", "metrics": { "predict_time": 17.99533656, "total_time": 19.264183 }, "output": [ "https://replicate.delivery/yhqm/M0rhRGKILTYsDJtJ5mjwKNTxw0hFeovKje5PtwBde58S9a2mA/out-0.webp" ], "started_at": "2024-09-09T16:43:03.803847Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/w2zwk1ym0xrm60chtyn89zb118", "cancel": "https://api.replicate.com/v1/predictions/w2zwk1ym0xrm60chtyn89zb118/cancel" }, "version": "32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08" }
Generated inUsing seed: 56285 Prompt: A sketch of a mouse character in the style of TOK. The character is whistling a happy tune and wearing a captains hat. The character is on an old shrimp boat holding the steering wheel. [!] txt2img mode Using dev model free=9266474115072 Downloading weights 2024-09-09T16:43:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsnjutrv1/weights url=https://replicate.delivery/yhqm/e0KqeYrcwAimh0RPBeEQJa5MJEct4Ja85wfcValQsK5S9ysNB/trained_model.tar 2024-09-09T16:43:07Z | INFO | [ Complete ] dest=/tmp/tmpsnjutrv1/weights size="172 MB" total_elapsed=3.201s url=https://replicate.delivery/yhqm/e0KqeYrcwAimh0RPBeEQJa5MJEct4Ja85wfcValQsK5S9ysNB/trained_model.tar Downloaded weights in 3.24s Loaded LoRAs in 10.05s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:07, 3.76it/s] 7%|▋ | 2/28 [00:00<00:06, 4.25it/s] 11%|█ | 3/28 [00:00<00:06, 4.01it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.91it/s] 18%|█▊ | 5/28 [00:01<00:05, 3.86it/s] 21%|██▏ | 6/28 [00:01<00:05, 3.83it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.81it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.79it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.78it/s] 36%|███▌ | 10/28 [00:02<00:04, 3.77it/s] 39%|███▉ | 11/28 [00:02<00:04, 3.77it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.77it/s] 46%|████▋ | 13/28 [00:03<00:03, 3.76it/s] 50%|█████ | 14/28 [00:03<00:03, 3.76it/s] 54%|█████▎ | 15/28 [00:03<00:03, 3.76it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.76it/s] 61%|██████ | 17/28 [00:04<00:02, 3.76it/s] 64%|██████▍ | 18/28 [00:04<00:02, 3.76it/s] 68%|██████▊ | 19/28 [00:05<00:02, 3.76it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.76it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.76it/s] 79%|███████▊ | 22/28 [00:05<00:01, 3.76it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.76it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.76it/s] 89%|████████▉ | 25/28 [00:06<00:00, 3.76it/s] 93%|█████████▎| 26/28 [00:06<00:00, 3.76it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.76it/s] 100%|██████████| 28/28 [00:07<00:00, 3.76it/s] 100%|██████████| 28/28 [00:07<00:00, 3.79it/s]
Prediction
crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08IDfv7x52vedxrm00chtyk8hksnjwStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", { input: { model: "dev", prompt: "A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", input={ "model": "dev", "prompt": "A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run crivera/sketch-lora 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": "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", "input": { "model": "dev", "prompt": "A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-09T16:38:36.515949Z", "created_at": "2024-09-09T16:38:14.383000Z", "data_removed": false, "error": null, "id": "fv7x52vedxrm00chtyk8hksnjw", "input": { "model": "dev", "prompt": "A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 36472\nPrompt: A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 6.85s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:07, 3.77it/s]\n 7%|▋ | 2/28 [00:00<00:06, 4.26it/s]\n 11%|█ | 3/28 [00:00<00:06, 4.02it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.92it/s]\n 18%|█▊ | 5/28 [00:01<00:05, 3.86it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 3.83it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.81it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.80it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.79it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 3.79it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 3.78it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.78it/s]\n 46%|████▋ | 13/28 [00:03<00:03, 3.78it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.78it/s]\n 54%|█████▎ | 15/28 [00:03<00:03, 3.78it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.78it/s]\n 61%|██████ | 17/28 [00:04<00:02, 3.78it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 3.77it/s]\n 68%|██████▊ | 19/28 [00:04<00:02, 3.77it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.77it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.77it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 3.77it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.77it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.77it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 3.77it/s]\n 93%|█████████▎| 26/28 [00:06<00:00, 3.77it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.77it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.77it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.80it/s]", "metrics": { "predict_time": 14.809894618, "total_time": 22.132949 }, "output": [ "https://replicate.delivery/yhqm/OgexIVQe9CpkjUae3gnrqXgeYzS2qE5HOyrn1TvFS8kzo1sNB/out-0.webp" ], "started_at": "2024-09-09T16:38:21.706054Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fv7x52vedxrm00chtyk8hksnjw", "cancel": "https://api.replicate.com/v1/predictions/fv7x52vedxrm00chtyk8hksnjw/cancel" }, "version": "32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08" }
Generated inUsing seed: 36472 Prompt: A sketch of a girl laying on a couch in the style of TOK. The girl looks dreamy at the screen and is wearing a 1920 ballroom dress [!] txt2img mode Using dev model Loaded LoRAs in 6.85s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:07, 3.77it/s] 7%|▋ | 2/28 [00:00<00:06, 4.26it/s] 11%|█ | 3/28 [00:00<00:06, 4.02it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.92it/s] 18%|█▊ | 5/28 [00:01<00:05, 3.86it/s] 21%|██▏ | 6/28 [00:01<00:05, 3.83it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.81it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.80it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.79it/s] 36%|███▌ | 10/28 [00:02<00:04, 3.79it/s] 39%|███▉ | 11/28 [00:02<00:04, 3.78it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.78it/s] 46%|████▋ | 13/28 [00:03<00:03, 3.78it/s] 50%|█████ | 14/28 [00:03<00:03, 3.78it/s] 54%|█████▎ | 15/28 [00:03<00:03, 3.78it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.78it/s] 61%|██████ | 17/28 [00:04<00:02, 3.78it/s] 64%|██████▍ | 18/28 [00:04<00:02, 3.77it/s] 68%|██████▊ | 19/28 [00:04<00:02, 3.77it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.77it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.77it/s] 79%|███████▊ | 22/28 [00:05<00:01, 3.77it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.77it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.77it/s] 89%|████████▉ | 25/28 [00:06<00:00, 3.77it/s] 93%|█████████▎| 26/28 [00:06<00:00, 3.77it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.77it/s] 100%|██████████| 28/28 [00:07<00:00, 3.77it/s] 100%|██████████| 28/28 [00:07<00:00, 3.80it/s]
Prediction
crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08ID64mgx1sg1hrm20chybcrwj3pfmStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A black and white sketch the style of TOK of pikachu doing a thunderbolt
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A black and white sketch the style of TOK of pikachu doing a thunderbolt", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", { input: { model: "dev", prompt: "A black and white sketch the style of TOK of pikachu doing a thunderbolt", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run crivera/sketch-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", input={ "model": "dev", "prompt": "A black and white sketch the style of TOK of pikachu doing a thunderbolt", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run crivera/sketch-lora 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": "crivera/sketch-lora:32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08", "input": { "model": "dev", "prompt": "A black and white sketch the style of TOK of pikachu doing a thunderbolt", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-14T23:23:45.020626Z", "created_at": "2024-09-14T23:23:25.580000Z", "data_removed": false, "error": null, "id": "64mgx1sg1hrm20chybcrwj3pfm", "input": { "model": "dev", "prompt": "A black and white sketch the style of TOK of pikachu doing a thunderbolt", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 17295\nPrompt: A black and white sketch the style of TOK of pikachu doing a thunderbolt\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 7.89s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:07, 3.51it/s]\n 7%|▋ | 2/28 [00:00<00:06, 3.98it/s]\n 11%|█ | 3/28 [00:00<00:06, 3.76it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.66it/s]\n 18%|█▊ | 5/28 [00:01<00:06, 3.61it/s]\n 21%|██▏ | 6/28 [00:01<00:06, 3.58it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.56it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.55it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.54it/s]\n 36%|███▌ | 10/28 [00:02<00:05, 3.54it/s]\n 39%|███▉ | 11/28 [00:03<00:04, 3.53it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.53it/s]\n 46%|████▋ | 13/28 [00:03<00:04, 3.53it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.53it/s]\n 54%|█████▎ | 15/28 [00:04<00:03, 3.53it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.53it/s]\n 61%|██████ | 17/28 [00:04<00:03, 3.52it/s]\n 64%|██████▍ | 18/28 [00:05<00:02, 3.52it/s]\n 68%|██████▊ | 19/28 [00:05<00:02, 3.52it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.52it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.52it/s]\n 79%|███████▊ | 22/28 [00:06<00:01, 3.52it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.52it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.52it/s]\n 89%|████████▉ | 25/28 [00:07<00:00, 3.52it/s]\n 93%|█████████▎| 26/28 [00:07<00:00, 3.52it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.52it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.52it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.55it/s]", "metrics": { "predict_time": 16.324737378000002, "total_time": 19.440626 }, "output": [ "https://replicate.delivery/yhqm/AaHF7sZKuvZfeUUShE4QpfXSoUzcbzTVJ5GiS2fsfeWcANP3E/out-0.webp" ], "started_at": "2024-09-14T23:23:28.695889Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/64mgx1sg1hrm20chybcrwj3pfm", "cancel": "https://api.replicate.com/v1/predictions/64mgx1sg1hrm20chybcrwj3pfm/cancel" }, "version": "32d7a493bcbd5212bf43e6a3f48b7ba716f9f159eabd13ccdbe5d0bcd747ff08" }
Generated inUsing seed: 17295 Prompt: A black and white sketch the style of TOK of pikachu doing a thunderbolt [!] txt2img mode Using dev model Loaded LoRAs in 7.89s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:07, 3.51it/s] 7%|▋ | 2/28 [00:00<00:06, 3.98it/s] 11%|█ | 3/28 [00:00<00:06, 3.76it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.66it/s] 18%|█▊ | 5/28 [00:01<00:06, 3.61it/s] 21%|██▏ | 6/28 [00:01<00:06, 3.58it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.56it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.55it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.54it/s] 36%|███▌ | 10/28 [00:02<00:05, 3.54it/s] 39%|███▉ | 11/28 [00:03<00:04, 3.53it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.53it/s] 46%|████▋ | 13/28 [00:03<00:04, 3.53it/s] 50%|█████ | 14/28 [00:03<00:03, 3.53it/s] 54%|█████▎ | 15/28 [00:04<00:03, 3.53it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.53it/s] 61%|██████ | 17/28 [00:04<00:03, 3.52it/s] 64%|██████▍ | 18/28 [00:05<00:02, 3.52it/s] 68%|██████▊ | 19/28 [00:05<00:02, 3.52it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.52it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.52it/s] 79%|███████▊ | 22/28 [00:06<00:01, 3.52it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.52it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.52it/s] 89%|████████▉ | 25/28 [00:07<00:00, 3.52it/s] 93%|█████████▎| 26/28 [00:07<00:00, 3.52it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.52it/s] 100%|██████████| 28/28 [00:07<00:00, 3.52it/s] 100%|██████████| 28/28 [00:07<00:00, 3.55it/s]
Want to make some of these yourself?
Run this model