hinkeret
hinkeret
你好,您上面说的那些我都尝试过,tfrecord的路径也没什么问题,我现在有一个问题,就是您在转tfrecord的时候,转出来的文件大小会比所有照片的大小加起来还大很多嘛,我现在就是这个情况,所以我在怀疑是不是在转tfrecord 的时候有什么地方设置的不对。
VOC2012 153.jpg C:\Users\test\Desktop\VOC2012\153.jpg Unknown 1600 1200 3 0 spm40 Unspecified 0 0 859 340 936 416  我使用了这样的xml和照片,一共三张照片,一直找不出原因出在哪里?
> > VOC2012 153.jpg C:\Users\test\Desktop\VOC2012\153.jpg Unknown 1600 1200 3 0 spm40 Unspecified 0 0 859 340 936 416 > xml File
如果方便的话,能否麻烦您提供一个极小的训练数据集,我用来验证是环境问题还是训练数据出了差错?
你好,我找到这个错误的原因了,是因为在使用tf.decode_raw解析照片的时候格式需要和在写照片时保持一致,我将tf.float32改成tf.uint8代码就可以正常运行了
The file is read_tfrecord.py, you can modify “img = tf.decode_raw(features['img'],tf.float32)”,change tf.float32 into tf.uint8. @frothmoon
上面作者说的那些问题你都检查过吗?你的环境是Windows还是Linux @frothmoon
那应该是你的数据有问题 你需要查一查照片 @frothmoon
I have the same problem, did anyone solve the problem, thanks.