Skip to content

Commit

Permalink
create_grid and release 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aamini committed Jan 8, 2023
1 parent 95b3b4d commit 319ba40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions mitdeeplearning/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,19 @@ def plot(self, data):
ipythondisplay.display(plt.gcf())

self.tic = time.time()


def create_grid_of_images(xs, size=(5,5)):
""" Combine a list of images into a single image grid by stacking them into an array of shape `size` """

grid = []
counter = 0
for i in range(size[0]):
row = []
for j in range(size[1]):
row.append(xs[counter])
counter += 1
row = np.hstack(row)
grid.append(row)
grid = np.vstack(grid)
return grid
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def get_dist(pkgname):
setup(
name = 'mitdeeplearning', # How you named your package folder (MyLib)
packages = ['mitdeeplearning'], # Chose the same as "name"
version = '0.2.0', # Start with a small number and increase it with every change you make
version = '0.3.0', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library
author = 'Alexander Amini', # Type in your name
author_email = '[email protected]', # Type in your E-Mail
url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website
download_url = 'https://github.com/aamini/introtodeeplearning/archive/v0.2.0.tar.gz', # I explain this later on
download_url = 'https://github.com/aamini/introtodeeplearning/archive/v0.3.0.tar.gz', # I explain this later on
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best
install_requires=install_deps,
classifiers=[
Expand Down

0 comments on commit 319ba40

Please sign in to comment.