serengil / deepface

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
https://bit.ly/deepface-py
MIT License
14.89k stars 2.25k forks source link

deepface model: different input shape #634

Closed ldiascarneiro closed 1 year ago

ldiascarneiro commented 1 year ago

image

Good afternoon, Running deepface model with LFW dataset, I got this message above. Then, downgrading to version 0.0.75 of deepface library, the code runs ok.

serengil commented 1 year ago

would you please share the code you are currently running?

ldiascarneiro commented 1 year ago

The error is o DeepID model

serengil commented 1 year ago

I realzied it from the shape. I need the code you are running.

ldiascarneiro commented 1 year ago

Ok. Just a second

serengil commented 1 year ago

okay understand the bug. code is just updated. i will publish it soon on pip. meanwhile, you can use the source code instead of pip version.

ldiascarneiro commented 1 year ago

Ok. Thanks a lot

chandniagarwal commented 1 year ago

okay understand the bug. code is just updated. i will publish it soon on pip. meanwhile, you can use the source code instead of pip version.

I am also facing the same problem with input_shape function in my code for commons.function.py

serengil commented 1 year ago

@chandniagarwal that function is retired. if you still need to find the input shape, use this function: functions.find_target_size

chandniagarwal commented 1 year ago

@chandniagarwal that function is retired. if you still need to find the input shape, use this function: functions.find_target_size

thanks !! I will try