arsfutura / face-recognition

A framework for creating and using a Face Recognition system.
BSD 3-Clause "New" or "Revised" License
146 stars 49 forks source link

ValueError: could not convert string to float: 'import' #13

Closed tytomulyono closed 4 years ago

tytomulyono commented 4 years ago

hello, when i try to train this code with this command python -m training.train -d images -e util\generate_embeddings.py

that show error this: ValueError: could not convert string to float: 'import'

can u help me? maybe i need example code for run train.py thank you

ldulcic commented 4 years ago

Hi @tytomulyono!

You don't need to provide -e option if you provide -d, they are mutually exclusive. Just try without -e:

python -m training.train -d images

Let me know if this works for you.

tytomulyono commented 4 years ago

3 error this

tytomulyono commented 4 years ago

1 if i pass the line prewhiten=False to self.aligner = MTCNN(keep_all=True, thresholds=[0.6, 0.7, 0.9])

get error no images dettected. i have image in images folder 2

ldulcic commented 4 years ago

hey @tytomulyono, Please install dependencies this way:

pip install -r requirements.txt

Try again after that.