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
revert-31562-mean
mls1999725 5 years ago committed by GitHub
parent 0aedd463ee
commit 493568b070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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],

@ -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],

Loading…
Cancel
Save