(args, path_list)
| 34 | return result |
| 35 | |
| 36 | def vis_data(args, path_list): |
| 37 | feature_save_path = os.path.join(args.save_path) |
| 38 | if not os.path.exists(feature_save_path): |
| 39 | os.makedirs(feature_save_path) |
| 40 | for path in path_list: |
| 41 | name = os.path.basename(path) |
| 42 | feature = np.rot90(255 * std(np.load(path)), 1) |
| 43 | cv2.imwrite('%s/%s.jpg'%(feature_save_path,name), feature) |
| 44 | |
| 45 | def parse_args(): |
| 46 | parser = argparse.ArgumentParser() |