Utils

load_json

def load_json(file_path)

save_json

def save_json(data, target_file)

random_crop

def random_crop(img, crop_dims)

random_horizontal_flip

def random_horizontal_flip(img)

load_image

def load_image(img_file, target_size)

normalize_labels

def normalize_labels(labels)

calc_mean_score

def calc_mean_score(score_dist)

ensure_dir_exists

def ensure_dir_exists(dir)