Prediction
fofr/sd3-explorer:ba332080Input
- model
- sd3_medium_incl_clips_t5xxlfp16.safetensors
- shift
- 3
- steps
- 10
- width
- 1024
- height
- 1024
- prompt
- a closeup portrait photo of a man
- sampler
- dpmpp_2m
- scheduler
- sgm_uniform
- output_format
- webp
- guidance_scale
- 4.5
- output_quality
- 80
- negative_prompt
- number_of_images
- 1
- triple_prompt_t5
- use_triple_prompt
- triple_prompt_clip_g
- triple_prompt_clip_l
- negative_conditioning_end
- 0
- triple_prompt_empty_padding
{
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"shift": 3,
"steps": 10,
"width": 1024,
"height": 1024,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"output_format": "webp",
"guidance_scale": 4.5,
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"negative_conditioning_end": 0,
"triple_prompt_empty_padding": true
}
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/sd3-explorer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sd3-explorer:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
{
input: {
model: "sd3_medium_incl_clips_t5xxlfp16.safetensors",
shift: 3,
steps: 10,
width: 1024,
height: 1024,
prompt: "a closeup portrait photo of a man",
sampler: "dpmpp_2m",
scheduler: "sgm_uniform",
output_format: "webp",
guidance_scale: 4.5,
output_quality: 80,
negative_prompt: "",
number_of_images: 1,
triple_prompt_t5: "",
use_triple_prompt: false,
triple_prompt_clip_g: "",
triple_prompt_clip_l: "",
negative_conditioning_end: 0,
triple_prompt_empty_padding: true
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run fofr/sd3-explorer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sd3-explorer:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
input={
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"shift": 3,
"steps": 10,
"width": 1024,
"height": 1024,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"output_format": "webp",
"guidance_scale": 4.5,
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1,
"triple_prompt_t5": "",
"use_triple_prompt": False,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"negative_conditioning_end": 0,
"triple_prompt_empty_padding": True
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run fofr/sd3-explorer 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": "ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9",
"input": {
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"shift": 3,
"steps": 10,
"width": 1024,
"height": 1024,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"output_format": "webp",
"guidance_scale": 4.5,
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"negative_conditioning_end": 0,
"triple_prompt_empty_padding": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run fofr/sd3-explorer using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/fofr/sd3-explorer@sha256:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9 \
-i 'model="sd3_medium_incl_clips_t5xxlfp16.safetensors"' \
-i 'shift=3' \
-i 'steps=10' \
-i 'width=1024' \
-i 'height=1024' \
-i 'prompt="a closeup portrait photo of a man"' \
-i 'sampler="dpmpp_2m"' \
-i 'scheduler="sgm_uniform"' \
-i 'output_format="webp"' \
-i 'guidance_scale=4.5' \
-i 'output_quality=80' \
-i 'negative_prompt=""' \
-i 'number_of_images=1' \
-i 'triple_prompt_t5=""' \
-i 'use_triple_prompt=false' \
-i 'triple_prompt_clip_g=""' \
-i 'triple_prompt_clip_l=""' \
-i 'negative_conditioning_end=0' \
-i 'triple_prompt_empty_padding=true'
To learn more, take a look at the Cog documentation.
Pull and run fofr/sd3-explorer using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/fofr/sd3-explorer@sha256:ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "model": "sd3_medium_incl_clips_t5xxlfp16.safetensors", "shift": 3, "steps": 10, "width": 1024, "height": 1024, "prompt": "a closeup portrait photo of a man", "sampler": "dpmpp_2m", "scheduler": "sgm_uniform", "output_format": "webp", "guidance_scale": 4.5, "output_quality": 80, "negative_prompt": "", "number_of_images": 1, "triple_prompt_t5": "", "use_triple_prompt": false, "triple_prompt_clip_g": "", "triple_prompt_clip_l": "", "negative_conditioning_end": 0, "triple_prompt_empty_padding": true } }' \ http://localhost:5000/predictions
Output
{
"completed_at": "2024-06-18T12:39:24.238641Z",
"created_at": "2024-06-18T12:39:20.518000Z",
"data_removed": false,
"error": null,
"id": "egdx1h72rsrgm0cg5ddttacxa8",
"input": {
"model": "sd3_medium_incl_clips_t5xxlfp16.safetensors",
"shift": 3,
"steps": 10,
"width": 1024,
"height": 1024,
"prompt": "a closeup portrait photo of a man",
"sampler": "dpmpp_2m",
"scheduler": "sgm_uniform",
"output_format": "webp",
"guidance_scale": 4.5,
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1,
"triple_prompt_t5": "",
"use_triple_prompt": false,
"triple_prompt_clip_g": "",
"triple_prompt_clip_l": "",
"negative_conditioning_end": 0,
"triple_prompt_empty_padding": true
},
"logs": "Random seed set to: 4098552373\nChecking weights\n✅ sd3_medium_incl_clips_t5xxlfp16.safetensors exists in ComfyUI/models/checkpoints\n====================================\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 289, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 274, title: 🔧 SD3 Negative Conditioning, class type: SD3NegativeConditioning+\nExecuting node 275, title: Empty SD3 Latent Image, class type: EmptySD3LatentImage\nExecuting node 271, title: KSampler, class type: KSampler\n 0%| | 0/10 [00:00<?, ?it/s]\n 20%|██ | 2/10 [00:00<00:01, 4.27it/s]\n 30%|███ | 3/10 [00:00<00:01, 4.25it/s]\n 40%|████ | 4/10 [00:00<00:01, 4.22it/s]\n 50%|█████ | 5/10 [00:01<00:01, 4.23it/s]\n 60%|██████ | 6/10 [00:01<00:00, 4.22it/s]\n 70%|███████ | 7/10 [00:01<00:00, 4.22it/s]\n 80%|████████ | 8/10 [00:01<00:00, 4.22it/s]\n 90%|█████████ | 9/10 [00:02<00:00, 4.22it/s]\n100%|██████████| 10/10 [00:02<00:00, 4.21it/s]\n100%|██████████| 10/10 [00:02<00:00, 4.22it/s]\nExecuting node 231, title: VAE Decode, class type: VAEDecode\nExecuting node 273, title: Save Image, class type: SaveImage\nPrompt executed in 3.17 seconds\noutputs: {'273': {'images': [{'filename': 'SD3_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nSD3_00001_.png",
"metrics": {
"predict_time": 3.713831734,
"total_time": 3.720641
},
"output": [
"https://replicate.delivery/pbxt/Qi94PzAwIwLBH9aAuye9gLbtW020IOPDixd8j7tMeAu7HzflA/SD3_00001_.webp"
],
"started_at": "2024-06-18T12:39:20.524809Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/egdx1h72rsrgm0cg5ddttacxa8",
"cancel": "https://api.replicate.com/v1/predictions/egdx1h72rsrgm0cg5ddttacxa8/cancel"
},
"version": "ba3320806125ae93991c899010c998e4ee6a9dc6bdd89aeb6ecbd992815650a9"
}
Random seed set to: 4098552373
Checking weights
✅ sd3_medium_incl_clips_t5xxlfp16.safetensors exists in ComfyUI/models/checkpoints
====================================
Running workflow
got prompt
Executing node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode
Executing node 289, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode
Executing node 274, title: 🔧 SD3 Negative Conditioning, class type: SD3NegativeConditioning+
Executing node 275, title: Empty SD3 Latent Image, class type: EmptySD3LatentImage
Executing node 271, title: KSampler, class type: KSampler
0%| | 0/10 [00:00<?, ?it/s]
20%|██ | 2/10 [00:00<00:01, 4.27it/s]
30%|███ | 3/10 [00:00<00:01, 4.25it/s]
40%|████ | 4/10 [00:00<00:01, 4.22it/s]
50%|█████ | 5/10 [00:01<00:01, 4.23it/s]
60%|██████ | 6/10 [00:01<00:00, 4.22it/s]
70%|███████ | 7/10 [00:01<00:00, 4.22it/s]
80%|████████ | 8/10 [00:01<00:00, 4.22it/s]
90%|█████████ | 9/10 [00:02<00:00, 4.22it/s]
100%|██████████| 10/10 [00:02<00:00, 4.21it/s]
100%|██████████| 10/10 [00:02<00:00, 4.22it/s]
Executing node 231, title: VAE Decode, class type: VAEDecode
Executing node 273, title: Save Image, class type: SaveImage
Prompt executed in 3.17 seconds
outputs: {'273': {'images': [{'filename': 'SD3_00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
SD3_00001_.png