Skip to content

Commit dfdd822

Browse files
committed
fixed multi_scale_inp_size
1 parent 583b061 commit dfdd822

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def preprocess(fname):
1414
# return fname
1515
image = cv2.imread(fname)
1616
im_data = np.expand_dims(
17-
yolo_utils.preprocess_test((image, None, cfg.inp_size))[0], 0)
17+
yolo_utils.preprocess_test((image, None, cfg.multi_scale_inp_size), 0)[0], 0)
1818
return image, im_data
1919

2020

layers/reorg/_ext/reorg_layer/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from ._reorg_layer import lib as _lib, ffi as _ffi
44

55
__all__ = []
6-
7-
86
def _import_symbols(locals):
97
for symbol in dir(_lib):
108
fn = getattr(_lib, symbol)
@@ -14,5 +12,4 @@ def _import_symbols(locals):
1412
locals[symbol] = fn
1513
__all__.append(symbol)
1614

17-
1815
_import_symbols(locals())

layers/roi_pooling/_ext/roi_pooling/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from ._roi_pooling import lib as _lib, ffi as _ffi
44

55
__all__ = []
6-
7-
86
def _import_symbols(locals):
97
for symbol in dir(_lib):
108
fn = getattr(_lib, symbol)
@@ -14,5 +12,4 @@ def _import_symbols(locals):
1412
locals[symbol] = fn
1513
__all__.append(symbol)
1614

17-
1815
_import_symbols(locals())

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def preprocess(fname):
1616
# return fname
1717
image = cv2.imread(fname)
18-
im_data = np.expand_dims(yolo_utils.preprocess_test(image, cfg.inp_size), 0) # noqa
18+
im_data = np.expand_dims(yolo_utils.preprocess_test(image, cfg.multi_scale_inp_size), 0) # noqa
1919
return image, im_data
2020

2121

0 commit comments

Comments
 (0)