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

相关推荐
zzzll111132 分钟前
0基础入门大模型:一份清晰的学习路线图
人工智能·学习·chatgpt
LaughingZhu1 小时前
Product Hunt 每日热榜 | 2026-08-04
人工智能·经验分享·深度学习·神经网络·产品运营
正经人_x1 小时前
学习日记48:DenseCLIP
学习
DevangLic2 小时前
monkeycode-使用说明
学习·ai
科研小刘带你玩学术2 小时前
【学术干货】CVPR论文解析:扩散模型如何推动生成式人工智能进入新时代?
人工智能·深度学习·计算机视觉·生成式ai·扩散模型
又折桃枝换酒钱2 小时前
CrossLMM:通过双交叉注意力机制从大型多模态模型中解耦长视频序列
人工智能·深度学习·机器学习
杰佛史彦明 本王是暴君2 小时前
PyTorch KernelAgent 源码解读 ---(2)--- 总体流程
人工智能·pytorch·python
red_redemption3 小时前
自由学习记录(211)
学习
内蒙深海大鲨鱼3 小时前
3.Introduction to PyTorch YouTube Series--Autograd
人工智能·pytorch·python
ZZHow10243 小时前
PyTorch深度学习入门笔记(小土堆)P7-14
人工智能·pytorch·笔记·python·深度学习