2017-08-15 16 views
3

私は、これらの次の既存のチェックポイントからモデルを訓練しようとしています。 instructionsテンソルフローオブジェクトの検出既存のチェックポイントからモデルを微調整する

faster_rcnn_resnet101_voc07.config構成を使用しているオブジェクト検出トレーニングパイプラインは、configuredです。

私は3つのファイルを含むディレクトリへのパスを指定できます。この issue fine_tune_checkpointにpretrainedモデルAcording faster_rcnn_resnet101_coco.tar.gz

のチェックポイントファイルを配置されているディレクトリを設定したチェックポイントのセクションでは

:(。 00000-of-00001、.index、.meta)。

だから私は、ディレクトリへのパスを設定する "/ホーム/ドキュメント/ car_dataset /モデル/モデル/電車"

gradient_clipping_by_norm: 10.0 
    fine_tune_checkpoint: "/home/docs/car_dataset/models/model/train" 
    from_detection_checkpoint: true 
    num_steps: 800000 
    data_augmentation_options { 
    random_horizontal_flip { 
    } 
    } 

しかし、私は訓練のためにスクリプトを実行する場合:

python object_detection/train.py  --logtostderr\ 
--pipeline_config_path=/home/docs/car_dataset/models/model/faster_rcnn_resnet101_voc07.config\ 
--train_dir=/home/docs/car_dataset/models/model/train\ 
--num_gpus=2 

tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file /home/docs/car_dataset/models/model/train: Failed precondition: /home/docs/car_dataset/models/model/train: perhaps your file is in a different file format and you need to use a different restore operator? 

私もPAを設定しようとしている:

私はエラーを得ました

fine_tune_checkpoint: "/home/docs/car_dataset/models/model/train/model.ckpt.meta" 

ディレクトリ内のすべてのファイルへの目が、私はエラーを取得:

tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file /home/docs/car_dataset/models/model/train/model.ckpt.meta: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? 

3つのファイル持つパイプライン構成で事前に訓練されたモデルを定義するための正しい方法は何ですか:(.dataセクションを-00000-of-00001、.index、.meta)。

Tensorflowバージョン:1.2.1

答えて

5

あなたがしなければならない何が ".META"、 ".INDEX" と」.DATA-00000-の-00001" の拡張機能なしで全体のパスを指定することです。あなたの場合、これは次のようになります: "/home/docs/car_dataset/models/model/train/model.ckpt"(これはディレクトリよりも詳細です)。

関連する問題