Prediction
adcopy-ai/reversedhat:09952efe2f452d0f997d710a2e51ca4f1fb527411060e69c4757fc0249001d74ID1mbbz35g6xrj20cj6g6sg113g8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- model
- dev
- width
- 720
- height
- 720
- prompt
- Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light. Ensure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.
- lora_scale
- 1
- num_outputs
- 3
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 4.5
- output_quality
- 100
- prompt_strength
- 1
- extra_lora_scale
- 1
- num_inference_steps
- 50
{ "model": "dev", "width": 720, "height": 720, "prompt": "Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\n\nEnsure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.", "lora_scale": 1, "num_outputs": 3, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 4.5, "output_quality": 100, "prompt_strength": 1, "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 adcopy-ai/reversedhat using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "adcopy-ai/reversedhat:09952efe2f452d0f997d710a2e51ca4f1fb527411060e69c4757fc0249001d74", { input: { model: "dev", width: 720, height: 720, prompt: "Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\n\nEnsure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.", lora_scale: 1, num_outputs: 3, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 4.5, output_quality: 100, prompt_strength: 1, 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 adcopy-ai/reversedhat using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "adcopy-ai/reversedhat:09952efe2f452d0f997d710a2e51ca4f1fb527411060e69c4757fc0249001d74", input={ "model": "dev", "width": 720, "height": 720, "prompt": "Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\n\nEnsure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.", "lora_scale": 1, "num_outputs": 3, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 4.5, "output_quality": 100, "prompt_strength": 1, "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 adcopy-ai/reversedhat 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": "adcopy-ai/reversedhat:09952efe2f452d0f997d710a2e51ca4f1fb527411060e69c4757fc0249001d74", "input": { "model": "dev", "width": 720, "height": 720, "prompt": "Create an image of a stylish man wearing a REVERSEDHAT with the word \'TAMPA\' prominently displayed on the front, but with the letters mirrored or flipped (i.e., \'∀ԀW∀⊥\'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\\n\\nEnsure that the mirrored word \'∀ԀW∀⊥\' is clearly visible on the front of the hat, with no additional text in the image.", "lora_scale": 1, "num_outputs": 3, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 4.5, "output_quality": 100, "prompt_strength": 1, "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-09-27T15:17:29.637892Z", "created_at": "2024-09-27T15:16:05.303000Z", "data_removed": false, "error": null, "id": "1mbbz35g6xrj20cj6g6sg113g8", "input": { "model": "dev", "width": 720, "height": 720, "prompt": "Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\n\nEnsure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.", "lora_scale": 1, "num_outputs": 3, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 4.5, "output_quality": 100, "prompt_strength": 1, "extra_lora_scale": 1, "num_inference_steps": 50 }, "logs": "Using seed: 2725\nPrompt: Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light.\nEnsure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image.\n[!] txt2img mode\nUsing dev model\nfree=3107932274688\nDownloading weights\n2024-09-27T15:16:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0peqp_gd/weights url=https://replicate.delivery/yhqm/22Y5uX55oG4aMZQfhaygRTIBVjZpU052xi3q0waBTo5RjjwJA/trained_model.tar\n2024-09-27T15:16:06Z | INFO | [ Complete ] dest=/tmp/tmp0peqp_gd/weights size=\"172 MB\" total_elapsed=1.334s url=https://replicate.delivery/yhqm/22Y5uX55oG4aMZQfhaygRTIBVjZpU052xi3q0waBTo5RjjwJA/trained_model.tar\nDownloaded weights in 1.36s\nLoaded LoRAs in 3.04s\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:01<01:17, 1.58s/it]\n 4%|▍ | 2/50 [00:02<01:05, 1.37s/it]\n 6%|▌ | 3/50 [00:04<01:09, 1.47s/it]\n 8%|▊ | 4/50 [00:05<01:09, 1.52s/it]\n 10%|█ | 5/50 [00:07<01:09, 1.54s/it]\n 12%|█▏ | 6/50 [00:09<01:08, 1.56s/it]\n 14%|█▍ | 7/50 [00:10<01:07, 1.57s/it]\n 16%|█▌ | 8/50 [00:12<01:06, 1.57s/it]\n 18%|█▊ | 9/50 [00:13<01:04, 1.58s/it]\n 20%|██ | 10/50 [00:15<01:03, 1.58s/it]\n 22%|██▏ | 11/50 [00:17<01:01, 1.58s/it]\n 24%|██▍ | 12/50 [00:18<01:00, 1.59s/it]\n 26%|██▌ | 13/50 [00:20<00:58, 1.59s/it]\n 28%|██▊ | 14/50 [00:21<00:57, 1.59s/it]\n 30%|███ | 15/50 [00:23<00:55, 1.59s/it]\n 32%|███▏ | 16/50 [00:25<00:54, 1.59s/it]\n 34%|███▍ | 17/50 [00:26<00:52, 1.59s/it]\n 36%|███▌ | 18/50 [00:28<00:50, 1.59s/it]\n 38%|███▊ | 19/50 [00:29<00:49, 1.59s/it]\n 40%|████ | 20/50 [00:31<00:47, 1.59s/it]\n 42%|████▏ | 21/50 [00:33<00:46, 1.59s/it]\n 44%|████▍ | 22/50 [00:34<00:44, 1.59s/it]\n 46%|████▌ | 23/50 [00:36<00:42, 1.59s/it]\n 48%|████▊ | 24/50 [00:37<00:41, 1.59s/it]\n 50%|█████ | 25/50 [00:39<00:39, 1.59s/it]\n 52%|█████▏ | 26/50 [00:40<00:38, 1.59s/it]\n 54%|█████▍ | 27/50 [00:42<00:36, 1.59s/it]\n 56%|█████▌ | 28/50 [00:44<00:35, 1.59s/it]\n 58%|█████▊ | 29/50 [00:45<00:33, 1.59s/it]\n 60%|██████ | 30/50 [00:47<00:31, 1.59s/it]\n 62%|██████▏ | 31/50 [00:48<00:30, 1.59s/it]\n 64%|██████▍ | 32/50 [00:50<00:28, 1.59s/it]\n 66%|██████▌ | 33/50 [00:52<00:27, 1.59s/it]\n 68%|██████▊ | 34/50 [00:53<00:25, 1.59s/it]\n 70%|███████ | 35/50 [00:55<00:23, 1.59s/it]\n 72%|███████▏ | 36/50 [00:56<00:22, 1.59s/it]\n 74%|███████▍ | 37/50 [00:58<00:20, 1.59s/it]\n 76%|███████▌ | 38/50 [01:00<00:19, 1.59s/it]\n 78%|███████▊ | 39/50 [01:01<00:17, 1.59s/it]\n 80%|████████ | 40/50 [01:03<00:15, 1.59s/it]\n 82%|████████▏ | 41/50 [01:04<00:14, 1.59s/it]\n 84%|████████▍ | 42/50 [01:06<00:12, 1.59s/it]\n 86%|████████▌ | 43/50 [01:08<00:11, 1.59s/it]\n 88%|████████▊ | 44/50 [01:09<00:09, 1.59s/it]\n 90%|█████████ | 45/50 [01:11<00:07, 1.59s/it]\n 92%|█████████▏| 46/50 [01:12<00:06, 1.59s/it]\n 94%|█████████▍| 47/50 [01:14<00:04, 1.59s/it]\n 96%|█████████▌| 48/50 [01:15<00:03, 1.59s/it]\n 98%|█████████▊| 49/50 [01:17<00:01, 1.59s/it]\n100%|██████████| 50/50 [01:19<00:00, 1.59s/it]\n100%|██████████| 50/50 [01:19<00:00, 1.58s/it]", "metrics": { "predict_time": 84.323149396, "total_time": 84.334892 }, "output": [ "https://replicate.delivery/yhqm/Nb7Dezh06eu4V0oUek4t4SCf0Srth1TTNcmT0xPrzZUmofIcC/out-0.jpg", "https://replicate.delivery/yhqm/YOqdYAh4XMLWChlMtD2ZmfYNeGZsgCymxIIJLO4oclcJ6HhTA/out-1.jpg", "https://replicate.delivery/yhqm/OW38JgKymRoeKKnKTeJgJzFxDnU6XJgOennnFcodiDET0PCnA/out-2.jpg" ], "started_at": "2024-09-27T15:16:05.314743Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/1mbbz35g6xrj20cj6g6sg113g8", "cancel": "https://api.replicate.com/v1/predictions/1mbbz35g6xrj20cj6g6sg113g8/cancel" }, "version": "09952efe2f452d0f997d710a2e51ca4f1fb527411060e69c4757fc0249001d74" }
Generated inUsing seed: 2725 Prompt: Create an image of a stylish man wearing a REVERSEDHAT with the word 'TAMPA' prominently displayed on the front, but with the letters mirrored or flipped (i.e., '∀ԀW∀⊥'). He should be standing on a rooftop with a city skyline in the background. The man should be dressed in a trendy outfit and have a relaxed expression. The city lights should be visible in the fading light. Ensure that the mirrored word '∀ԀW∀⊥' is clearly visible on the front of the hat, with no additional text in the image. [!] txt2img mode Using dev model free=3107932274688 Downloading weights 2024-09-27T15:16:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0peqp_gd/weights url=https://replicate.delivery/yhqm/22Y5uX55oG4aMZQfhaygRTIBVjZpU052xi3q0waBTo5RjjwJA/trained_model.tar 2024-09-27T15:16:06Z | INFO | [ Complete ] dest=/tmp/tmp0peqp_gd/weights size="172 MB" total_elapsed=1.334s url=https://replicate.delivery/yhqm/22Y5uX55oG4aMZQfhaygRTIBVjZpU052xi3q0waBTo5RjjwJA/trained_model.tar Downloaded weights in 1.36s Loaded LoRAs in 3.04s 0%| | 0/50 [00:00<?, ?it/s] 2%|▏ | 1/50 [00:01<01:17, 1.58s/it] 4%|▍ | 2/50 [00:02<01:05, 1.37s/it] 6%|▌ | 3/50 [00:04<01:09, 1.47s/it] 8%|▊ | 4/50 [00:05<01:09, 1.52s/it] 10%|█ | 5/50 [00:07<01:09, 1.54s/it] 12%|█▏ | 6/50 [00:09<01:08, 1.56s/it] 14%|█▍ | 7/50 [00:10<01:07, 1.57s/it] 16%|█▌ | 8/50 [00:12<01:06, 1.57s/it] 18%|█▊ | 9/50 [00:13<01:04, 1.58s/it] 20%|██ | 10/50 [00:15<01:03, 1.58s/it] 22%|██▏ | 11/50 [00:17<01:01, 1.58s/it] 24%|██▍ | 12/50 [00:18<01:00, 1.59s/it] 26%|██▌ | 13/50 [00:20<00:58, 1.59s/it] 28%|██▊ | 14/50 [00:21<00:57, 1.59s/it] 30%|███ | 15/50 [00:23<00:55, 1.59s/it] 32%|███▏ | 16/50 [00:25<00:54, 1.59s/it] 34%|███▍ | 17/50 [00:26<00:52, 1.59s/it] 36%|███▌ | 18/50 [00:28<00:50, 1.59s/it] 38%|███▊ | 19/50 [00:29<00:49, 1.59s/it] 40%|████ | 20/50 [00:31<00:47, 1.59s/it] 42%|████▏ | 21/50 [00:33<00:46, 1.59s/it] 44%|████▍ | 22/50 [00:34<00:44, 1.59s/it] 46%|████▌ | 23/50 [00:36<00:42, 1.59s/it] 48%|████▊ | 24/50 [00:37<00:41, 1.59s/it] 50%|█████ | 25/50 [00:39<00:39, 1.59s/it] 52%|█████▏ | 26/50 [00:40<00:38, 1.59s/it] 54%|█████▍ | 27/50 [00:42<00:36, 1.59s/it] 56%|█████▌ | 28/50 [00:44<00:35, 1.59s/it] 58%|█████▊ | 29/50 [00:45<00:33, 1.59s/it] 60%|██████ | 30/50 [00:47<00:31, 1.59s/it] 62%|██████▏ | 31/50 [00:48<00:30, 1.59s/it] 64%|██████▍ | 32/50 [00:50<00:28, 1.59s/it] 66%|██████▌ | 33/50 [00:52<00:27, 1.59s/it] 68%|██████▊ | 34/50 [00:53<00:25, 1.59s/it] 70%|███████ | 35/50 [00:55<00:23, 1.59s/it] 72%|███████▏ | 36/50 [00:56<00:22, 1.59s/it] 74%|███████▍ | 37/50 [00:58<00:20, 1.59s/it] 76%|███████▌ | 38/50 [01:00<00:19, 1.59s/it] 78%|███████▊ | 39/50 [01:01<00:17, 1.59s/it] 80%|████████ | 40/50 [01:03<00:15, 1.59s/it] 82%|████████▏ | 41/50 [01:04<00:14, 1.59s/it] 84%|████████▍ | 42/50 [01:06<00:12, 1.59s/it] 86%|████████▌ | 43/50 [01:08<00:11, 1.59s/it] 88%|████████▊ | 44/50 [01:09<00:09, 1.59s/it] 90%|█████████ | 45/50 [01:11<00:07, 1.59s/it] 92%|█████████▏| 46/50 [01:12<00:06, 1.59s/it] 94%|█████████▍| 47/50 [01:14<00:04, 1.59s/it] 96%|█████████▌| 48/50 [01:15<00:03, 1.59s/it] 98%|█████████▊| 49/50 [01:17<00:01, 1.59s/it] 100%|██████████| 50/50 [01:19<00:00, 1.59s/it] 100%|██████████| 50/50 [01:19<00:00, 1.58s/it]
Want to make some of these yourself?
Run this model