当前位置:网站首页>ResNet18-实现图像分类
ResNet18-实现图像分类
2022-07-30 19:05:00 【AutoGalaxy】
一. 原理
参见论文:何凯明:Deep Residual Learning for Image Recognition
二. 代码
使用的库:
torchvision:处理图像数据,包含一些数据集,模型,转换函数,独立于pytorch,需要独立安装,主要由以下四部分组成(1)torchvision.models:提供深度学习中经典的网络结构(Alex-net,ResNet,VGG,Inception)
(2)torchvision.datasets:提供常用的数据集
(3)torchvision.transforme:常用的数据预处理操作
(4)torchvision.utils:工具类
实现目标:每张图片对应一个label,能够让模型识别图片对应的model(图像分类任务)
阅读深度学习代码技巧:得搞清楚数据集的格式是什么,即数据集的输入是什么,输出是什么。(通过Debug来调试解读,更加方便快捷)
输入:图片变成向量,
1.1. Debug
边栏推荐
- requet.getHeader("token") is null
- MYSQL (Basic) - An article takes you into the wonderful world of MYSQL
- Pytorch foundation -- tensorboard use (1)
- nlohmann json 使用指南【visual studio 2022】
- OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
- Swiper rotates pictures and plays background music
- Alibaba Cloud Martial Arts Headline Event Sharing
- JsonUtil基于字符串操作josn
- 【每日一道LeetCode】——191. 位1的个数
- [Use of Qt Designer tool]
猜你喜欢

MySql中@符号的使用

scrapy基本使用

延时队列优化 (2)

Delay queue optimization (2)

【剑指 Offe】剑指 Offer 18. 删除链表的节点

VBA connects Access database and Excel

NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...

MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?

Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"

node封装一个控制台进度条插件
随机推荐
kotlin by lazy
What kind of framework is friendly to developers?
第一次进入小程序判断
What is the value of biomedical papers? How to translate the papers into Chinese and English?
跨进程启动后台服务
redis
自己需要努力
VS Code 连接SQL Server
OneFlow源码解析:Op、Kernel与解释器
AWS 控制台
Another company interview
不同的路径依赖
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
Chapter 14 Type Information
【剑指 Offe】剑指 Offer 17. 打印从1到最大的n位数
golang日志库zerolog使用记录
Listen to the boot broadcast
[TypeScript]编译配置
- daily a LeetCode 】 【 191. A number of 1
几个GTest、GMock的例子