fix typo
This commit is contained in:
parent
611c70f68c
commit
21ad9026d3
|
@ -64,7 +64,7 @@ class TextDetector(object):
|
||||||
postprocess_params["box_thresh"] = args.det_db_box_thresh
|
postprocess_params["box_thresh"] = args.det_db_box_thresh
|
||||||
postprocess_params["max_candidates"] = 1000
|
postprocess_params["max_candidates"] = 1000
|
||||||
postprocess_params["unclip_ratio"] = args.det_db_unclip_ratio
|
postprocess_params["unclip_ratio"] = args.det_db_unclip_ratio
|
||||||
postprocess_params["use_dilation"] = args.use_dialtion
|
postprocess_params["use_dilation"] = args.use_dilation
|
||||||
elif self.det_algorithm == "EAST":
|
elif self.det_algorithm == "EAST":
|
||||||
postprocess_params['name'] = 'EASTPostProcess'
|
postprocess_params['name'] = 'EASTPostProcess'
|
||||||
postprocess_params["score_thresh"] = args.det_east_score_thresh
|
postprocess_params["score_thresh"] = args.det_east_score_thresh
|
||||||
|
|
|
@ -47,8 +47,8 @@ def parse_args():
|
||||||
parser.add_argument("--det_db_box_thresh", type=float, default=0.5)
|
parser.add_argument("--det_db_box_thresh", type=float, default=0.5)
|
||||||
parser.add_argument("--det_db_unclip_ratio", type=float, default=1.6)
|
parser.add_argument("--det_db_unclip_ratio", type=float, default=1.6)
|
||||||
parser.add_argument("--max_batch_size", type=int, default=10)
|
parser.add_argument("--max_batch_size", type=int, default=10)
|
||||||
parser.add_argument("--use_dialtion", type=bool, default=False)
|
parser.add_argument("--use_dilation", type=bool, default=False)
|
||||||
|
|
||||||
# EAST parmas
|
# EAST parmas
|
||||||
parser.add_argument("--det_east_score_thresh", type=float, default=0.8)
|
parser.add_argument("--det_east_score_thresh", type=float, default=0.8)
|
||||||
parser.add_argument("--det_east_cover_thresh", type=float, default=0.1)
|
parser.add_argument("--det_east_cover_thresh", type=float, default=0.1)
|
||||||
|
|
Loading…
Reference in New Issue