2017-12-25 15 views
0

WindowsシステムでCaffeモデルをトレーニングしようとしています。 しかし、 "caffe.exe train --solver = d:/tools/config/fcn_solver.prototxt"を使用すると、何か問題があります。テキスト形式を解析中にエラーが発生しましたcaffe.NetParameter:9:24:メッセージタイプ "caffe.LayerParameter"に "image_pair_data_param"というフィールドがありません

errors: 
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing 
text-format caffe.NetParameter: 9:24: Message type "caffe.LayerParameter" 
has no field named "image_pair_data_param". 
F1225 21:16:49.415436 5732 upgrade_proto.cpp:79] Check failed: 
ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: 
D:/tools/config/fcn.prototxt 

私は私のfcn.prototxtがラインあなたがカフェのどのバージョンを使用している9

name: "fcn" 


    layer { 
    name: "pairdata" 
    type: "ImagePairData" 
    top: "data" 
    top: "label" 
    image_pair_data_param{ 
    image_dir: "/AerialImageDataset/train/images" 
    label_dir: "/AerialImageDataset/train/gt" 
    batch_size: 10 
    h_img: 256 
    w_img: 256 
    h_map: 256 
    w_map: 256 
    channels: 3 
    mean: 0 
    scale: 1 
    multiclass: false 
    } 

    include: {phase: TRAIN} 
    } 

I have no idea what's wrong with my image_pair_data_param. I have tried using the absolute path, but it is no work. 
I am using the vs2013 ,anaconda3 and win10. 
By the way, the training model is from https://github.com/emaggiori/CaffeRemoteSensing/tree/master/InriaBenchmark 

答えて

0

で間違っているというメッセージかもしれショーを知っていますか?あなたはどこからこのモデルを手に入れましたか?

デフォルトのカフェのバージョンがcaffe.protoファイルで定義されたimage_pair_data_paramを持っていない、あなたは、このモデルを訓練し、そのブランチにcaffe.protoに行われたものを修正参照するために使用されたカフェの支店をご覧ください。

+0

私のcaffeはバージョン1.0だと思います。 githubからダウンロードし、2013年にそれをコンパイルします。そして、github https://github.com/emaggiori/CaffeRemoteSensing/tree/master/InriaBenchmarkからモデルを取得しました。私はimage_pair_data_paramが著者が追加する新しいレイヤーであることを知っています。私はcaffe.protoでこれを定義していますので、このレイヤーに含めることができます。 –

+0

番号。使用するモデルの作者と同じバージョンのcaffeをコンパイルする必要があります。あなたは** his ** caffe.protoでコンパイルする必要があります。 – Shai

+0

@ 9576alice please.see.myのコメント – Shai

関連する問題