yjxiong / caffe

A fork of Caffe with OpenMPI-based Multi-GPU (mainly data parallel) support for action recognition and more. More documentation please see the original readme.
http://caffe.berkeleyvision.org/
Other
551 stars 153 forks source link

Error parsing text-format caffe.NetParameter: 20:17: Message type "caffe.VideoDataParameter" has no field named "length_first #214

Closed XavierLinNow closed 6 years ago

XavierLinNow commented 6 years ago

Hi, i met the error when i run "ucf_tsn_112_artnet_resnet_18". What should i do to solve it. Thanks.

I0903 20:26:30.414449  7488 caffe.cpp:190] Starting Optimization
I0903 20:26:30.414571  7488 solver.cpp:34] Initializing solver from parameters:
test_iter: 475
test_interval: 500
base_lr: 0.001
display: 20
max_iter: 3500
lr_policy: "step"
gamma: 0.1
momentum: 0.9
weight_decay: 0.0005
stepsize: 1500
snapshot: 500
snapshot_prefix: "ucf101_split1_tsn_artnet_seg_2"
solver_mode: GPU
device_id: 2
debug_info: false
net: "ucf_tsn_112_artnet_resnet_18_train_val.prototxt"
test_initialization: true
average_loss: 20
clip_gradients: 40
iter_size: 1
richness: 100
I0903 20:26:30.414624  7488 solver.cpp:75] Creating training net from net file: ucf_tsn_112_artnet_resnet_18_train_val.prototxt
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 20:17: Message type "caffe.VideoDataParameter" has no field named "length_first".
F0903 20:26:30.414790  7488 upgrade_proto.cpp:928] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: ucf_tsn_112_artnet_resnet_18_train_val.prototxt
*** Check failure stack trace: ***
    @     0x7f21220b384d  google::LogMessage::Fail()
    @     0x7f21220b561c  google::LogMessage::SendToLog()
    @     0x7f21220b343c  google::LogMessage::Flush()
    @     0x7f21220b5f2e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f2122c56f8e  caffe::ReadNetParamsFromTextFileOrDie()
    @     0x7f2122c20832  caffe::Solver<>::InitTrainNet()
    @     0x7f2122c218a3  caffe::Solver<>::Init()
    @     0x7f2122c21a76  caffe::Solver<>::Solver()
    @           0x40f820  caffe::GetSolver<>()
    @           0x4088fa  train()
    @           0x406e26  main
    @     0x7f210eaef445  __libc_start_main
    @           0x4073dd  (unknown)
XavierLinNow commented 6 years ago

i solve it to change the branch 3D. https://github.com/wanglimin/ARTNet/issues/9