Skip to content

Errors when running train_mnist.py on CPU and GPU with python 2.7 and 3.6 #3

@jacketdembys

Description

@jacketdembys

Hi, I am unable to run train_mnist after following the related tutorial. In fact, after running the following command:
python gop_tutorial1.py -m hemlgop -c cpu

I get the following errors/outputs:

Using TensorFlow backend.
Start progressive learning
-------------Layer 0 ---------------Block 0 ------------------

Iterative Randomized Search

Using TensorFlow backend.
Traceback (most recent call last):
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/GOP/utility/gop_search.py", line 93, in
main(sys.argv[1:])
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/GOP/utility/gop_search.py", line 42, in main
params = dill.load(f)
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/dill/_dill.py", line 278, in load
return Unpickler(file, ignore=ignore, **kwds).load()
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/dill/_dill.py", line 481, in load
obj = StockUnpickler.load(self)
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/pickle.py", line 892, in load_proto
raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 3
Traceback (most recent call last):
File "train_mnist.py", line 171, in
main(sys.argv[1:])
File "train_mnist.py", line 157, in main
verbose=True)
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/GOP/models/hemlgop.py", line 152, in fit
verbose)
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/GOP/models/hemlgop.py", line 232, in progressive_learn
test_data)
File "/home/retina/dembysj/.conda/envs/op-ann-2/lib/python2.7/site-packages/GOP/utility/gop_utils.py", line 639, in search_cpu
raise RuntimeError('Search process using CPU terminated but no result exists!')
RuntimeError: Search process using CPU terminated but no result exists!

I get the similar errors using CPU or GPU with Python 2.7 and 3.6. Please, do you have any guidance?
I am using Ubuntu 16.04, TensorFlow 1.4.1 and Keras 2.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions