autoOD 1.0.23
Module to automate object detection process.
Keywords: ObjectDetection,autoML,autoOD

# autoOD

## Docker

## Augmentation
Available augmentations' methods: [link](docs/augmentation/Документация_по_аугментации.pdf)

## Tutorial
### Установка пакета
Ссылка на проект на pypi: `https://pypi.org/project/autoOD/`.
```angular2html
pip install autoOD
```

## Конфигурация проекта
В корне рабочей директории необходимо создать файл `object_detection.ini`. Пример:
```angular2html
[Environment]
; required fields to change: dataset_dir, path_to_work_dir, image_folder
dataset_dir=/Users/elinachertova/PycharmProjects/autoOD/all_images_data
path_to_work_dir=/Users/elinachertova/PycharmProjects/autoOD/
image_folder=all_images_data
test_folder=test
train_folder=train
all_data_folder=all_data
annotations_folder=annotations
result_folder=result
models_folder=models
additional_folder=additional

[Dataset]
extension=jpg

[Dataset.Preparation]
train_set_percent=0.8
is_shuffle=True

[Training.Params]
; If is_custom_settings == False, the params will be selected automatically.
is_custom_settings=True
; is_custom_settings==False
model_id=16
batch_size=16
num_steps=1000

;
[Training.EarlyStopping]
early_stopping=True
patience=5
min_delta=0.001
save_step=3
;

[Training.Overfitting]
is_prevent_overfitting=True
use_dropout=True
use_score_threshold=True

[Training.Loss]
is_loss_function=False
classification_weight=1.0
localization_weight=1.0

[Training.Augmentation]
; If is_auto_augmentation == True, AutoAu
is_auto_augmentation=False
; Available values: v0, v1, v2, v3. v0 preferable
policy=v0


; If is_augmentation == False, the section will be skipped.
is_augmentation=True


normalize_image=False


horizontal_flip=True
probability_horizontal_flip=0.2


vertical_flip=True
probability_vertical_flip=0.5


rotation90=False
probability_rotation90=0.3


pixel_value_scale=False


entire_rgb_to_grey=True
probability_entire_rgb_to_grey=0.07


adjust_brightness=False
max_delta_adjust_brightness=0.2


adjust_contrast=True
min_delta_adjust_contrast=0.8
max_delta_adjust_contrast=1.25


adjust_hue=False
max_delta_adjust_hue=0.02


adjust_saturation=False
min_delta_adjust_saturation=0.8
max_delta_adjust_saturation=1.25


distort_color=False
color_ordering=1


crop_image=False
min_object_covered_crop_image=1.0
min_aspect_ratio_crop_image=0.75
max_aspect_ratio_crop_image=1.33
min_area_crop_image=0.1
max_area_crop_image=1.0
overlap_thresh_crop_image=0.3
clip_boxes_crop_image=True
random_coef_crop_image=0.0


pad_image=False


crop_pad_image=False


crop_to_aspect_ratio=False
aspect_ratio_crop_to_aspect_ratio=1.0
overlap_thresh_crop_to_aspect_ratio=0.3
clip_boxes_crop_to_aspect_ratio=True


black_patches=True
max_black_patches=10
probability_black_patches=0.2
size_to_image_ratio=0.1


rgb_to_grey=False


drop_label_probabilistically=False
label=1
drop_probability=1.0


jpeg_quality=False
random_coef_jpeg_quality=0.0
min_jpeg_quality=0
max_jpeg_quality=100


patch_gaussian=False
random_coef_patch_gaussian=0.0
min_patch_size=1
max_patch_size=250
min_gaussian_stddev=0.0
max_gaussian_stddev=1.0

```

Необходимо заменить конфигурацию из раздела Environment на пользовательскую. Остальные параметры настраиваются по желанию.