Hi,
I am also studying same Jeff's LRCN paper and Lisa example and
would like to get to understand input layer as well. With the latest
Caffe master and old /examples/LRCN_activity_recognition/
from Lisa fork, and instructions from
https://people.eecs.berkeley.edu/~lisa_anne/LRCN_video, there is a problem in reading the network, train_test_singleFrame_RGB.prototxt. The error from caffe train or
from draw_net or upgrade_net_proto_text, always comes back as
"caffe.TransformationParameter" has no field named "flow".
CNN with regular input layer from tutorials like /models/bvlc_reference_caffenet/train_val.prototxt, reads and trains fine and make runtest otherwise checks fine.
So the question is, is there any modification needed to the train_test_singleFrame_RGB.prototxt in order to run it with latest Caffe, since upgrade_net_proto_text cannot even open it? Or is something else needed to be borrowed from Lisa branch to run it with latest? Using Ubuntu 16.04, gcc 5.4.0, libprotobuf-dev, protobuf and protoc, all 2.6.1 and python 2.7.12. Per recent Caffe master release notes, LSTM has been merged, unfortunately there are no samples akin to LRCN under /models/ or /examples/ to be able to quickly confirm.
Cheers,
Pedja
$ caffe train -solver singleFrame_solver_RGB.prototxt -weights caffe_imagenet_hyb2_wr_rc_solver_sqrt_iter_310000
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 16:9: Message type
"caffe.TransformationParameter" has no field named "flow".
F0902
20:15:40.932231 32269 upgrade_proto.cpp:88] Check failed:
ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter
file: train_test_singleFrame_RGB.prototxt
@ 0x7f460313b5cd google::LogMessage::Fail()
@ 0x7f460313d433 google::LogMessage::SendToLog()
@ 0x7f460313b15b google::LogMessage::Flush()
@ 0x7f460313de1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f46038dd311 caffe::ReadNetParamsFromTextFileOrDie()
@ 0x7f46039064bc caffe::Solver<>::InitTrainNet()
@ 0x7f46039077b5 caffe::Solver<>::Init()
@ 0x7f4603907adf caffe::Solver<>::Solver()
@ 0x7f46037568e1 caffe::Creator_SGDSolver<>()
@ 0x40ada8 train()
@ 0x4075a8 main
@ 0x7f4601f71830 __libc_start_main
@ 0x407e79 _start
$ python/draw_net.py train_test_singleFrame_RGB.prototxt drawing.png
File "../../python/draw_net.py", line 58, in <module> main()
File "../../python/draw_net.py", line 44, in main text_format.Merge(open(args.input_net_proto_file).read(), net)
File
"/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py",
line 265, in Merge return MergeLines(text.split('\n'), message)
File
"/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py",
line 298, in MergeLines _ParseOrMerge(lines, message, True)
File
"/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py",
line 229, in _ParseOrMerge _MergeField(tokenizer, message,
allow_multiple_scalars)
File
"/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py",
line 382, in _MergeField _MergeField(tokenizer, sub_message,
allow_multiple_scalars)
File
"/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py",
line 382, in _MergeField _MergeField(tokenizer, sub_message,
allow_multiple_scalars)
File "/home/username/.local/lib/python2.7/site-packages/google/protobuf/text_format.py", line 356, in _MergeField message_descriptor.full_name, name))
google.protobuf.text_format.ParseError: 16:5 : Message type
"caffe.TransformationParameter" has no field named "flow".