旧照片修复

创建日期:2024-06-21
更新日期:2025-02-01

开源项目:https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life

使用方法

1、执行以下代码安装依赖。

pip install -r requirements.txt

2、没有划痕修复命令。

python run.py --input_folder E:\github\Bringing-Old-Photos-Back-to-Life\photos\old --output_folder E:\github\Bringing-Old-Photos-Back-to-Life\photos\new --GPU -1 --HR

3、有划痕修复命令。

python run.py --input_folder E:\github\Bringing-Old-Photos-Back-to-Life\photos\old --output_folder E:\github\Bringing-Old-Photos-Back-to-Life\photos\new --with_scratch --GPU -1 --HR

常见问题

1、no module named cv2。

执行以下代码安装依赖:pip install -r requirements.txt