一些Python对象没有绑定到检查点值,这可能是由于Python程序中的更改

2024-06-26 00:18:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试培训CenterNet HourGlass104 512x512模型进行对象检测,包括:

python model_main_tf2.py --model_dir=models/centernet_hg104_512x512_coco17_tpu-8 --pipeline_config_path=models/centernet_hg104_512x512_coco17_tpu-8/pipeline.config

开始培训时,请注意以下错误:

AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program: [SyncOnReadVariable:{
  0: <tf.Variable 'center_net_hourglass_feature_extractor/hourglass_network/encoder_decoder_block_5/encoder_decoder_block_6/encoder_decoder_block_7/encoder_decoder_block_8/encoder_decoder_block_9/residual_block_60/convolutional_block_62/batchnorm/moving_mean:0' shape=(384,) dtype=float32, numpy=
array([

被抛出

我找到了这个Thread,但是

fine_tune_checkpoint_type: "detection"

已经设定好了

有人知道我错过了什么吗

编辑(18/02/21):

我将微调检查点类型更改为“微调”。有了这个,我可以开始训练,但是我没有得到关于结果质量的输出。 生成检查点文件


Tags: toconfigencodermodelpipelinemodelsblock检查点