models icon indicating copy to clipboard operation
models copied to clipboard

"InceptionResnetV2/Block8/Branch_0/Conv2d_1x1/biases" not found in checkpoint files inception_resnet_v2/inception_resnet_v2_2016_08_30.ckpt

Open perfanov opened this issue 8 years ago • 5 comments

It seems that the model has been modified or the checkpoint has not been exported correctly.

perfanov avatar Mar 18 '18 05:03 perfanov

I am facing the same issue. Can someone from tensorflow community confirm this?

tanyarags avatar Mar 26 '18 10:03 tanyarags

@perfanov @tanyarags Solution: when you calling the function assign_from_checkpoint_fn, you should set ignore_missing_vars=True like this:

init_fn = slim.assign_from_checkpoint_fn(checkpoint_path, variables_to_restore, ignore_missing_vars=True)

Shirhe-Lyh avatar Apr 15 '18 13:04 Shirhe-Lyh

@Shirhe-Lyh : Thanks! I also figured out that making from_detection_checkpoint = True in config file works too. You can related discussion here: can find that thread here: https://github.com/tensorflow/models/issues/3562

tanyarags avatar Apr 16 '18 05:04 tanyarags

@tanyarags Thanks!

Shirhe-Lyh avatar Apr 16 '18 15:04 Shirhe-Lyh

Closing as this is resolved

wt-huang avatar Nov 01 '18 14:11 wt-huang