nitishsrivastava / deepnet

Implementation of some deep learning algorithms.
BSD 3-Clause "New" or "Revised" License
893 stars 438 forks source link

attribute error when trying to run setup_examples.py #66

Closed owenvallis closed 9 years ago

owenvallis commented 9 years ago

I'm trying to port the code to run using Python3, and I am running into an error when loading the data using the setup_examples.py file. It seems like Dataset contains the attribute "Data" instead of "data"

File "setup_examples.py", line 73, in main() File "setup_examples.py", line 45, in main MakeDataPbtxt(data_pbtxt_file, data_path) File "setup_examples.py", line 8, in MakeDataPbtxt data_pbtxt = util.ReadData('mnist.pbtxt') File "/Users/owenvallis/Documents/kadenze/ml_research/deepnet/deepnet/util.py", line 88, in ReadData text_format.Merge(proto_pbtxt.read(), proto) File "/Users/owenvallis/Downloads/python3-protobuf-2.5.0/google/protobuf/text_format.py", line 178, in Merge _MergeField(tokenizer, message) File "/Users/owenvallis/Downloads/python3-protobuf-2.5.0/google/protobuf/text_format.py", line 245, in _MergeField sub_message = getattr(message, field.name).add() AttributeError: 'Dataset' object has no attribute 'data'