nitishsrivastava / deepnet

Implementation of some deep learning algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

attribute error when trying to run setup_examples.py

owenvallis opened this issue · comments

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'