def get_classes(classes_path):
    """Read the classes name from file.

    Args:
      classes_path: the absolute path of the file which contains the name of categories.

    Returns:
      A list of names of all classes.
    """
    with open(classes_path) as f:
        class_names = f.readlines()
    class_names = [c.strip() for c in class_names]
    return class_names