《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随机裁剪方式二

相关推荐
SteveSenna14 分钟前
项目:Trossen Arm MuJoCo
人工智能·学习·算法
m0_7473041625 分钟前
GNN学习
学习
龙腾AI白云34 分钟前
什么是AI智能体(AI Agent)
人工智能·深度学习·自然语言处理·数据分析
Sagittarius_A*38 分钟前
监督学习(Supervised Learning)
人工智能·学习·机器学习·监督学习
qqty12172 小时前
Java进阶学习之路
java·开发语言·学习
WHS-_-20222 小时前
Python 算法题学习笔记一
python·学习·算法
_李小白2 小时前
【OSG学习笔记】Day 22: StateSet 与 StateAttribute (渲染状态)
笔记·学习
做个文艺程序员2 小时前
华为昇腾NPU部署开源大模型全攻略(以Qwen3-8B为例)
人工智能·深度学习·华为
weiwei228442 小时前
torch.nn神经网络详解
pytorch·mnist·手写识别
TorrieLeung3 小时前
碎片学习|外贸tob 一手交钱一手交货
学习·tob·外贸销售·工地英语