def generate_resolution(type_acquisition, model_input_size):
    """
    Generates the resolution to use related to the trained modeL.
    :param type_acquisition: String, "SEM" or "TEM"
    :param model_input_size: String or Int, the size of the input.
    :return: Float, the resolution of the model.
    """
    dict_size = {'SEM': {'512': 0.1, '256': 0.2}, 'TEM': {'512': 0.01}}
    return dict_size[str(type_acquisition)][str(model_input_size)]
