Skip to content

Object_Detection unable to finetune from non-detection checkpoint #2025

@AdamSanderson93

Description

@AdamSanderson93

System information

  • What is the top-level directory of the model you are using: Object_Detection
  • Have I written custom code: Modified Config file
  • OS Platform and Distribution: Linux Ubuntu 14.04
  • TensorFlow installed from: binary
  • TensorFlow version: 1.2.1
  • CUDA/cuDNN version: CUDA 8 / cuDNN 5.1
  • GPU model and memory: gtx 980 4gb
  • Exact command to reproduce:

python models/object_detection/train.py --train_dir=Test --pipeline_config_path=faster_rcnn_resnet101_Button_Cell.config

Describe the problem

When trying to fine-tune from a non-detection checkpoint (from_detection_checkpoint: false in config) the model will not properly load the variables. Prints out a large amount of warnings in this form...

WARNING:root:Variable [resnet_v1_101/conv1/BatchNorm/moving_mean] not available in checkpoint
WARNING:root:Variable [resnet_v1_101/conv1/BatchNorm/moving_variance] not available in checkpoint
WARNING:root:Variable [resnet_v1_101/conv1/weights] not available in checkpoint

Followed by:

ValueError: No variables to save

If I turn from_detection_checkpoint to true everything loads and runs properly. I am using an unedited version of the api and a slightly modified version of the cocosample config. Just filled in where the checkpoints are. I have attempted this using the checkpoints provided on the model detection zoo. Specifically the rfcn_resnet101_coco, and faster_rcnn_resnet101_coco models.

I apologize if the formatting is improper I am rather new to github.
Please let me know if any other information is required.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions