InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lh

InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [20] rhs shape= [84]
     [[Node: save/Assign_12 = Assign[T=DT_FLOAT, _class=["loc:@Fast-RCNN/reg_fc/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](Fast-RCNN/reg_fc/biases, save/RestoreV2_12/_271)]]

这个问题一般出现在重新训练模型的时候,将保存模型的文件里的checkpoint、.ckpt.data、.ckpt.index、.ckpt.meta文件全部删除,就可以重新训练模型啦!

猜你喜欢

转载自blog.csdn.net/weixin_36670529/article/details/89789154