From 35fb9cb5e479dab9d742dd19450b660d8a2cf769 Mon Sep 17 00:00:00 2001 From: sunyanfang01 Date: Wed, 20 May 2020 13:07:47 +0800 Subject: [PATCH] modify logging --- paddlex/interpret/core/normlime_base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddlex/interpret/core/normlime_base.py b/paddlex/interpret/core/normlime_base.py index 6fdd259..df470b6 100644 --- a/paddlex/interpret/core/normlime_base.py +++ b/paddlex/interpret/core/normlime_base.py @@ -116,9 +116,8 @@ def precompute_lime_weights(list_data_, predict_fn, num_samples, batch_size, sav if os.path.exists(save_path): logging.info(save_path + ' exists, not computing this one.', use_color=True) continue - - logging.info('processing'+each_data_ if isinstance(each_data_, str) else data_index + \ - f'+{data_index}/{len(list_data_)}', use_color=True) + img_file_name = each_data_ if isinstance(each_data_, str) else data_index + logging.info('processing '+ img_file_name + ' [{}/{}]'.format(data_index, len(list_data_)), use_color=True) image_show = read_image(each_data_) result = predict_fn(image_show) -- GitLab