Skip to content

Commit 65969d5

Browse files
committed
small fix
1 parent 2a74874 commit 65969d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/infer/text/predict_cls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,4 @@ def save_cls_res(cls_res_all, img_paths, include_score=False, save_path="./cls_r
263263
save_cls_res(cls_res_all, img_paths, include_score=True, save_path=save_fp)
264264
# print('All cls res: ', cls_res_all)
265265
print("Done! Text direction classification results saved in ", save_dir)
266-
print("Time cost: ", t, "FPS: ", len(img_paths) / t)
266+
print("CLS time: ", t, "FPS: ", len(img_paths) / t)

tools/infer/text/predict_system.py

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def __call__(self, img_or_path: Union[str, np.ndarray], do_visualize=True):
9797
cls_start = time()
9898
_, crops = self.direction_classify(crops)
9999
time_profile["cls"] = time() - cls_start
100+
_logger.info(f"\nCls time: {time_profile['cls']}")
101+
100102

101103
# recognize cropped images
102104
rs = time()

0 commit comments

Comments
 (0)