当前位置:网站首页>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
执行结果:
生成修复后的照片路径:
效果对比:


边栏推荐
猜你喜欢
随机推荐
SQL server 实现触发器备份表数据
简易电子琴设计(c语言)
Brush the topic of mobile zero power button
线上一次JVM FullGC搞得整晚都没睡,彻底崩溃
Postgresql snapshot optimization Globalvis new system analysis (performance greatly enhanced)
InnoDB 中不同SQL语句设置的锁
京东云发布新一代分布式数据库StarDB 5.0
手把手教你定位线上MySQL慢查询问题,包教包会
设备树基本原理与操作方法
Unity gets the actual coordinates of the ui on the screen under the canvas
Force is brushed buckle problem for the sum of two Numbers
LeetCode 622. 设计循环队列
Network protocol-TCP, UDP difference and TCP three-way handshake, four wave
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
【QT】入门心法
Introduction to Cosine Distance
云图说丨初识华为云微服务引擎CSE
Postgresql source code (64) Query execution - data structure and execution process before submodule Executor (2) execution
2022 CCF中国开源大会会议通知(第三轮)
力扣刷题之分数加减运算(每日一题7/27)