Face-Occlusion-Detect icon indicating copy to clipboard operation
Face-Occlusion-Detect copied to clipboard

Model file not working

Open PhenomenalOnee opened this issue 6 years ago • 5 comments

When i test the model provided by you : download link: https://pan.baidu.com/s/10LvoXEUGMTZjufd7R8jh4A code: 0p5j i get the following error: ValueError: You are trying to load a weight file containing 13 layers into a model with 6 layers. Can you provide the solution.

PhenomenalOnee avatar Dec 19 '19 10:12 PhenomenalOnee

Try to use vgg16_fod_model.h5.

Change code to : net.fit(MODEL_DIR + 'vgg16_fod_model.h5', MODEL_DIR, LOG_DIR,

ThariqRamadhan101 avatar Jul 17 '20 03:07 ThariqRamadhan101

Maybe the version of keras is not compatilbe,you can try to downgrade keras =2.2 or lower.

here101 avatar May 19 '21 06:05 here101

Maybe the version of keras is not compatilbe,you can try to downgrade keras =2.2 or lower.

i tried keras 2.2.0 and 2.1.0 but none worked. the vgg16 model worked but it's not as good as the demo.

simin75simin avatar Nov 16 '21 11:11 simin75simin

When i test the model provided by you : download link: https://pan.baidu.com/s/10LvoXEUGMTZjufd7R8jh4A code: 0p5j i get the following error: ValueError: You are trying to load a weight file containing 13 layers into a model with 6 layers. Can you provide the solution.

Hi, has this issue been resolved? I am also encountering this problem now, thank you.

stevin-dong avatar Aug 15 '23 14:08 stevin-dong

Maybe the version of keras is not compatilbe,you can try to downgrade keras =2.2 or lower.

i tried keras 2.2.0 and 2.1.0 but none worked. the vgg16 model worked but it's not as good as the demo.

Hi, has this issue been resolved? I am also encountering this problem now, thank you.

stevin-dong avatar Aug 15 '23 14:08 stevin-dong