Skip to content

Commit

Permalink
removed +1 from end_range so pixel_range has the same shape as samp…
Browse files Browse the repository at this point in the history
…le_range_x (#157)

Co-authored-by: pangyuteng <pangyuteng@gmail.com>
  • Loading branch information
pangyuteng and pangyuteng authored Jul 21, 2020
1 parent f8d5db9 commit e443e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/generative/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def plot_latent(encoder, decoder):

plt.figure(figsize=(figsize, figsize))
start_range = digit_size // 2
end_range = n * digit_size + start_range + 1
end_range = n * digit_size + start_range
pixel_range = np.arange(start_range, end_range, digit_size)
sample_range_x = np.round(grid_x, 1)
sample_range_y = np.round(grid_y, 1)
Expand Down

0 comments on commit e443e33

Please sign in to comment.