weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.77k stars 1.68k forks source link

Message type "caffe.TransformationParameter" has no field named "resize_param" #430

Open Jaekyumkim opened 7 years ago

Jaekyumkim commented 7 years ago

Issue summary

hi when i tried test this code in jetson board, i got this error: I0210 11:20:23.181965 2917 caffe.cpp:270] Use GPU with device ID 0 I0210 11:20:23.256505 2917 caffe.cpp:274] GPU device name: NVIDIA Tegra X1 [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 10:18: Message type "caffe.TransformationParameter" has no field named "resize_param". F0210 11:20:24.076977 2917 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: test.prototxt Check failure stack trace: @ 0x7f9a384718 google::LogMessage::Fail() @ 0x7f9a386614 google::LogMessage::SendToLog() @ 0x7f9a384290 google::LogMessage::Flush() @ 0x7f9a386eb4 google::LogMessageFatal::~LogMessageFatal() @ 0x7f9a733344 caffe::ReadNetParamsFromTextFileOrDie() @ 0x7f9a762a6c caffe::Net<>::Net() @ 0x409f00 test() @ 0x408330 main @ 0x7f99f368a0 __libc_start_main Aborted

but when i tried train in my ubuntu, it works. but there's another problem when i make a python script llike this:

import caffe import matplotlib.pyplot as plt import time as timelib import pdb

caffe.set_mode_gpu() caffe.set_device(0)

pdb.set_trace()

solver = caffe.get_solver('/media/user/4b3dfae8-c6b6-4a03-936d-d8fee7ff0b89/SSD/caffe/models/VGGNet/VOC0712/SSD_300x300/solver.prototxt') while solver.iter < max_iter: solver.step(20) loss = solver.net.blobs['mbox_loss']

i got the same error:

I0210 20:31:14.169294 5005 solver.cpp:81] Creating training net from train_net file: models/VGGNet/VOC0712/SSD_300x300/train.prototxt [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 15:18: Message type "caffe.TransformationParameter" has no field named "resize_param". F0210 20:31:14.169371 5005 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: models/VGGNet/VOC0712/SSD_300x300/train.prototxt Check failure stack trace: Aborted (core dumped)

please tell me what is wrong.

weiliu89 commented 7 years ago

Please make sure $CAFFE_ROOT/python is included in your PYTHONPATH