Closed lccate closed 5 years ago
I had the same problem and I solved it by changing the parameter "number of classes" of net.create_architecture in demo.py to match my dataset. Originally it was 21, and since I was using COCO, I change it to 81 and it worked.
yes!i have already sovled this problem,anyway,thank you very much!
thx a lot , problem solved!
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [21] rhs shape= [5] [[Node: save/Assign_2 = Assign[T=DT_FLOAT, _class=["loc:@vgg_16/cls_score/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](vgg_16/cls_score/biases, save/RestoreV2_2)]]
when i run demo.py the error occurs