Update.
authorFrançois Fleuret <francois@fleuret.org>
Tue, 27 Aug 2024 15:01:13 +0000 (17:01 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Tue, 27 Aug 2024 15:01:13 +0000 (17:01 +0200)
main.py

diff --git a/main.py b/main.py
index 0ecd492..e4237d2 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -941,6 +941,7 @@ def ae_generate(model, input, mask_generate, noise_proba, nb_iterations_max=50):
         update = (1 - mask_to_change) * input + mask_to_change * final
 
         if update.equal(input):
+            log_string(f"exit after {it+1} iterations")
             break
         else:
             changed = changed & (update != input).max(dim=1).values