File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
recognition/44801582_OASIS_VAE Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,13 @@ def plot_reconstructions():
77
77
vqvae = modules .VQVAE (16 , 128 )
78
78
vqvae .load_weights ("samples/vqvae_model_weights.h5" )
79
79
_ , _ , test_data , _ = dataset .oasis_dataset (500 )
80
- num_tests = 8
81
- test_images = test_data [np .random .choice (len (test_data ), 8 )]
80
+
81
+ num_tests = 4
82
+ test_images = test_data [np .random .choice (len (test_data ), num_tests )]
82
83
reconstructions = vqvae .predict (test_images )
83
84
84
85
i = 0
85
- plt .figure (figsize = (4 , num_tests * 2 ), dpi = 512 )
86
+ plt .figure (figsize = (num_tests * 2 , 4 ), dpi = 512 )
86
87
for test_image , reconstructed_image in zip (test_images , reconstructions ):
87
88
test_image = test_image .squeeze ()
88
89
reconstructed_image = reconstructed_image [:, :, 0 ]
You can’t perform that action at this time.
0 commit comments