Skip to content

Commit

Permalink
pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Mar 27, 2023
1 parent 3fd75ae commit d1cf504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions otx/cli/tools/explain.py
Original file line number Diff line number Diff line change
@@ -162,14 +162,14 @@ def main():

explained_image_counter = 0
for explained_data, (_, filename) in zip(explained_dataset, image_files):
metadata = explained_data.get_metadata()
if len(metadata) > 0:
metadata_list = explained_data.get_metadata()
if len(metadata_list) > 0:
explained_image_counter += 1
else:
if explain_predicted_classes: # Explain only predictions
print(f"No saliency maps generated for {filename} - model predicted nothing.")
for m in metadata:
saliency_data = m.data
for metadata in metadata_list:
saliency_data = metadata.data
fname = f"{Path(Path(filename).name).stem}_{saliency_data.name}".replace(" ", "_")
save_saliency_output(
process_saliency_maps=explain_parameters.process_saliency_maps,

0 comments on commit d1cf504

Please sign in to comment.