From 70a45a55eab7a8776839261dedbee2c7a3c54215 Mon Sep 17 00:00:00 2001 From: Yuta Fukasawa Date: Sun, 3 Oct 2021 09:47:51 +0900 Subject: [PATCH] convert symbol/symbol_factory.py to run on python3 --- symbol/symbol_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symbol/symbol_factory.py b/symbol/symbol_factory.py index e86b190..c1ac207 100644 --- a/symbol/symbol_factory.py +++ b/symbol/symbol_factory.py @@ -30,7 +30,7 @@ def get_scales(min_scale=0.2, max_scale=0.9,num_layers=6): step = int(np.floor((max_ratio - min_ratio) / (num_layers - 2))) min_sizes = [] max_sizes = [] - for ratio in xrange(min_ratio, max_ratio + 1, step): + for ratio in range(min_ratio, max_ratio + 1, step): min_sizes.append(ratio / 100.) max_sizes.append((ratio + step) / 100.) min_sizes = [int(100*min_scale / 2.0) / 100.0] + min_sizes