hadasadler / yoavai
- Public
- 33 runs
-
H100
Prediction
hadasadler/yoavai:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50bIDe2t82vysa1rmc0cnegwavfs140StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 16:9
- output_format
- jpg
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "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"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hadasadler/yoavai using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hadasadler/yoavai:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b", { input: { model: "dev", prompt: "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\n\n", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 1, aspect_ratio: "16:9", output_format: "jpg", guidance_scale: 3, output_quality: 80, 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 hadasadler/yoavai using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hadasadler/yoavai:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b", input={ "model": "dev", "prompt": "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\n\n", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "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 hadasadler/yoavai 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": "hadasadler/yoavai:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b", "input": { "model": "dev", "prompt": "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\\n\\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "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.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/hadasadler/yoavai@sha256:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b \ -i 'model="dev"' \ -i $'prompt="yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\\n\\n"' \ -i 'go_fast=false' \ -i 'lora_scale=1' \ -i 'megapixels="1"' \ -i 'num_outputs=1' \ -i 'aspect_ratio="16:9"' \ -i 'output_format="jpg"' \ -i 'guidance_scale=3' \ -i 'output_quality=80' \ -i 'prompt_strength=0.8' \ -i 'extra_lora_scale=1' \ -i 'num_inference_steps=28'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/hadasadler/yoavai@sha256:c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "model": "dev", "prompt": "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\\n\\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2025-03-08T05:27:27.064779Z", "created_at": "2025-03-08T05:27:17.584000Z", "data_removed": false, "error": null, "id": "e2t82vysa1rmc0cnegwavfs140", "input": { "model": "dev", "prompt": "yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=27916330356736\nDownloading weights\n2025-03-08T05:27:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpv0s1o3nx/weights url=https://replicate.delivery/xezq/zAs3VkyhTyKkLtdbizDaSIPmHfvp2AN3f1OXXeOYHyqcCPAoA/trained_model.tar\n2025-03-08T05:27:19Z | INFO | [ Complete ] dest=/tmp/tmpv0s1o3nx/weights size=\"172 MB\" total_elapsed=1.548s url=https://replicate.delivery/xezq/zAs3VkyhTyKkLtdbizDaSIPmHfvp2AN3f1OXXeOYHyqcCPAoA/trained_model.tar\nDownloaded weights in 1.57s\nLoaded LoRAs in 2.16s\nUsing seed: 55314\nPrompt: yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:06, 4.02it/s]\n 7%|▋ | 2/28 [00:00<00:05, 4.54it/s]\n 11%|█ | 3/28 [00:00<00:05, 4.30it/s]\n 14%|█▍ | 4/28 [00:00<00:05, 4.19it/s]\n 18%|█▊ | 5/28 [00:01<00:05, 4.13it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 4.09it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 4.07it/s]\n 29%|██▊ | 8/28 [00:01<00:04, 4.06it/s]\n 32%|███▏ | 9/28 [00:02<00:04, 4.05it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 4.04it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 4.04it/s]\n 43%|████▎ | 12/28 [00:02<00:03, 4.03it/s]\n 46%|████▋ | 13/28 [00:03<00:03, 4.03it/s]\n 50%|█████ | 14/28 [00:03<00:03, 4.03it/s]\n 54%|█████▎ | 15/28 [00:03<00:03, 4.03it/s]\n 57%|█████▋ | 16/28 [00:03<00:02, 4.03it/s]\n 61%|██████ | 17/28 [00:04<00:02, 4.03it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 4.03it/s]\n 68%|██████▊ | 19/28 [00:04<00:02, 4.03it/s]\n 71%|███████▏ | 20/28 [00:04<00:01, 4.03it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 4.02it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 4.02it/s]\n 82%|████████▏ | 23/28 [00:05<00:01, 4.02it/s]\n 86%|████████▌ | 24/28 [00:05<00:00, 4.02it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 4.02it/s]\n 93%|█████████▎| 26/28 [00:06<00:00, 4.03it/s]\n 96%|█████████▋| 27/28 [00:06<00:00, 4.03it/s]\n100%|██████████| 28/28 [00:06<00:00, 4.03it/s]\n100%|██████████| 28/28 [00:06<00:00, 4.05it/s]\nTotal safe images: 1 out of 1", "metrics": { "predict_time": 9.274261616, "total_time": 9.480779 }, "output": [ "https://replicate.delivery/xezq/8bCX2pTh2A5mDZZ3vJ0nVYrBefgiNSOJUrAjxG5eHChezhZRB/out-0.jpg" ], "started_at": "2025-03-08T05:27:17.790517Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-3p7sx6qjwbqkv23lq4k2zbtqhzsosszifdt5kmq7unzgw377l3da", "get": "https://api.replicate.com/v1/predictions/e2t82vysa1rmc0cnegwavfs140", "cancel": "https://api.replicate.com/v1/predictions/e2t82vysa1rmc0cnegwavfs140/cancel" }, "version": "c1c233040796bc410bf53112bb5cf2f2130e1aa45ed2ee789afe1726888fe50b" }
Generated infree=27916330356736 Downloading weights 2025-03-08T05:27:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpv0s1o3nx/weights url=https://replicate.delivery/xezq/zAs3VkyhTyKkLtdbizDaSIPmHfvp2AN3f1OXXeOYHyqcCPAoA/trained_model.tar 2025-03-08T05:27:19Z | INFO | [ Complete ] dest=/tmp/tmpv0s1o3nx/weights size="172 MB" total_elapsed=1.548s url=https://replicate.delivery/xezq/zAs3VkyhTyKkLtdbizDaSIPmHfvp2AN3f1OXXeOYHyqcCPAoA/trained_model.tar Downloaded weights in 1.57s Loaded LoRAs in 2.16s Using seed: 55314 Prompt: yoavai man, wearing glasses, pulling out a giant dusty book, only for a cascade of hidden bookmarks to fall out like confetti. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:06, 4.02it/s] 7%|▋ | 2/28 [00:00<00:05, 4.54it/s] 11%|█ | 3/28 [00:00<00:05, 4.30it/s] 14%|█▍ | 4/28 [00:00<00:05, 4.19it/s] 18%|█▊ | 5/28 [00:01<00:05, 4.13it/s] 21%|██▏ | 6/28 [00:01<00:05, 4.09it/s] 25%|██▌ | 7/28 [00:01<00:05, 4.07it/s] 29%|██▊ | 8/28 [00:01<00:04, 4.06it/s] 32%|███▏ | 9/28 [00:02<00:04, 4.05it/s] 36%|███▌ | 10/28 [00:02<00:04, 4.04it/s] 39%|███▉ | 11/28 [00:02<00:04, 4.04it/s] 43%|████▎ | 12/28 [00:02<00:03, 4.03it/s] 46%|████▋ | 13/28 [00:03<00:03, 4.03it/s] 50%|█████ | 14/28 [00:03<00:03, 4.03it/s] 54%|█████▎ | 15/28 [00:03<00:03, 4.03it/s] 57%|█████▋ | 16/28 [00:03<00:02, 4.03it/s] 61%|██████ | 17/28 [00:04<00:02, 4.03it/s] 64%|██████▍ | 18/28 [00:04<00:02, 4.03it/s] 68%|██████▊ | 19/28 [00:04<00:02, 4.03it/s] 71%|███████▏ | 20/28 [00:04<00:01, 4.03it/s] 75%|███████▌ | 21/28 [00:05<00:01, 4.02it/s] 79%|███████▊ | 22/28 [00:05<00:01, 4.02it/s] 82%|████████▏ | 23/28 [00:05<00:01, 4.02it/s] 86%|████████▌ | 24/28 [00:05<00:00, 4.02it/s] 89%|████████▉ | 25/28 [00:06<00:00, 4.02it/s] 93%|█████████▎| 26/28 [00:06<00:00, 4.03it/s] 96%|█████████▋| 27/28 [00:06<00:00, 4.03it/s] 100%|██████████| 28/28 [00:06<00:00, 4.03it/s] 100%|██████████| 28/28 [00:06<00:00, 4.05it/s] Total safe images: 1 out of 1
Want to make some of these yourself?
Run this model