发现一个图片分类的bug
收藏
paddle ==1.5.0时候
module = hub.Module(name="resnet_v2_152_imagenet") 会加载不出模型来
paddlehub==1.6.1时候会出现
Error: Tensor holds the wrong type, it holds float, but desires to be int64_t at (/paddle/paddle/fluid/framework/tensor_impl.h:30)
[operator < cross_entropy2 > error]
这个错误
0
收藏
请登录后评论
fine-tune过程还会出现这个警告
2020-03-29 11:31:45,463-WARNING: Your decorated reader has raised an exception!
OSError: image file is truncated (48 bytes not processed)
参数类型错误
分类标签要求int64类型,输入的是float类型
不同版本有时参数要求不同。
参数类型出了问题
参数类型错误
我输入的就是int64的,感觉就是个bug
这是报的直接错误。这个错误是tensor_impl.h文件第30行的错误。引起错误的原因也可能不是这个直接错误。
大家都在用paddlehub,如果是bug也会被除掉的。我也见到过这种错误。最后检查都是自己的代码问题。
的确
这种发现的bug最后差不多都是自己用法有错误,不要问我怎么知道的
感觉是代码的问题
换个数据试试
有些时候看debug信息会把人带偏了