|
test_tools
|
Classes | |
| class | BColors |
Functions | |
| def | count_images (objects, path) |
Variables | |
| common_knowledge = knowledge_loader.load_knowledge("common") | |
| objects = common_knowledge.object_names | |
| objects_set = set(objects) | |
| path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "training_data", "annotated") | |
| raw_labels_lines = tensorflow_labels_file.readlines() | |
| robot_env = os.environ.get("ROBOT_ENV") | |
| list | tensorflow_labels = [line.strip() for line in raw_labels_lines] |
| tensorflow_labels_path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "models", "tensorflow_ros", "output_labels.txt") | |
| tensorflow_set = set(tensorflow_labels) | |
| tpath = os.path.join(path, v) | |
| def analyse-annotations.count_images | ( | objects, | |
| path | |||
| ) |
Counts the images in the subdirectories of 'path'. The subdirectories are identified by the provided objects. The results are printed to screen :param objects: list with strings :param path: string indicating the path
Definition at line 33 of file analyse-annotations.py.
| analyse-annotations.common_knowledge = knowledge_loader.load_knowledge("common") |
Definition at line 72 of file analyse-annotations.py.
| analyse-annotations.objects = common_knowledge.object_names |
Definition at line 73 of file analyse-annotations.py.
| analyse-annotations.objects_set = set(objects) |
Definition at line 74 of file analyse-annotations.py.
| analyse-annotations.path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "training_data", "annotated") |
Definition at line 96 of file analyse-annotations.py.
| analyse-annotations.raw_labels_lines = tensorflow_labels_file.readlines() |
Definition at line 81 of file analyse-annotations.py.
| analyse-annotations.robot_env = os.environ.get("ROBOT_ENV") |
Definition at line 77 of file analyse-annotations.py.
| list analyse-annotations.tensorflow_labels = [line.strip() for line in raw_labels_lines] |
Definition at line 82 of file analyse-annotations.py.
| analyse-annotations.tensorflow_labels_path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "models", "tensorflow_ros", "output_labels.txt") |
Definition at line 79 of file analyse-annotations.py.
| analyse-annotations.tensorflow_set = set(tensorflow_labels) |
Definition at line 83 of file analyse-annotations.py.
| analyse-annotations.tpath = os.path.join(path, v) |
Definition at line 100 of file analyse-annotations.py.
1.8.17