@@ -3,7 +3,7 @@ from .boxes_utils import assert_and_normalize_shape
def translate_boxes(boxes, x_shift=0, y_shift=0, copy=True):
- """scale boxes coordinates in x and y dimensions.
+ """translate boxes coordinates in x and y dimensions.
Args:
boxes: (N, 4+K)
@@ -66,7 +66,7 @@ class ContextTimer(object):
return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
def _print_or_log(self, output_str):
- if self.use_log is True:
+ if self.use_log:
logging.info(output_str)
else:
print(output_str)