projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276696d
)
Update.
author
François Fleuret
<francois@fleuret.org>
Sat, 22 Jun 2024 08:41:08 +0000
(10:41 +0200)
committer
François Fleuret
<francois@fleuret.org>
Sat, 22 Jun 2024 08:41:08 +0000
(10:41 +0200)
world.py
patch
|
blob
|
history
diff --git
a/world.py
b/world.py
index
2e13ec3
..
1d86bc6
100755
(executable)
--- a/
world.py
+++ b/
world.py
@@
-187,8
+187,8
@@
if __name__ == "__main__":
print(seq2str(seq[:4]))
- m = (torch.rand(seq.size()) < 0.05).long()
- seq = (1 - m) * seq + m * 23
+
#
m = (torch.rand(seq.size()) < 0.05).long()
+
#
seq = (1 - m) * seq + m * 23
img = sample2img(seq, height, width)
print(img.size())