DetectionTeamUCAS / FPN_Tensorflow

This is a tensorflow re-implementation of Feature Pyramid Networks for Object Detection.
https://github.com/DetectionTeamUCAS/FPN_Tensorflow
MIT License
347 stars 132 forks source link

大佬们,tfrecord生成为空该怎么解决 #156

Open ZHANG-hengzhi opened 3 years ago

Dangling-Pointer-Forever commented 2 years ago

首先第一步检查一下tfrecord保存路径是否正确,如果正确,但是生成的文件为0kb,那么再检查一下保存的路径以及文件名称是否都是双引号,因为我在windows10运行此代码的时候发现,win10需要将那部分改成双引号才可以保存不为空。例如:

python convert_data_to_tfrecord.py --VOC_dir="/PATH/data/VOCdevkit/VOCdevkit_train/" --save_name="train" --xml_dir="Annotations" --image_dir="JPEGImages" --img_format=".jpg" --dataset="mydata"

younkun commented 1 year ago

检查路径。路径错了,生成为空