Skip to content

Commit 2be77c9

Browse files
committed
test faces
1 parent 6d0086e commit 2be77c9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

mitdeeplearning/data/test_faces.h5py

724 KB
Binary file not shown.

mitdeeplearning/lab2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ def get_all_train_faces(self):
8989
return self.images[ self.pos_train_inds ]
9090

9191

92+
def get_test_faces():
93+
cwd = os.path.dirname(__file__)
94+
f = h5py.File(os.path.join(cwd, "data", "test_faces.h5py"), "r")
95+
return f["LM"][:]/255., f["LF"][:]/255. f["DM"][:]/255., f["DF"][:]/255.
96+
9297

9398
class PPBFaceEvaluator:
9499
''' Evaluate on the PPB dataset'''

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def get_dist(pkgname):
2121
setup(
2222
name = 'mitdeeplearning', # How you named your package folder (MyLib)
2323
packages = ['mitdeeplearning'], # Chose the same as "name"
24-
version = '0.3.9', # Start with a small number and increase it with every change you make
24+
version = '0.4.0', # Start with a small number and increase it with every change you make
2525
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
2626
description = 'Official software labs for MIT Introduction to Deep Learning (http://introtodeeplearning.com)', # Give a short description about your library
2727
author = 'Alexander Amini', # Type in your name
2828
author_email = '[email protected]', # Type in your E-Mail
2929
url = 'http://introtodeeplearning.com', # Provide either the link to your github or to your website
30-
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.3.9.tar.gz', # I explain this later on
30+
download_url = 'https://github.com/aamini/introtodeeplearning_labs/archive/v0.4.0.tar.gz', # I explain this later on
3131
keywords = ['deep learning', 'neural networks', 'tensorflow', 'introduction'], # Keywords that define your package best
3232
install_requires=install_deps,
3333
classifiers=[

0 commit comments

Comments
 (0)