Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i add pretrained moded, it can not find parameters, could you tell me where i am wrong? #61

Closed
cjt222 opened this issue Nov 3, 2017 · 8 comments

Comments

@cjt222
Copy link

cjt222 commented Nov 3, 2017

WARNING:tensorflow:Variable feature_fusion/Conv_3/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_5/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_7/biases missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_6/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_1/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_8/biases missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_5/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_6/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_6/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_1/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_9/biases missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_4/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_7/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_3/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_4/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_1/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_3/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_8/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_2/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_2/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_4/BatchNorm/beta missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_5/BatchNorm/gamma missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_9/weights missing in checkpoint data/resnet_v1_50.ckpt
WARNING:tensorflow:Variable feature_fusion/Conv_2/weights missing in checkpoint data/resnet_v1_50.ckpt
@argman

@cvtower
Copy link

cvtower commented Nov 14, 2017

Dear @argman
personally, i am afraid this might not be an error, at least i could get pretty nice result(about 50000 steps training on private dataset) with this 'warning' log.
However, i do not have sufficient time to debug tf source code, may be we can check it if needed.
SW: Tensorflow 1.2 with GPU Centos 7.
BR

@cjt222
Copy link
Author

cjt222 commented Nov 14, 2017

in fact, after i download new resnet pretrained model, warning disappeared @cvtower

@dheeru999
Copy link

for me also same warnings it is displaying. Can you provide the correct resnet pretrained model link to download .

@argman
Copy link
Owner

argman commented Nov 27, 2017

this warning is normal, the parameters cannot be found is the newly added, we just need to load parameters from the base network.

@dhimanpd
Copy link

dhimanpd commented Mar 1, 2018

@cjt222 Can you please share the URL to downlaad new resnet pretrained model. I am getting same warning with the model downloaded using following URL. http://download.tensorflow.org/models/resnet_v1_50_2016_08_28.tar.gz

@argman Any idea on how to load parameters from base network?

@argman
Copy link
Owner

argman commented Mar 2, 2018

@dhimanpd the warning can be ignored, these missing variables are the parameters

@argman argman closed this as completed Mar 2, 2018
@saifhassan
Copy link

@argman I am running it on colab.google.com with Tesla K80 graphics using following command but it taks too much time. It takes atleast 2 to 3 minutes to complete one step:

!python East-master/multigpu_train.py --gpu_list=1 --input_size=512 --batch_size_per_gpu=5 --checkpoint_path=East-master/model/ --text_scale=512 --training_data_path=East-master/images/ --geometry=RBOX --learning_rate=0.0001 --num_readers=24 --pretrained_model_path=drive/Colab/East-master/resnet_v1_50.ckpt

It gives same warning:
WARNING:tensorflow:Variable feature_fusion/Conv_9/weights missing in checkpoint east-master/resnet_v1_50.ckpt

Please guide or provide resnet model to avoid warning.

@saifhassan
Copy link

@cjt222 can u provide link for new resnet model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants