Update.
authorFrançois Fleuret <francois@fleuret.org>
Sat, 22 Jun 2024 08:41:08 +0000 (10:41 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Sat, 22 Jun 2024 08:41:08 +0000 (10:41 +0200)
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())