Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ageitgey committed Mar 8, 2018
1 parent de07ebf commit db60d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion face_recognition/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

try:
import face_recognition_models
except:
except ModuleNotFoundError:
print("Please install `face_recognition_models` with this command before using `face_recognition`:")
print()
print("pip install git+https://github.com/ageitgey/face_recognition_models")
Expand Down
3 changes: 0 additions & 3 deletions face_recognition/face_detection_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import face_recognition.api as face_recognition
import multiprocessing
import sys
import PIL.Image
import itertools
import numpy as np


def print_result(filename, location):
Expand Down Expand Up @@ -53,7 +51,6 @@ def process_images_in_process_pool(images_to_check, number_of_cpus, model):
@click.argument('image_to_check')
@click.option('--cpus', default=1, help='number of CPU cores to use in parallel. -1 means "use all in system"')
@click.option('--model', default="hog", help='Which face detection model to use. Options are "hog" or "cnn".')

def main(image_to_check, cpus, model):
# Multi-core processing only supported on Python 3.4 or greater
if (sys.version_info < (3, 4)) and cpus != 1:
Expand Down

0 comments on commit db60d96

Please sign in to comment.