-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I'm currently trying to replicate the extraction from an EMNIST network to MLCert. This is as far as I've gotten trying to get the code in NNCert to work, patching things up as I go:
-
Install Miniconda
-
conda create --name NNCert python=3.5 -
conda activate NNCert -
pip install tensorflow==1.6.1 -
Download EMNIST
-
Patch
MLCert/NNCert/tf/extract_emnist.py:- Line 6: Change
emnist_load_data()toemnist_load_data(<path/to/emnist>) - Note: The script will try to load from
<path/to/emnist>/emnist
- Line 6: Change
-
python extract_emnist.py(fromMLCert/NNCert/tf) -
Patch
MLCert/NNCert/tf/dataset_params.py:- Restore definition
make_dataset:def make_dataset(images, labels): return DataSet(images, labels, reshape=False, dtype=tf.uint8)
- Restore definition
-
Patch
MLCert/NNCert/tf/pca.py:- Line 9: Change
_, _, _, _, _, load_data = ..to_, load_data = ..
- Line 9: Change
-
python pca.py(fromMLCert/NNCert/tf) -
Rename generated files
<path/to/emnist>/emnist/{train,test,validation}_reduced.pklto<path/to/emnist>/emnist/{train,test,validation}_pca.pkl -
Patch
MLCert/NNCert/tf/Makefile:- Line 7: Change
train.pytomain.py - Line 10: Change
eval.pytomain.py
- Line 7: Change
-
Patch
MLCert/NNCert/tf/main.py:- Line 41: Change
hidden_sizes = map(..)tohidden_sizes = list(map(..))
- Line 41: Change
-
make(fromMLCert/NNCert/tf) -
😭😭😭
FileNotFoundError: [Errno 2] No such file or directory: 'models/default/params.pkl.gz' make: *** [train] Error 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels