If you have 3 classifications such as "dog", "cat" and "tiger", and you have 001.jpg, an image of a cat, and 002.jpg , an image of a tiger, then your train.txt or val.txt can be like this:
001.jpg 2
002.jpg 3
So this format is:
Filename No.1 The classification number of file No.1
Filename No.2 The classification number of file No.2
...
在 2016年3月16日星期三 UTC+8下午8:10:48,monjoy saha写道:
Can you kindly explain how did you prepare train.txt and val.txt file.
If possible can you upload one sample image and corresponding .txt file.