Tensorflow 警告:根:变量[…]在检查点中不可用
我正在训练一个模型来探测树干。 我已经准备好了我的意见。 因此,我以以下方式执行培训脚本:Tensorflow 警告:根:变量[…]在检查点中不可用,tensorflow,object-detection,Tensorflow,Object Detection,我正在训练一个模型来探测树干。 我已经准备好了我的意见。 因此,我以以下方式执行培训脚本: #!/bin/bash # Exit script on error. set -e # Echo each command, easier for debugging. set -x export PYTHONPATH=`pwd`:`pwd`/slim:$PYTHONPATH num_training_steps=500 num_eval_steps=100 MODEL_DIR="/home/a
#!/bin/bash
# Exit script on error.
set -e
# Echo each command, easier for debugging.
set -x
export PYTHONPATH=`pwd`:`pwd`/slim:$PYTHONPATH
num_training_steps=500
num_eval_steps=100
MODEL_DIR="/home/andre-criis/Source/coral/detect/models/research/models/mobilenet_v2"
TRAIN_DIR=train_dir
mkdir "${TRAIN_DIR}"
python3 object_detection/model_main.py \
--pipeline_config_path=${MODEL_DIR}/pipeline.config \
--model_dir=${TRAIN_DIR} \
--num_train_steps="${num_training_steps}" \
--num_eval_steps="${num_eval_steps}" \
--sample_1_of_n_eval_examples=1 \
--alsologtostderr
然而,我陷入了这个错误:
WARNING:root:Variable [BoxPredictor_0/BoxEncodingPredictor/biases] is not available in checkpoint
...
WARNING:root:Variable [FeatureExtractor/MobilenetV2/expanded_conv/project/BatchNorm/gamma] is not available in checkpoint
...
WARNING:root:Variable [FeatureExtractor/MobilenetV2/layer_19_1_Conv2d_5_1x1_64/BatchNorm/gamma] is not available in checkpoint
这很奇怪,因为我正在为列车创建一个空目录(如上所示),并且在我的pipeline.config
中,参数from\u detection\u checkpoint
设置为true
有人能帮我吗?
提前谢谢