DiffBIR提供两种便捷的体验方式:
在线演示(推荐新手)
访问官方演示平台:https://replicate.com/zsxkib/diffbir,可直接上传测试图像体验超分辨率、去噪等功能。
本地部署完整流程
- Vorbereitung der Umwelt::
git clone https://github.com/XPixelGroup/DiffBIR.git
cd DiffBIR
pip install -r requirements.txt - Modell Download::
从项目页获取预训练模型(如real_base or face_enhance)放入models/
Verzeichnis (auf der Festplatte des Computers) - 运行修复::
python inference.py --input_dir inputs --output_dir outputs
提示:输入图像建议为512px以下JPEG/PNG格式,输出图像默认保存在outputs目录,整个过程约需2-5分钟(视硬件配置而定)。
Diese Antwort stammt aus dem ArtikelDiffBIR: Das intelligente Reparaturwerkzeug zur Verbesserung der BildqualitätDie