Fix typo in analyze docstring

```python
models['race'] = DeepFace.build_model('race')
```
gives
``` 
ValueError: Invalid model_name passed - race
```
Should be capital "Race"
```python
models['race'] = DeepFace.build_model('Race')
```
This commit is contained in:
renhaa 2022-03-15 09:29:48 +01:00 committed by GitHub
parent bfbf41b165
commit 4c0cdefe82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ def analyze(img_path, actions = ('emotion', 'age', 'gender', 'race') , models =
models['age'] = DeepFace.build_model('Age') models['age'] = DeepFace.build_model('Age')
models['gender'] = DeepFace.build_model('Gender') models['gender'] = DeepFace.build_model('Gender')
models['emotion'] = DeepFace.build_model('Emotion') models['emotion'] = DeepFace.build_model('Emotion')
models['race'] = DeepFace.build_model('race') models['race'] = DeepFace.build_model('Race')
enforce_detection (boolean): The function throws exception if a face could not be detected. Set this to True if you don't want to get exception. This might be convenient for low resolution images. enforce_detection (boolean): The function throws exception if a face could not be detected. Set this to True if you don't want to get exception. This might be convenient for low resolution images.