未验证 提交 493568b0 编写于 作者: M mls1999725 提交者: GitHub

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
上级 0aedd463
......@@ -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],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册