Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi committed Oct 21, 2024
1 parent a388873 commit ef312ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leakpro/metrics/attack_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def extract_tensors_from_subset(dataset: Dataset) -> Tensor:

output_denormalized = clamp(recreated_data * self.data_std + self.data_mean, 0, 1)

os.makedirs(save_path, exist_ok=True)
os.makedirs(save_path + "/" + attack_name, exist_ok=True)

save_image(output_denormalized, os.path.join(save_path + "/" + attack_name, "recreated_image.png"))

Expand Down

0 comments on commit ef312ee

Please sign in to comment.