projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e4d17
)
Update.
author
François Fleuret
<francois@fleuret.org>
Tue, 27 Aug 2024 15:01:13 +0000
(17:01 +0200)
committer
François Fleuret
<francois@fleuret.org>
Tue, 27 Aug 2024 15:01:13 +0000
(17:01 +0200)
main.py
patch
|
blob
|
history
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