Darknet YOLO image size

前端 未结 5 1220
猫巷女王i
猫巷女王i 2021-02-05 16:50

I am trying to train custom object classifier in Darknet YOLO v2 https://pjreddie.com/darknet/yolo/

I gathered a dataset for images most of them are 6000 x 4000 px and s

5条回答
  •  Happy的楠姐
    2021-02-05 17:47

    You do not need to resize the images, you can directly change the values in darknet.cfg file.

    1. When you open darknet.cfg (yolo-darknet.cfg) file, you can all
      hyper-parameters and their values.
    2. As showed in your cfg file images dimensions are (416,416)->(weight,height), you can change the values, so that darknet will automatically resize the images before training.
    3. Since the images have high dimensions, you can adjust batch and sub-division values (lower the values 32,16,8 . it has to be multiples of 2), so that darknet will not crash (memory allocation error)

提交回复
热议问题