《PyTorch深度学习快速入门教程》学习笔记(第17周)

目录

摘要

Abstract

[1. Transforms用途](#1. Transforms用途)

[2. Transforms该如何使用](#2. Transforms该如何使用)

[2.1 transforms.Totensor使用](#2.1 transforms.Totensor使用)

[2.2 需要Tensor数据类型原因](#2.2 需要Tensor数据类型原因)

[3. 常见的Transforms工具](#3. 常见的Transforms工具)

[3.1 __call__魔术方法使用](#3.1 __call__魔术方法使用)

[3.2 Normanize归一化](#3.2 Normanize归一化)

[3.3 Resize裁剪](#3.3 Resize裁剪)

[3.3.1 Resize裁剪方法一](#3.3.1 Resize裁剪方法一)

[3.3.2 Resize裁剪方法二](#3.3.2 Resize裁剪方法二)

[3.4 RandomCrop随机裁剪](#3.4 RandomCrop随机裁剪)

[3.4.1 RandomCrop随机裁剪方式一](#3.4.1 RandomCrop随机裁剪方式一)

[3.4.2 RandomCrop随机裁剪方式二](#3.4.2 RandomCrop随机裁剪方式二)


摘要

本周报的目的在于汇报《PyTorch深度学习快速入门教程》课程第三周的学习成果,主要聚焦于Transforms的使用以及其相关内容。

在这本周的学习中,课程内容主要涵盖了Transforms使用,包括常见的Transfroms工具,Resize裁剪和RandomCrop随机裁剪等等。

本篇文章将对学习内容进行详细的阐述,并在最后部分对本周的学习内容进行总结。本周报旨在通过这种方式,将理论知识与实践应用有效地结合起来,为深度学习的基础内容学习与方向提供概括性总结。

Abstract

The purpose of this weekly report is to present the learning outcomes of the third week of the PyTorch Deep Learning Quick Start Tutorial course, with a focus on the use of Transformers and its related content.

In this week's learning, the course content mainly covers the use of Transformers, including common Transfors tools, Resize cropping, RandomCrop, and so on.

This article will provide a detailed explanation of the learning content and summarize the learning content for this week in the final section. This weekly report aims to effectively combine theoretical knowledge with practical applications in this way, providing a summary of the basic content and direction of deep learning learning learning.

1. Transforms用途

① Transforms当成工具箱的话,里面的class就是不同的工具。例如像totensor、resize这些工具。

② Transforms拿一些特定格式的图片,经过Transforms里面的工具,获得我们想要的结果。

2. Transforms该如何使用

2.1 transforms.Totensor使用

2.2 需要Tensor数据类型原因

① Tensor有一些属性,比如反向传播、梯度等属性,它包装了神经网络需要的一些属性。

② 在 Anaconda 终端里面,激活py3.6.3环境,再输入 tensorboard --logdir=C:\Users\wangy\Desktop\03CV\logs 命令,将网址赋值浏览器的网址栏,回车,即可查看tensorboard显示日志情况。

③ 输入网址可得Tensorboard界面。

3. 常见的Transforms工具

① Transforms的工具主要关注他的输入、输出、作用。

3.1 __call__魔术方法使用

3.2 Normanize归一化

3.3 Resize裁剪

3.3.1 Resize裁剪方法一

3.3.2 Resize裁剪方法二

3.4 RandomCrop随机裁剪

3.4.1 RandomCrop随机裁剪方式一

3.4.2 RandomCrop随机裁剪方式二

相关推荐
Narrastory2 天前
明日香 - Pytorch 快速入门保姆级教程(一)
人工智能·pytorch·深度学习
Narrastory2 天前
明日香 - Pytorch 快速入门保姆级教程(二)
人工智能·pytorch·深度学习
程序员打怪兽3 天前
详解Visual Transformer (ViT)网络模型
深度学习
CoovallyAIHub5 天前
仿生学突破:SILD模型如何让无人机在电力线迷宫中发现“隐形威胁”
深度学习·算法·计算机视觉
CoovallyAIHub5 天前
从春晚机器人到零样本革命:YOLO26-Pose姿态估计实战指南
深度学习·算法·计算机视觉
CoovallyAIHub5 天前
Le-DETR:省80%预训练数据,这个实时检测Transformer刷新SOTA|Georgia Tech & 北交大
深度学习·算法·计算机视觉
CoovallyAIHub5 天前
强化学习凭什么比监督学习更聪明?RL的“聪明”并非来自算法,而是因为它学会了“挑食”
深度学习·算法·计算机视觉
CoovallyAIHub5 天前
YOLO-IOD深度解析:打破实时增量目标检测的三重知识冲突
深度学习·算法·计算机视觉
用户1474853079745 天前
AI-动手深度学习环境搭建-d2l
深度学习
OpenBayes贝式计算5 天前
解决视频模型痛点,TurboDiffusion 高效视频扩散生成系统;Google Streetview 涵盖多个国家的街景图像数据集
人工智能·深度学习·机器学习