def get_gridcell_dimensions(config):
    """
    Returns the grid cell dimension in dependence of the use network.
    :param config: config dictionary
    :return: grid cell dimensions
    """
    if config['model']['architecture'] == 'YOLO':
        downsampling_factor = 32.0
    elif config['model']['architecture'] == 'crYOLO' or config['model'][
        'architecture'] == 'PhosaurusNet':
        downsampling_factor = 16.0
    else:
        raise Exception(
            'Architecture not supported! Only support for PhosaurusNet, YOLO and crYOLO at the moment!'
            )
    grid_w = config['model']['input_size'] / downsampling_factor
    grid_h = config['model']['input_size'] / downsampling_factor
    return grid_w, grid_h
