diff --git a/ppocr/utils/stats.py b/ppocr/utils/stats.py index 4b1ac98ad990940f5529f09b736abc42aa7772f6..179b0082f16133ac202c6f0dc120ec07c10fd18e 100755 --- a/ppocr/utils/stats.py +++ b/ppocr/utils/stats.py @@ -65,5 +65,8 @@ class TrainingStats(object): def log(self, extras=None): d = self.get(extras) - strs = ', '.join(str(dict({x: y})).strip('{}') for x, y in d.items()) + strs = [] + for k, v in d.items(): + strs.append('{}: {:x<6f}'.format(k, v)) + strs = ', '.join(strs) return strs