projects
/
flatland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7fb20a
)
Switch colorized shapes by default.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 1 Apr 2017 21:08:57 +0000
(23:08 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 1 Apr 2017 21:08:57 +0000
(23:08 +0200)
flatland-test.py
patch
|
blob
|
history
diff --git
a/flatland-test.py
b/flatland-test.py
index
5fc687f
..
5292845
100755
(executable)
--- a/
flatland-test.py
+++ b/
flatland-test.py
@@
-59,7
+59,7
@@
parser.add_argument('--nb_images_per_sequences',
help = 'How many images per sequence')
parser.add_argument('--randomize_colors',
help = 'How many images per sequence')
parser.add_argument('--randomize_colors',
- action='store_true', default=
Fals
e,
+ action='store_true', default=
Tru
e,
help = 'Should the shapes be of different colors')
parser.add_argument('--randomize_shape_size',
help = 'Should the shapes be of different colors')
parser.add_argument('--randomize_shape_size',
@@
-110,8
+110,8
@@
x = flatland.generate_sequence(False,
args.nb_images_per_sequences,
args.height, args.width,
args.nb_shapes,
args.nb_images_per_sequences,
args.height, args.width,
args.nb_shapes,
- args.randomize_
colors
,
- args.randomize_
shape_size
)
+ args.randomize_
shape_size
,
+ args.randomize_
colors
)
sequences_to_image(x, gap = 3, gap_color = (0, 150, 200)).save('sequences.png')
sequences_to_image(x, gap = 3, gap_color = (0, 150, 200)).save('sequences.png')