当前位置:网站首页>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
边栏推荐
- Recommendation | People who are kind to you, don't repay them by inviting them to eat
- MindSpore:对image作normalize的目的是什么?
- 架构师如何成长
- [Prometheus] An optimization record of the Prometheus federation [continued]
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- DM8: Single database and single instance to build a local data guard service
- Spark学习:编译Spark项目时遇到的报错
- 基于inquirer封装一个控制台文件选择器
- 中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
- SimpleOSS third-party library libcurl and engine libcurl error solution
猜你喜欢
深入浅出边缘云 | 3. 资源配置
运营 23 年,昔日“国内第一大电商网站”黄了...
Mysql execution principle analysis
The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!
WeChat Mini Program Cloud Development | Urban Information Management
redis
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
电脑死机的时候,发生了什么?
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
- daily a LeetCode 】 【 191. A number of 1
随机推荐
跨进程启动后台服务
SwiftUI iOS 精品开源项目之 完整烘焙食品菜谱App基于SQLite(教程含源码)
Range.CopyFromRecordset 方法 (Excel)
Chapter 4 Controlling the Execution Flow
NXP IMX8QXP更换DDR型号操作流程
Recommendation | People who are kind to you, don't repay them by inviting them to eat
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
在华为云,见证迷你世界的神奇觉醒
【网站放大镜效果】两种方式实现
Multiple instances of mysql
The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!
How architects grow
Common linked list problems and their Go implementation
一文读懂“语言模型”
第14章 类型信息
荐号 | 对你有恩的人,不要请吃饭来报答
启动前台Activity
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
DM8:单库单实例搭建本地数据守护服务
防抖和节流有什么区别,分别用于什么场景?