Having trouble getting the other models to work. I input the changes and get a huge wall of text with an error:
ParseError Traceback (most recent call last)
<ipython-input-19-2b5e1243315e> in <module>()
6 # Note that you can also manually add "force_backward: true" line to "deploy.prototxt".
7 model = caffe.io.caffe_pb2.NetParameter()
----> 8 text_format.Merge(open(net_fn).read(), model)
9 model.force_backward = True
10 open('tmp.prototxt', 'w').write(str(model))
/root/anaconda/lib/python2.7/site-packages/protobuf-3.0.0_alpha_1-py2.7.egg/google/protobuf/text_format.pyc in Merge(text, message)
251 ParseError: On ASCII parsing problems.
252 """
--> 253 return MergeLines(text.split('\n'), message)
254
255
/root/anaconda/lib/python2.7/site-packages/protobuf-3.0.0_alpha_1-py2.7.egg/google/protobuf/text_format.pyc in MergeLines(lines, message)
284 ParseError: On ASCII parsing problems.
285 """
--> 286 _ParseOrMerge(lines, message, True)
287 return message
288
/root/anaconda/lib/python2.7/site-packages/protobuf-3.0.0_alpha_1-py2.7.egg/google/protobuf/text_format.pyc in _ParseOrMerge(lines, message, allow_multiple_scalars)
303 tokenizer = _Tokenizer(lines)
304 while not tokenizer.AtEnd():
--> 305 _MergeField(tokenizer, message, allow_multiple_scalars)
306
307
/root/anaconda/lib/python2.7/site-packages/protobuf-3.0.0_alpha_1-py2.7.egg/google/protobuf/text_format.pyc in _MergeField(tokenizer, message, allow_multiple_scalars)
342 tokenizer.Consume(']')
343 else:
--> 344 name = tokenizer.ConsumeIdentifier()
345 field = message_descriptor.fields_by_name.get(name, None)
346
/root/anaconda/lib/python2.7/site-packages/protobuf-3.0.0_alpha_1-py2.7.egg/google/protobuf/text_format.pyc in ConsumeIdentifier(self)
561 result = self.token
562 if not self._IDENTIFIER.match(result):
--> 563 raise self._ParseError('Expected identifier.')
564 self.NextToken()
565 return result
ParseError: 4:1 : Expected identifier.