首页 AI Studio教育版 帖子详情
抄作业抄错了,求救
收藏
快速回复
AI Studio教育版 问答使用问题 1654 11
抄作业抄错了,求救
收藏
快速回复
AI Studio教育版 问答使用问题 1654 11

怎么转下才符合啊啊啊。。。

https://aistudio.baidu.com/aistudio/projectdetail/1452350

0
收藏
回复
全部评论(11)
时间顺序
AIStudio810261
#2 回复于2021-01

重新fork一个重新写呗

0
回复
AIStudio810260
#3 回复于2021-01

数据类型不对?

0
回复
AIStudio810260
#4 回复于2021-01

复现也失败了……

0
回复
AIStudio810260
#5 回复于2021-01

我觉得得把报错贴出来

ValueError: (InvalidArgument) The number of input's channels should be equal to filter's channels * groups for Op(Conv). But received: the input's channels is 224, the input's shape is [64, 224, 224, 3]; the filter's channels is 3, the filter's shape is [64, 3, 7, 7]; the groups is 1, the data_format is NCHW. The error may come from wrong data_format setting.
  [Hint: Expected input_channels == filter_dims[1] * groups, but received input_channels:224 != filter_dims[1] * groups:3.] (at /paddle/paddle/fluid/operators/conv_op.cc:96)
  [Hint: If you need C++ stacktraces for debugging, please set `FLAGS_call_stack_level=2`.]
  [operator < conv2d > error]
0
回复
AIStudio810260
#6 回复于2021-01
我觉得得把报错贴出来 [代码]

感觉像是shape不对……

0
回复
AIStudio810258
#7 回复于2021-01

数据喂入模型前打印下看看shape

0
回复
AIStudio810258
#8 回复于2021-01

transform输入输出形状也可以查查

0
回复
AIStudio810260
#9 回复于2021-01

问题后续:https://ai.baidu.com/forum/topic/show/981792

0
回复
AIStudio810259
#10 回复于2021-01
重新fork一个重新写呗

弄好了,就是时间久了点。

0
回复
AIStudio810259
#11 回复于2021-01

再去看看精品项目,看看抄个啥比较容易学会。

0
回复
陈鹏烨
#12 回复于2021-01

厉害了~~~

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户