当前位置:网站首页>pytorch框架实现老照片修复功能详细演示(GPU版)
pytorch框架实现老照片修复功能详细演示(GPU版)
2022-08-03 19:35:00 【AI算法联盟】
一、环境说明
环境 | 版本 |
系统 | windows10 |
显卡 | RTX3060 |
CUDA | 11.1.1 |
cuDNN | 8.1.1 |
Python | 3.8.8 |
torch | 1.9.0+cu111 |
torchvision | 0.10.0+cu111 |
torchaudio | 0.9.0 |
cuda安装参考: tensorflow-gpu2.4.1安装配置详细步骤
算法模型下载地址:链接:https://pan.baidu.com/s/1uGNXd5g2dKjb4zgckxiLdA
提取码:vqv6
二、安装依赖模块
1.创建新的虚拟环境。
2.安装torch、torchvision、torchaudio模块。
pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
3.安装依赖库。
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
4.在./Bringing-Old-Photos-Back-to-Life/input文件夹中存放需要修复的照片
并执行如下命令:
python run.py --input_folder C:\Users\Administrator\Desktop\Bringing-Old-Photos-Back-to-Life\input --output_folder C:\Users\Administrator\Desktop\Bringing-Old-Photos-Back-to-Life\output --GPU 0
执行结果:
生成修复后的照片路径:
效果对比:


边栏推荐
猜你喜欢
随机推荐
Calculation of the array serial number of Likou brush questions (one question per day 7/28)
力扣刷题之分数加减运算(每日一题7/27)
钱江摩托某型号产品ECU货不对版 消费者知情权应如何保障?
ADS 2023 Download Link
Network protocol-TCP, UDP difference and TCP three-way handshake, four wave
Shell programming loop statement
InnoDB 中不同SQL语句设置的锁
从文本匹配到语义相关——新闻相似度计算的一般思路
ADS 2023 下载链接
flex布局
【微信小程序】NFC 标签打开小程序
if/else或switch替换为Enum
Handler source code analysis
Matlab论文插图绘制模板第42期—气泡矩阵图(相关系数矩阵图)
国产虚拟化云宏CNware WinStack安装体验-5 开启集群HA
「游戏建模干货」建模大师几步操作,学习经典,赶紧脑补一下吧
C中的数据存储
MySQL master-slave, 6 minutes you master!
【QT】入门心法
分享即时通讯开发之WebSocket:概念、原理、易错常识、动手实践