生成流程可分为三个阶段:
1. 输入准备
- 选择512×512以上分辨率的正面人像(JPEG/PNG)
- 将图像放入
input_image/
file (paper) - intend
dataset.json
相机配置文件(可参考PanoHead裁剪指南)
2. 执行推理
- Go to the code catalog:
cd diffportrait360_release/code
- Run the script:
bash inference.sh
- 启用ControlNet(可选):修改脚本添加
--use_controlnet
parameters
3. Results processing
- 输出包含多角度视图序列(默认保存在
output/
) - 获得.nerf模型文件可用NeRFStudio等工具渲染
- 可通过FFmpeg等工具将图像序列转为视频
对于自定义数据,需确保相机参数准确,且建议使用项目提供的测试数据(含1000+真实人像)作为参考标准。
This answer comes from the articleDiffPortrait360: Generate 360-degree head views from a single portraitThe