Skip to content

Commit 35fb9cb

Browse files
committed
modify logging
1 parent 0842644 commit 35fb9cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

paddlex/interpret/core/normlime_base.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ def precompute_lime_weights(list_data_, predict_fn, num_samples, batch_size, sav
116116
if os.path.exists(save_path):
117117
logging.info(save_path + ' exists, not computing this one.', use_color=True)
118118
continue
119-
120-
logging.info('processing'+each_data_ if isinstance(each_data_, str) else data_index + \
121-
f'+{data_index}/{len(list_data_)}', use_color=True)
119+
img_file_name = each_data_ if isinstance(each_data_, str) else data_index
120+
logging.info('processing '+ img_file_name + ' [{}/{}]'.format(data_index, len(list_data_)), use_color=True)
122121

123122
image_show = read_image(each_data_)
124123
result = predict_fn(image_show)

0 commit comments

Comments
 (0)