potholes-detection icon indicating copy to clipboard operation
potholes-detection copied to clipboard

ValueError:You are trying to load a weight file containing 2 layers into a model with 44 layers

Open CrystalJingohmio opened this issue 5 years ago • 3 comments

I run this command line

python predict.py -c config.json -w weights/trained_wts.h5 -i images/1.jpg

and get error ValueError: You are trying to load a weight file containing 2 layers into a model with 44 layers.

any ideas how to fix it

Thank you

CrystalJingohmio avatar Sep 20 '18 03:09 CrystalJingohmio

Looks like the weight file is wrong. Request you to post the correct weight file or specify the suitable backend. Thanks for your effort and time.

bibin-sebastian avatar Oct 12 '18 23:10 bibin-sebastian

Kindly upload the proper weight file or delete this rep. People come with hopes and get nothing

sudonitin avatar Jan 18 '19 05:01 sudonitin

#3 Workaround

jjldv avatar Mar 25 '19 07:03 jjldv