thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

Training Image size Problem #621

Open SrikanthVelpuri opened 6 years ago

SrikanthVelpuri commented 6 years ago

I have all the training images sizes - height =614 width =707 But the size in the tiny-yolo-voc.cfg file is height =414 width =414 by default. I edited the tiny-yolo-voc.cfg to tiny-yolo-voc-1c for detecting one class and started training the model....The model failed badly. Is the size of my training images different from those in the tiny-yolo-voc-1c caused this problem? Here are the screenshots of my tiny-yolo-voc-1c.cfg and properties of one of my training image.

screenshot from 2018-03-09 11-23-34

ghost commented 6 years ago

The size in the tiny-yolo-voc.cfg is 416*416, multiples of 32. It dosnt matter what the sizes of your training images are, as long as their h and w are multiplea of 32.

zhihuacc commented 5 years ago

The size in the tiny-yolo-voc.cfg is 416*416, multiples of 32. It dosnt matter what the sizes of your training images are, as long as their h and w are multiplea of 32.

My training images are not multiple of 32, but it still works.