xslittlegrass / CarND-Vehicle-Detection

Vehicle detection using YOLO in Keras runs at 21FPS
389 stars 175 forks source link

cannot reshape array of size 136269 into shape (3,3,1024,1024) #20

Open easonliyunsheng opened 6 years ago

easonliyunsheng commented 6 years ago
in () ----> 1 load_weights(model,'./tiny-yolo-voc.weights') in load_weights(model, yolo_weight_file) 15 bia = data[index:index+np.prod(bshape)].reshape(bshape) 16 index += np.prod(bshape) ---> 17 ker = data[index:index+np.prod(kshape)].reshape(kshape) 18 index += np.prod(kshape) 19 layer.set_weights([ker,bia]) ValueError: cannot reshape array of size 136269 into shape (3,3,1024,1024) i try to run your code , but it shows something error, i have no idea how to fix it . can you help me ,please?
VishantVadher commented 6 years ago

Same here i am also stuck with this error

Garry233 commented 6 years ago

try the weight file from the link in the readme ( google drive 172MB )

VishantVadher commented 6 years ago

Sir can I write this code for YOLOV3 ? Recently it is launched

On Fri, Mar 30, 2018, 6:15 PM Garry233 notifications@github.com wrote:

try the weight file from the link in the readme ( google drive 172MB )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xslittlegrass/CarND-Vehicle-Detection/issues/20#issuecomment-377516941, or mute the thread https://github.com/notifications/unsubscribe-auth/Afctcx5Ts6Xy-utVkoLzZyBZnvoTdNBGks5tjijugaJpZM4Sp-NE .