chenxwh
/
hunyuandit
A Powerful Multi-Resolution Diffusion Transformer with Fine-Grained Chinese Understanding
Prediction
chenxwh/hunyuandit:0cc2a985IDsgdwyzjfd5rgm0cfn7vbzbfh08StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- size
- square
- prompt
- 现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景
- sampler
- ddpm
- infer_steps
- 20
- enhance_prompt
- guidance_scale
- 6
- negative_prompt
- 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺
{ "size": "square", "prompt": "现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", { input: { size: "square", prompt: "现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景", sampler: "ddpm", infer_steps: 20, enhance_prompt: false, guidance_scale: 6, negative_prompt: "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", input={ "size": "square", "prompt": "现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": False, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/hunyuandit 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": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", "input": { "size": "square", "prompt": "现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-05-24T09:39:06.055006Z", "created_at": "2024-05-24T09:37:22.793000Z", "data_removed": false, "error": null, "id": "sgdwyzjfd5rgm0cfn7vbzbfh08", "input": { "size": "square", "prompt": "现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }, "logs": "Using seed: 1830\n2024-05-24 09:38:45.170 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024)\n2024-05-24 09:38:45.170 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024)\n2024-05-24 09:38:45.171 | DEBUG | hydit.inference:predict:363 -\nprompt: 现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景\nenhanced prompt: None\nseed: 1830\n(height, width): (1024, 1024)\nnegative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺\nbatch_size: 1\nguidance_scale: 6.0\ninfer_steps: 20\nimage_meta_size: [1024, 1024, 1024, 1024, 0, 0]\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:18, 1.01it/s]\n 10%|█ | 2/20 [00:01<00:17, 1.05it/s]\n 15%|█▌ | 3/20 [00:02<00:15, 1.07it/s]\n 20%|██ | 4/20 [00:03<00:14, 1.08it/s]\n 25%|██▌ | 5/20 [00:04<00:13, 1.08it/s]\n 30%|███ | 6/20 [00:05<00:12, 1.09it/s]\n 35%|███▌ | 7/20 [00:06<00:11, 1.09it/s]\n 40%|████ | 8/20 [00:07<00:11, 1.09it/s]\n 45%|████▌ | 9/20 [00:08<00:10, 1.09it/s]\n 50%|█████ | 10/20 [00:09<00:09, 1.09it/s]\n 55%|█████▌ | 11/20 [00:10<00:08, 1.09it/s]\n 60%|██████ | 12/20 [00:11<00:07, 1.09it/s]\n 65%|██████▌ | 13/20 [00:11<00:06, 1.09it/s]\n 70%|███████ | 14/20 [00:12<00:05, 1.09it/s]\n 75%|███████▌ | 15/20 [00:13<00:04, 1.09it/s]\n 80%|████████ | 16/20 [00:14<00:03, 1.09it/s]\n 85%|████████▌ | 17/20 [00:15<00:02, 1.09it/s]\n 90%|█████████ | 18/20 [00:16<00:01, 1.09it/s]\n 95%|█████████▌| 19/20 [00:17<00:00, 1.09it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.09it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.09it/s]\n2024-05-24 09:39:04.239 | DEBUG | hydit.inference:predict:400 - Success, time: 19.068588495254517", "metrics": { "predict_time": 20.884845, "total_time": 103.262006 }, "output": "https://replicate.delivery/pbxt/K2I00vTlVspeJidDVLzhSsgRFfX7ueFgj8qOUeIQbTqgjEeWC/out.png", "started_at": "2024-05-24T09:38:45.170161Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/sgdwyzjfd5rgm0cfn7vbzbfh08", "cancel": "https://api.replicate.com/v1/predictions/sgdwyzjfd5rgm0cfn7vbzbfh08/cancel" }, "version": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2" }
Generated inUsing seed: 1830 2024-05-24 09:38:45.170 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024) 2024-05-24 09:38:45.170 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024) 2024-05-24 09:38:45.171 | DEBUG | hydit.inference:predict:363 - prompt: 现实主义风格,画面主要描述一个巴洛克风格的花瓶,带有金色的装饰边框,花瓶上盛开着各种色彩鲜艳的花,白色背景 enhanced prompt: None seed: 1830 (height, width): (1024, 1024) negative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺 batch_size: 1 guidance_scale: 6.0 infer_steps: 20 image_meta_size: [1024, 1024, 1024, 1024, 0, 0] 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:18, 1.01it/s] 10%|█ | 2/20 [00:01<00:17, 1.05it/s] 15%|█▌ | 3/20 [00:02<00:15, 1.07it/s] 20%|██ | 4/20 [00:03<00:14, 1.08it/s] 25%|██▌ | 5/20 [00:04<00:13, 1.08it/s] 30%|███ | 6/20 [00:05<00:12, 1.09it/s] 35%|███▌ | 7/20 [00:06<00:11, 1.09it/s] 40%|████ | 8/20 [00:07<00:11, 1.09it/s] 45%|████▌ | 9/20 [00:08<00:10, 1.09it/s] 50%|█████ | 10/20 [00:09<00:09, 1.09it/s] 55%|█████▌ | 11/20 [00:10<00:08, 1.09it/s] 60%|██████ | 12/20 [00:11<00:07, 1.09it/s] 65%|██████▌ | 13/20 [00:11<00:06, 1.09it/s] 70%|███████ | 14/20 [00:12<00:05, 1.09it/s] 75%|███████▌ | 15/20 [00:13<00:04, 1.09it/s] 80%|████████ | 16/20 [00:14<00:03, 1.09it/s] 85%|████████▌ | 17/20 [00:15<00:02, 1.09it/s] 90%|█████████ | 18/20 [00:16<00:01, 1.09it/s] 95%|█████████▌| 19/20 [00:17<00:00, 1.09it/s] 100%|██████████| 20/20 [00:18<00:00, 1.09it/s] 100%|██████████| 20/20 [00:18<00:00, 1.09it/s] 2024-05-24 09:39:04.239 | DEBUG | hydit.inference:predict:400 - Success, time: 19.068588495254517
Prediction
chenxwh/hunyuandit:0cc2a985IDnjs88wh2g1rgg0cfn958mpaxzcStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- size
- portrait
- prompt
- 一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。
- sampler
- ddpm
- infer_steps
- 20
- enhance_prompt
- guidance_scale
- 6
- negative_prompt
- 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺
{ "size": "portrait", "prompt": "一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", { input: { size: "portrait", prompt: "一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。", sampler: "ddpm", infer_steps: 20, enhance_prompt: false, guidance_scale: 6, negative_prompt: "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", input={ "size": "portrait", "prompt": "一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": False, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/hunyuandit 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": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", "input": { "size": "portrait", "prompt": "一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-05-24T11:09:15.640848Z", "created_at": "2024-05-24T11:08:56.320000Z", "data_removed": false, "error": null, "id": "njs88wh2g1rgg0cfn958mpaxzc", "input": { "size": "portrait", "prompt": "一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }, "logs": "Using seed: 22673\n2024-05-24 11:08:56.368 | INFO | hydit.inference:predict:312 - Input (height, width) = (1280, 768)\n2024-05-24 11:08:56.368 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1280, 768)\n2024-05-24 11:08:56.369 | DEBUG | hydit.inference:predict:363 -\nprompt: 一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。\nenhanced prompt: None\nseed: 22673\n(height, width): (1280, 768)\nnegative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺\nbatch_size: 1\nguidance_scale: 6.0\ninfer_steps: 20\nimage_meta_size: [1024, 1024, 768, 1280, 0, 0]\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:15, 1.19it/s]\n 10%|█ | 2/20 [00:01<00:15, 1.19it/s]\n 15%|█▌ | 3/20 [00:02<00:14, 1.19it/s]\n 20%|██ | 4/20 [00:03<00:13, 1.19it/s]\n 25%|██▌ | 5/20 [00:04<00:12, 1.19it/s]\n 30%|███ | 6/20 [00:05<00:11, 1.19it/s]\n 35%|███▌ | 7/20 [00:05<00:10, 1.19it/s]\n 40%|████ | 8/20 [00:06<00:10, 1.19it/s]\n 45%|████▌ | 9/20 [00:07<00:09, 1.19it/s]\n 50%|█████ | 10/20 [00:08<00:08, 1.19it/s]\n 55%|█████▌ | 11/20 [00:09<00:07, 1.19it/s]\n 60%|██████ | 12/20 [00:10<00:06, 1.19it/s]\n 65%|██████▌ | 13/20 [00:10<00:05, 1.19it/s]\n 70%|███████ | 14/20 [00:11<00:05, 1.19it/s]\n 75%|███████▌ | 15/20 [00:12<00:04, 1.19it/s]\n 80%|████████ | 16/20 [00:13<00:03, 1.19it/s]\n 85%|████████▌ | 17/20 [00:14<00:02, 1.19it/s]\n 90%|█████████ | 18/20 [00:15<00:01, 1.19it/s]\n 95%|█████████▌| 19/20 [00:15<00:00, 1.19it/s]\n100%|██████████| 20/20 [00:16<00:00, 1.19it/s]\n100%|██████████| 20/20 [00:16<00:00, 1.19it/s]\n2024-05-24 11:09:13.657 | DEBUG | hydit.inference:predict:400 - Success, time: 17.288570642471313", "metrics": { "predict_time": 19.273334, "total_time": 19.320848 }, "output": "https://replicate.delivery/pbxt/lL6SAJOHjsJPL5tP4f4wsZKSTH8cl1jx6oAUv2H5JMKtOxbJA/out.png", "started_at": "2024-05-24T11:08:56.367514Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/njs88wh2g1rgg0cfn958mpaxzc", "cancel": "https://api.replicate.com/v1/predictions/njs88wh2g1rgg0cfn958mpaxzc/cancel" }, "version": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2" }
Generated inUsing seed: 22673 2024-05-24 11:08:56.368 | INFO | hydit.inference:predict:312 - Input (height, width) = (1280, 768) 2024-05-24 11:08:56.368 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1280, 768) 2024-05-24 11:08:56.369 | DEBUG | hydit.inference:predict:363 - prompt: 一只长靴猫手持亮银色的宝剑,身着铠甲,眼神坚毅,站在一堆金币上,背景是暗色调的洞穴,图像上有金币的光影点缀。 enhanced prompt: None seed: 22673 (height, width): (1280, 768) negative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺 batch_size: 1 guidance_scale: 6.0 infer_steps: 20 image_meta_size: [1024, 1024, 768, 1280, 0, 0] 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:15, 1.19it/s] 10%|█ | 2/20 [00:01<00:15, 1.19it/s] 15%|█▌ | 3/20 [00:02<00:14, 1.19it/s] 20%|██ | 4/20 [00:03<00:13, 1.19it/s] 25%|██▌ | 5/20 [00:04<00:12, 1.19it/s] 30%|███ | 6/20 [00:05<00:11, 1.19it/s] 35%|███▌ | 7/20 [00:05<00:10, 1.19it/s] 40%|████ | 8/20 [00:06<00:10, 1.19it/s] 45%|████▌ | 9/20 [00:07<00:09, 1.19it/s] 50%|█████ | 10/20 [00:08<00:08, 1.19it/s] 55%|█████▌ | 11/20 [00:09<00:07, 1.19it/s] 60%|██████ | 12/20 [00:10<00:06, 1.19it/s] 65%|██████▌ | 13/20 [00:10<00:05, 1.19it/s] 70%|███████ | 14/20 [00:11<00:05, 1.19it/s] 75%|███████▌ | 15/20 [00:12<00:04, 1.19it/s] 80%|████████ | 16/20 [00:13<00:03, 1.19it/s] 85%|████████▌ | 17/20 [00:14<00:02, 1.19it/s] 90%|█████████ | 18/20 [00:15<00:01, 1.19it/s] 95%|█████████▌| 19/20 [00:15<00:00, 1.19it/s] 100%|██████████| 20/20 [00:16<00:00, 1.19it/s] 100%|██████████| 20/20 [00:16<00:00, 1.19it/s] 2024-05-24 11:09:13.657 | DEBUG | hydit.inference:predict:400 - Success, time: 17.288570642471313
Prediction
chenxwh/hunyuandit:0cc2a985ID8hnzrdaqp9rgm0cfn978y3sy6cStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- size
- square
- prompt
- 一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。
- sampler
- ddpm
- infer_steps
- 20
- enhance_prompt
- guidance_scale
- 6
- negative_prompt
- 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺
{ "size": "square", "prompt": "一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", { input: { size: "square", prompt: "一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。", sampler: "ddpm", infer_steps: 20, enhance_prompt: false, guidance_scale: 6, negative_prompt: "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", input={ "size": "square", "prompt": "一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": False, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/hunyuandit 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": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", "input": { "size": "square", "prompt": "一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-05-24T11:15:33.263597Z", "created_at": "2024-05-24T11:13:32.082000Z", "data_removed": false, "error": null, "id": "8hnzrdaqp9rgm0cfn978y3sy6c", "input": { "size": "square", "prompt": "一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }, "logs": "Using seed: 9586\n2024-05-24 11:15:13.138 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024)\n2024-05-24 11:15:13.138 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024)\n2024-05-24 11:15:13.138 | DEBUG | hydit.inference:predict:363 -\nprompt: 一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。\nenhanced prompt: None\nseed: 9586\n(height, width): (1024, 1024)\nnegative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺\nbatch_size: 1\nguidance_scale: 6.0\ninfer_steps: 20\nimage_meta_size: [1024, 1024, 1024, 1024, 0, 0]\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:18, 1.00it/s]\n 10%|█ | 2/20 [00:01<00:17, 1.05it/s]\n 15%|█▌ | 3/20 [00:02<00:15, 1.07it/s]\n 20%|██ | 4/20 [00:03<00:14, 1.08it/s]\n 25%|██▌ | 5/20 [00:04<00:13, 1.09it/s]\n 30%|███ | 6/20 [00:05<00:12, 1.09it/s]\n 35%|███▌ | 7/20 [00:06<00:11, 1.09it/s]\n 40%|████ | 8/20 [00:07<00:10, 1.09it/s]\n 45%|████▌ | 9/20 [00:08<00:10, 1.09it/s]\n 50%|█████ | 10/20 [00:09<00:09, 1.09it/s]\n 55%|█████▌ | 11/20 [00:10<00:08, 1.09it/s]\n 60%|██████ | 12/20 [00:11<00:07, 1.09it/s]\n 65%|██████▌ | 13/20 [00:11<00:06, 1.09it/s]\n 70%|███████ | 14/20 [00:12<00:05, 1.09it/s]\n 75%|███████▌ | 15/20 [00:13<00:04, 1.09it/s]\n 80%|████████ | 16/20 [00:14<00:03, 1.09it/s]\n 85%|████████▌ | 17/20 [00:15<00:02, 1.09it/s]\n 90%|█████████ | 18/20 [00:16<00:01, 1.09it/s]\n 95%|█████████▌| 19/20 [00:17<00:00, 1.09it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.09it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.09it/s]\n2024-05-24 11:15:32.422 | DEBUG | hydit.inference:predict:400 - Success, time: 19.283530473709106", "metrics": { "predict_time": 20.125722, "total_time": 121.181597 }, "output": "https://replicate.delivery/pbxt/G0dl3f08QOUEAaMfQpGP6pS5iKyVffj91bMip6tMxGGSNKeWC/out.png", "started_at": "2024-05-24T11:15:13.137875Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/8hnzrdaqp9rgm0cfn978y3sy6c", "cancel": "https://api.replicate.com/v1/predictions/8hnzrdaqp9rgm0cfn978y3sy6c/cancel" }, "version": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2" }
Generated inUsing seed: 9586 2024-05-24 11:15:13.138 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024) 2024-05-24 11:15:13.138 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024) 2024-05-24 11:15:13.138 | DEBUG | hydit.inference:predict:363 - prompt: 一位年轻女子站在春季的火车站月台上,她身着蓝灰色长风衣,白色衬衫。她深色的头发扎成低马尾,几缕碎发随风飘扬。她的眼神充满期待,阳光洒在她温暖的脸庞上。 enhanced prompt: None seed: 9586 (height, width): (1024, 1024) negative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺 batch_size: 1 guidance_scale: 6.0 infer_steps: 20 image_meta_size: [1024, 1024, 1024, 1024, 0, 0] 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:18, 1.00it/s] 10%|█ | 2/20 [00:01<00:17, 1.05it/s] 15%|█▌ | 3/20 [00:02<00:15, 1.07it/s] 20%|██ | 4/20 [00:03<00:14, 1.08it/s] 25%|██▌ | 5/20 [00:04<00:13, 1.09it/s] 30%|███ | 6/20 [00:05<00:12, 1.09it/s] 35%|███▌ | 7/20 [00:06<00:11, 1.09it/s] 40%|████ | 8/20 [00:07<00:10, 1.09it/s] 45%|████▌ | 9/20 [00:08<00:10, 1.09it/s] 50%|█████ | 10/20 [00:09<00:09, 1.09it/s] 55%|█████▌ | 11/20 [00:10<00:08, 1.09it/s] 60%|██████ | 12/20 [00:11<00:07, 1.09it/s] 65%|██████▌ | 13/20 [00:11<00:06, 1.09it/s] 70%|███████ | 14/20 [00:12<00:05, 1.09it/s] 75%|███████▌ | 15/20 [00:13<00:04, 1.09it/s] 80%|████████ | 16/20 [00:14<00:03, 1.09it/s] 85%|████████▌ | 17/20 [00:15<00:02, 1.09it/s] 90%|█████████ | 18/20 [00:16<00:01, 1.09it/s] 95%|█████████▌| 19/20 [00:17<00:00, 1.09it/s] 100%|██████████| 20/20 [00:18<00:00, 1.09it/s] 100%|██████████| 20/20 [00:18<00:00, 1.09it/s] 2024-05-24 11:15:32.422 | DEBUG | hydit.inference:predict:400 - Success, time: 19.283530473709106
Prediction
chenxwh/hunyuandit:0cc2a985IDbthdy11dd5rgg0cfmz4axrdt6cStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- size
- square
- prompt
- 一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影
- sampler
- ddpm
- infer_steps
- 20
- enhance_prompt
- guidance_scale
- 6
- negative_prompt
- 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺
{ "size": "square", "prompt": "一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", { input: { size: "square", prompt: "一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影", sampler: "ddpm", infer_steps: 20, enhance_prompt: false, guidance_scale: 6, negative_prompt: "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run chenxwh/hunyuandit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "chenxwh/hunyuandit:0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", input={ "size": "square", "prompt": "一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": False, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/hunyuandit 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": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2", "input": { "size": "square", "prompt": "一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-05-23T23:28:04.867807Z", "created_at": "2024-05-23T23:27:45.001000Z", "data_removed": false, "error": null, "id": "bthdy11dd5rgg0cfmz4axrdt6c", "input": { "size": "square", "prompt": "一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影", "sampler": "ddpm", "infer_steps": 20, "enhance_prompt": false, "guidance_scale": 6, "negative_prompt": "错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺" }, "logs": "Using seed: 17152\n2024-05-23 23:27:45.010 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024)\n2024-05-23 23:27:45.011 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024)\n2024-05-23 23:27:45.011 | DEBUG | hydit.inference:predict:363 -\nprompt: 一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影\nenhanced prompt: None\nseed: 17152\n(height, width): (1024, 1024)\nnegative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺\nbatch_size: 1\nguidance_scale: 6.0\ninfer_steps: 20\nimage_meta_size: [1024, 1024, 1024, 1024, 0, 0]\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:17, 1.09it/s]\n 10%|█ | 2/20 [00:01<00:16, 1.09it/s]\n 15%|█▌ | 3/20 [00:02<00:15, 1.09it/s]\n 20%|██ | 4/20 [00:03<00:14, 1.09it/s]\n 25%|██▌ | 5/20 [00:04<00:13, 1.08it/s]\n 30%|███ | 6/20 [00:05<00:12, 1.08it/s]\n 35%|███▌ | 7/20 [00:06<00:11, 1.08it/s]\n 40%|████ | 8/20 [00:07<00:11, 1.08it/s]\n 45%|████▌ | 9/20 [00:08<00:10, 1.08it/s]\n 50%|█████ | 10/20 [00:09<00:09, 1.08it/s]\n 55%|█████▌ | 11/20 [00:10<00:08, 1.08it/s]\n 60%|██████ | 12/20 [00:11<00:07, 1.08it/s]\n 65%|██████▌ | 13/20 [00:11<00:06, 1.08it/s]\n 70%|███████ | 14/20 [00:12<00:05, 1.08it/s]\n 75%|███████▌ | 15/20 [00:13<00:04, 1.08it/s]\n 80%|████████ | 16/20 [00:14<00:03, 1.08it/s]\n 85%|████████▌ | 17/20 [00:15<00:02, 1.08it/s]\n 90%|█████████ | 18/20 [00:16<00:01, 1.08it/s]\n 95%|█████████▌| 19/20 [00:17<00:00, 1.08it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.08it/s]\n100%|██████████| 20/20 [00:18<00:00, 1.08it/s]\n2024-05-23 23:28:03.974 | DEBUG | hydit.inference:predict:400 - Success, time: 18.96296739578247", "metrics": { "predict_time": 19.857278, "total_time": 19.866807 }, "output": "https://replicate.delivery/pbxt/WE6QOERp6ObcIluFRWkUc5Pf1KfClmLH0h2GjM02aKvEMY3SA/out.png", "started_at": "2024-05-23T23:27:45.010529Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bthdy11dd5rgg0cfmz4axrdt6c", "cancel": "https://api.replicate.com/v1/predictions/bthdy11dd5rgg0cfmz4axrdt6c/cancel" }, "version": "0cc2a985f119c84a952b916e52a68e32f9ff7da5e05b271b081c3838a7de93b2" }
Generated inUsing seed: 17152 2024-05-23 23:27:45.010 | INFO | hydit.inference:predict:312 - Input (height, width) = (1024, 1024) 2024-05-23 23:27:45.011 | INFO | hydit.inference:predict:317 - Align to 16: (height, width) = (1024, 1024) 2024-05-23 23:27:45.011 | DEBUG | hydit.inference:predict:363 - prompt: 一只聪明的狐狸走在阔叶树林里, 旁边是一条小溪, 细节真实, 摄影 enhanced prompt: None seed: 17152 (height, width): (1024, 1024) negative_prompt: 错误的眼睛,糟糕的人脸,毁容,糟糕的艺术,变形,多余的肢体,模糊的颜色,模糊,重复,病态,残缺 batch_size: 1 guidance_scale: 6.0 infer_steps: 20 image_meta_size: [1024, 1024, 1024, 1024, 0, 0] 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:17, 1.09it/s] 10%|█ | 2/20 [00:01<00:16, 1.09it/s] 15%|█▌ | 3/20 [00:02<00:15, 1.09it/s] 20%|██ | 4/20 [00:03<00:14, 1.09it/s] 25%|██▌ | 5/20 [00:04<00:13, 1.08it/s] 30%|███ | 6/20 [00:05<00:12, 1.08it/s] 35%|███▌ | 7/20 [00:06<00:11, 1.08it/s] 40%|████ | 8/20 [00:07<00:11, 1.08it/s] 45%|████▌ | 9/20 [00:08<00:10, 1.08it/s] 50%|█████ | 10/20 [00:09<00:09, 1.08it/s] 55%|█████▌ | 11/20 [00:10<00:08, 1.08it/s] 60%|██████ | 12/20 [00:11<00:07, 1.08it/s] 65%|██████▌ | 13/20 [00:11<00:06, 1.08it/s] 70%|███████ | 14/20 [00:12<00:05, 1.08it/s] 75%|███████▌ | 15/20 [00:13<00:04, 1.08it/s] 80%|████████ | 16/20 [00:14<00:03, 1.08it/s] 85%|████████▌ | 17/20 [00:15<00:02, 1.08it/s] 90%|█████████ | 18/20 [00:16<00:01, 1.08it/s] 95%|█████████▌| 19/20 [00:17<00:00, 1.08it/s] 100%|██████████| 20/20 [00:18<00:00, 1.08it/s] 100%|██████████| 20/20 [00:18<00:00, 1.08it/s] 2024-05-23 23:28:03.974 | DEBUG | hydit.inference:predict:400 - Success, time: 18.96296739578247
Want to make some of these yourself?
Run this model