关于图像识别问题,图片输入格式的错误提示
报错类型TypeError: img should be PIL Image or Tensor Image or ndarray with dim=[2 or 3]. Got
出错的代码是:
File "", line 45, in __getitem__ img = self.train_transforms...
以类的方式组件手写数字识别的网络遇到的问题
class MNIST(paddle.nn.layer):def __init__(self):super(MNIST,self).__init__()
self.fc = paddle.nn.linear(in_features = 784,out_features = 1)def forward(self,inputs):outputs = self.f...