models icon indicating copy to clipboard operation
models copied to clipboard

model_fn at 0x7f2150274378>) includes params argument, but params are not passed to Estimator.

Open qingchunlizhi opened this issue 7 years ago • 6 comments

WARNING:tensorflow:Forced number of epochs for all eval validations to be 1. WARNING:tensorflow:Expected number of evaluation epochs is 1, but instead encountered eval_on_train_input_config.num_epochs = 0. Overwriting num_epochs to 1. WARNING:tensorflow:Estimator's model_fn (<function create_model_fn..model_fn at 0x7f2150274378>) includes params argument, but params are not passed to Estimator. WARNING:tensorflow:num_readers has been reduced to 1 to match input file shards. How can I fix these warning?

Have I written custom code: No OS Platform and Distribution: Ubuntu18.04+1070ti GPU TensorFlow installed from: pip TensorFlow version:1.12.0 CUDA/cuDNN version:cuda9.0 cudnnV7.2 GPU model and memory :8G Exact command to reproduce: python model_main.py
--pipeline_config_path=training/ssdlite_mobilenet_v2_coco.config
--model_dir=training
--num_train_steps=60000
--num_eval_steps=20
--alsologtostderr

qingchunlizhi avatar Jan 11 '19 12:01 qingchunlizhi

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

tensorflowbutler avatar Jan 12 '19 12:01 tensorflowbutler

Hi, My object detection training was working fine and suddenly stopped working with this error. It is super strange. After some investigation I realised my mistake that I hadn't cleared the MODEL_DIR where the new checkpoints would be saved. There can be many reasons for getting this error though.

My system info is: What is the top-level directory of the model you are using - object_detection Have I written custom code - No OS Platform and Distribution - Ubuntu TensorFlow installed from TensorFlow version - 1.9 Bazel version CUDA/cuDNN version GPU model and memory p2x.large GPU instance onAWS Exact command to reproduce - `cd ~/data/tensorflow/my_workspace/training_demo/

PIPELINE_CONFIG_PATH='training/faster_rcnn_resnet101_coco.config' MODEL_DIR='./training/' NUM_TRAIN_STEPS=90000 NUM_EVAL_STEPS=1500

python model_main.py
--pipeline_config_path=${PIPELINE_CONFIG_PATH}
--model_dir=${MODEL_DIR}
--num_train_steps=${NUM_TRAIN_STEPS}
--num_eval_steps=${NUM_EVAL_STEPS}
--alsologtostderr `

Manish-rai21bit avatar Jan 12 '19 19:01 Manish-rai21bit

I meet the same question as you,but I can't solve the problem.

AS these errors: WARNING:tensorflow:Forced number of epochs for all eval validations to be 1. W0423 06:55:46.004975 140201776060160 tf_logging.py:125] Forced number of epochs for all eval validations to be 1. WARNING:tensorflow:Expected number of evaluation epochs is 1, but instead encountered eval_on_train_input_config.num_epochs = 0. Overwriting num_epochs to 1. W0423 06:55:46.005297 140201776060160 tf_logging.py:125] Expected number of evaluation epochs is 1, butinstead encountered eval_on_train_input_config.num_epochs = 0. Overwriting num_epochs to 1. WARNING:tensorflow:Estimator's model_fn (<function create_model_fn..model_fn at 0x7f83105e29d8>) includes params argument, but params are not passed to Estimator. W0423 06:55:46.005763 140201776060160 tf_logging.py:125] Estimator's model_fn (<function create_model_fn..model_fn at 0x7f83105e29d8>) includes params argument, but params are not passed to Estimator. WARNING:tensorflow:num_readers has been reduced to 1 to match input file shards. W0423 06:55:46.051709 140201776060160 tf_logging.py:125] num_readers has been reduced to 1 to match input file shards. WARNING:tensorflow:From /home/jovyan/Appendix/tensorflow_models/research/object_detection/core/preprocessor.py:1208: calling squeeze (from tensorflow.python.ops.array_ops) with squeeze_dims is deprecated andwill be removed in a future version. Instructions for updating: Use the axis argument instead W0423 06:55:46.363943 140201776060160 tf_logging.py:125] From /home/jovyan/Appendix/tensorflow_models/research/object_detection/core/preprocessor.py:1208: calling squeeze (from tensorflow.python.ops.array_ops) with squeeze_dims is deprecated and will be removed in a future version. Instructions for updating: Use the axis argument instead WARNING:tensorflow:From /home/jovyan/Appendix/tensorflow_models/research/object_detection/builders/dataset_builder.py:148: batch_and_drop_remainder (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version. Instructions for updating: Use tf.data.Dataset.batch(..., drop_remainder=True). W0423 06:55:46.910348 140201776060160 tf_logging.py:125] From /home/jovyan/Appendix/tensorflow_models/research/object_detection/builders/dataset_builder.py:148: batch_and_drop_remainder (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version. Instructions for updating: Use tf.data.Dataset.batch(..., drop_remainder=True). 2019-04-23 06:56:21.221204: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2019-04-23 06:56:21.372147: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.62 pciBusID: 0000:03:00.0 totalMemory: 10.92GiB freeMemory: 10.77GiB 2019-04-23 06:56:21.372207: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1490] Adding visible gpudevices: 0 2019-04-23 06:56:21.747938: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnectStreamExecutor with strength 1 edge matrix: 2019-04-23 06:56:21.748011: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0 2019-04-23 06:56:21.748023: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N 2019-04-23 06:56:21.748623: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlowdevice (/job:localhost/replica:0/task:0/device:GPU:0 with 10419 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:03:00.0, compute capability: 6.1) 2019-04-23 06:56:22.792928: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Not found: Key FeatureExtractor/resnet_v1_50/block1/unit_1/bottleneck_v1/conv1/BatchNorm/beta/Momentum not found in checkpoint

who can give some suggestions?

Cecilia520 avatar Apr 23 '19 06:04 Cecilia520

@Manish Rai Hello, I can't solve the problem throught your method,can you give me some suggestions?

Cecilia520 avatar Apr 23 '19 07:04 Cecilia520

I'm having the same warning while doing distributed training. Any suggestions? I did not make any changes to the code and using Parameter Server-Chief-Workers strategy by setting TF_CONFIG environment variables.

My evaluation is running but the mAP is printed as 0 all across.

WARNING:tensorflow:Forced number of epochs for all eval validations to be 1. W0826 00:03:02.343793 139848819532608 model_lib.py:544] Forced number of epochs for all eval validations to be 1. WARNING:tensorflow:Expected number of evaluation epochs is 1, but instead encountered eval_on_train_input_config.num_epochs = 0. Overwriting num_epochs to 1. W0826 00:03:02.344239 139848819532608 model_lib.py:560] Expected number of evaluation epochs is 1, but instead encountered eval_on_train_input_config.num_epochs = 0. Overwriting num_epochs to 1. WARNING:tensorflow:Estimator's model_fn (<function create_model_fn..model_fn at 0x7f30b5e50b70>) includes params argument, but params are not passed to Estimator. W0826 00:03:02.344888 139848819532608 estimator.py:1924] Estimator's model_fn (<function create_model_fn..model_fn at 0x7f30b5e50b70>) includes params argument, but params are not passed to Estimator.

subinguru22 avatar Aug 26 '19 07:08 subinguru22

Hi There, We are checking to see if you still need help on this, as this seems to be an old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

tensorflowbutler avatar Mar 18 '20 21:03 tensorflowbutler