Darknet: Что делают min_crop и max_crop в .cfg файлах?

Created on 10 Oct 2018  ·  6Comments  ·  Source: AlexeyAB/darknet

Какие преобразования с изображением делают min_crop и max_crop?
Часть моего cfg файла:
height=128
width=128
min_crop=64
max_crop=224

Most helpful comment

width=416 height=416 min_crop=416 max_crop=416 aspect=1

All 6 comments

[min_crop, max_crop] - the range - how much the image will be scaled (size reduced or enlarged) in data augmentation function during Classifier training.

low = min_crop (from cfg)
high = max_crop (from cfg)
size = width (from cfg)
aspect = random-float(from: 1/aspect, to: aspect) // where aspect (from cfg)

https://github.com/AlexeyAB/darknet/blob/7ee4135910624f11e80de36b236208b223f58eb4/src/image.c#L1456-L1475

Как я могу отключить его?

width=416 height=416 min_crop=416 max_crop=416 aspect=1

Спасибо большое

@AlexeyAB , А можно еще уточнить, данных параметров нет в yolo*.cfg файлах. Значит ли это, что я не могу их там использовать? Или можно их там дописать, и они будут работать? И также интересует параметр angle. Он в yolo установлен в 0. Имеет смысл его менять?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zihaozhang9 picture zihaozhang9  ·  3Comments

siddharth2395 picture siddharth2395  ·  3Comments

jasleen137 picture jasleen137  ·  3Comments

yongcong1415 picture yongcong1415  ·  3Comments

rezaabdullah picture rezaabdullah  ·  3Comments