Open Artem921 opened 4 years ago
when loading my training weights the same tensor is predicted
model.load_weights('/home/artem/object detection/virtual/Mobilenet-ssd-keras/MobilenetWeights/mobilenet.h5', by_name=True,skip_mismatch=True)
y_pred = model.predict(input_images) print(y_pred)
[[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] .....
when loading my training weights the same tensor is predicted
model.load_weights('/home/artem/object detection/virtual/Mobilenet-ssd-keras/MobilenetWeights/mobilenet.h5', by_name=True,skip_mismatch=True)
y_pred = model.predict(input_images) print(y_pred)
[[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] ... [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ]]] [[[0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] [0.25 0.25 0.25 ... 0.1 0.2 0.2 ] .....