tensorflow-yolov3 icon indicating copy to clipboard operation
tensorflow-yolov3 copied to clipboard

dataset.txt

Open QiaoSiBo opened this issue 5 years ago • 10 comments

I do not understand how to make dataset.txt? Could you please tell me about this? thanks.

QiaoSiBo avatar Mar 12 '19 02:03 QiaoSiBo

dataset.txt contains image_path and the coordinates of grounding truth boxes in the image

YunYang1994 avatar Mar 12 '19 02:03 YunYang1994

enn, but how can I get this txt? Do you have one .sh?

QiaoSiBo avatar Mar 12 '19 02:03 QiaoSiBo

Sorry, you need to generate it by yourself.

YunYang1994 avatar Mar 12 '19 03:03 YunYang1994

ok, got it, thanks

QiaoSiBo avatar Mar 12 '19 03:03 QiaoSiBo

Any suggestion to generate the dataset.txt file? How do you get the "truth boxes" on the training data?

Thanks for the help!

Ace95 avatar Mar 25 '19 09:03 Ace95

I wrote this little python script that allows you to draw the "truth boxes" on the images and saves the cooordinates in dataset.txt.

https://github.com/Ace95/tensorflow-yolov3/blob/master/Dataset_gen.py

Ace95 avatar Mar 27 '19 12:03 Ace95

@Ace95 when ran your script, I got a error: cv2.error: OpenCV(4.1.0) /io/opencv/modules/highgui/src/window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow' so,what your opencv verison?

xycim avatar Apr 13 '19 20:04 xycim

@Ace95 when ran your script, I got a error: cv2.error: OpenCV(4.1.0) /io/opencv/modules/highgui/src/window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow' so,what your opencv verison?

Sorry for late replay, I'm usign OpenCV 4.1.0. Check that the "filelist.txt" you are using is correct and that there are no blank lines. If you generated it with the code in the script it may have a blank first line, delate that and re-run the script. Let me know if you can get the dataset.txt file with the correct boxes coordinates..

Ace95 avatar May 08 '19 15:05 Ace95

https://github.com/pythonlessons/YOLOv3-object-detection-tutorial/blob/master/YOLOv3-CSGO-detection/voc_to_YOLOv3_NO_CLASSES.py

hadizand avatar Oct 15 '20 09:10 hadizand

Can anyone help how to prepare data for few images with just background(no objects) ?

ghost avatar Jan 13 '21 16:01 ghost