(input_data_path)
| 381 | |
| 382 | |
| 383 | def load_data(input_data_path): |
| 384 | with open(input_data_path) as f: |
| 385 | data_file_list = open(input_data_path, 'rt').read().splitlines() |
| 386 | # Get full list of image and labels |
| 387 | file_image = [s.split(' ')[0] for s in data_file_list] |
| 388 | file_label = [int(s.split(' ')[1]) for s in data_file_list] |
| 389 | |
| 390 | return file_image, file_label |