From 61dd6267c3c3b0f433a1f01ad6418e6a32e6a6c8 Mon Sep 17 00:00:00 2001 From: lmxhappy Date: Thu, 23 May 2019 20:37:45 +0800 Subject: [PATCH] Update dataset.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改正方法名字 --- .../data/dataset.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/chapter6-\345\256\236\346\210\230\346\214\207\345\215\227/data/dataset.py" "b/chapter6-\345\256\236\346\210\230\346\214\207\345\215\227/data/dataset.py" index 7e0cfa23..2a0b2080 100644 --- "a/chapter6-\345\256\236\346\210\230\346\214\207\345\215\227/data/dataset.py" +++ "b/chapter6-\345\256\236\346\210\230\346\214\207\345\215\227/data/dataset.py" @@ -45,7 +45,7 @@ def __init__(self, root, transforms=None, train=True, test=False): else: self.transforms = T.Compose([ T.Resize(256), - T.RandomReSizedCrop(224), + T.RandomResizedCrop(224), T.RandomHorizontalFlip(), T.ToTensor(), normalize