Whatasmallship / comments

0 stars 0 forks source link

PyTorch:数据集/数据处理 | 干点啥好呢 #22

Open Whatasmallship opened 1 month ago

Whatasmallship commented 1 month ago

https://whatasmallship.github.io/2024/08/22/PyTorch-%E6%95%B0%E6%8D%AE%E9%9B%86-%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86/#post-comment

torchvision.transforms.Compose PyTorch 的 torchvision 库中的一个类,用于将一系列图像变换操作组合在一起。通过将多个图像变换按顺序应用,可以方便地对数据集进行预处理和增强。 原型 1class torchvision.transforms.Compose(transforms) 属性说明 transforms:包含多个变换操作的列表。这些变换操作

Whatasmallship commented 1 month ago

Test