算力环境配置参考:
步骤一:下载HunyuanDiT模型
cd /workspace/
git clone https://github.moeyy.xyz/https://github.com/Tencent/HunyuanDiT
步骤二:下载依赖
cd HunyuanDiT
pip install -r requirements.txt
pip install flash_attn
步骤三:下载模型库
git lfs install
git clone https://www.modelscope.cn/modelscope/HunyuanDiT.git
mv HunyuanDiT ckpts
注:模型下载时间较长
步骤四:启动大模型
python sample_t2i.py --prompt "渔舟唱晚" --no-enhance
查看/workspace/HunyuanDiT/results/文件夹下的生成内容
参考