Browse Source

updated output of the image profiler

Dimitri Korsch 3 years ago
parent
commit
1056ee27d1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cvdatasets/dataset/mixins/image_profiler.py

+ 3 - 1
cvdatasets/dataset/mixins/image_profiler.py

@@ -1,4 +1,6 @@
 import numpy as np
+import logging
+
 from contextlib import contextmanager
 
 from cvdatasets.dataset.mixins.base import BaseMixin
@@ -19,7 +21,7 @@ class ImageProfilerMixin(BaseMixin):
 	def _profile_img(self, img, tag):
 		if len(img) == 0: return
 		if self._profile_img_enabled:
-			print(f"[{tag:^30s}]",
+			logging.info(f"[{tag:^30s}]" + \
 				" | ".join([
 					f"size: {str(img.shape):>20s}",
 					f"pixel values: ({img.min():+8.2f}, {img.max():+8.2f})"