From 493568b070d01caea8bbca68c719dbcfecd3a2e6 Mon Sep 17 00:00:00 2001 From: mls1999725 <43207078+mls1999725@users.noreply.github.com> Date: Wed, 2 Dec 2020 14:28:45 +0800 Subject: [PATCH] Update Codes of Cifar and VOC2012 (#29204) * Update Cifar Codes * Update VOC2012 Codes * Update voc2012.py * Update voc2012.py * Update cifar.py * Update cifar.py * Update voc2012.py --- python/paddle/vision/datasets/cifar.py | 2 -- python/paddle/vision/datasets/voc2012.py | 1 - 2 files changed, 3 deletions(-) diff --git a/python/paddle/vision/datasets/cifar.py b/python/paddle/vision/datasets/cifar.py index 7a766828d8..25bec2daf5 100644 --- a/python/paddle/vision/datasets/cifar.py +++ b/python/paddle/vision/datasets/cifar.py @@ -80,7 +80,6 @@ class Cifar10(Dataset): image = paddle.reshape(image, (1, -1)) return self.fc(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], @@ -214,7 +213,6 @@ class Cifar100(Cifar10): image = paddle.reshape(image, (1, -1)) return self.fc(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], diff --git a/python/paddle/vision/datasets/voc2012.py b/python/paddle/vision/datasets/voc2012.py index 33a3b4e194..f846728f80 100644 --- a/python/paddle/vision/datasets/voc2012.py +++ b/python/paddle/vision/datasets/voc2012.py @@ -68,7 +68,6 @@ class VOC2012(Dataset): def forward(self, image, label): return paddle.sum(image), label - paddle.disable_static() normalize = Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5], -- GitLab