개정판 a6b28afb
issue #1366: tile size 500 -> 850 for opc test
Change-Id: I20bea9dc274badf03ae6a262ded798f30a765517
DTI_PID/WebServer/symbol_recognition/test_doftech_all_images.py | ||
---|---|---|
94 | 94 |
s_image = img_list[idx_img].copy() |
95 | 95 |
l_image = img_list[idx_img].copy() |
96 | 96 | |
97 |
small_object_patch_list.append(get_patch(s_image, 500, 250))
|
|
98 |
large_object_patch_list.append(get_patch(l_image, 800, 200))
|
|
97 |
small_object_patch_list.append(get_patch(s_image, 850, 250))
|
|
98 |
large_object_patch_list.append(get_patch(l_image, 850, 200))
|
|
99 | 99 | |
100 | 100 |
img_name = str(idx_img) |
101 | 101 |
DTI_PID/WebServer/symbol_training/train.py | ||
---|---|---|
66 | 66 |
parser.add_argument("--nms_threshold", type=float, default=0.5) |
67 | 67 |
opt = parser.parse_args() |
68 | 68 | |
69 |
if not os.path.isdir(opt.saved_path): |
|
70 |
os.mkdir(save_dir) |
|
71 | ||
69 | 72 |
with open(os.path.join(opt.saved_path, name + "_info.info"), 'w') as stream: |
70 | 73 |
con = str(len(DOFTECH_CLASSES)) |
71 | 74 |
names = '\n'.join(DOFTECH_CLASSES) |
내보내기 Unified diff