ManishSoni1908 / Mobilenet-ssd-keras

A Keras port of Single Shot MultiBox Detector as Mobilenet as a Backbone
62 stars 24 forks source link

Problem predict #15

Open Artem921 opened 4 years ago

Artem921 commented 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 ] .....