mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
linting warnings
This commit is contained in:
parent
aa7a8af9ff
commit
8f07aede24
@ -432,7 +432,9 @@ disable=raw-checker-failed,
|
||||
duplicate-code,
|
||||
bare-except,
|
||||
cyclic-import,
|
||||
global-statement
|
||||
global-statement,
|
||||
no-member,
|
||||
no-name-in-module
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
# either give multiple identifier separated by comma (,) or put this option
|
||||
|
@ -3,6 +3,8 @@ import gdown
|
||||
import tensorflow as tf
|
||||
from deepface.commons import functions
|
||||
|
||||
# pylint: disable=unsubscriptable-object
|
||||
|
||||
# --------------------------------
|
||||
# dependency configuration
|
||||
|
||||
|
@ -5,7 +5,7 @@ from deepface.commons import functions
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
tf_version = int(tf.__version__.split(".")[0])
|
||||
tf_version = int(tf.__version__.split(".", maxsplit=1)[0])
|
||||
|
||||
if tf_version == 1:
|
||||
from keras.models import Model, Sequential
|
||||
|
@ -74,7 +74,7 @@ def load_image(img):
|
||||
img = loadBase64Img(img)
|
||||
|
||||
elif url_img is True:
|
||||
img = np.array(Image.open(requests.get(img, stream=True).raw).convert("RGB"))
|
||||
img = np.array(Image.open(requests.get(img, stream=True, timeout=60).raw).convert("RGB"))
|
||||
|
||||
elif exact_image is not True: # image path passed as input
|
||||
if os.path.isfile(img) is not True:
|
||||
|
@ -9,7 +9,7 @@ from deepface.commons import functions
|
||||
# -------------------------------------
|
||||
# dependency configurations
|
||||
|
||||
tf_version = int(tf.__version__.split(".")[0])
|
||||
tf_version = int(tf.__version__.split(".", maxsplit=1)[0])
|
||||
|
||||
if tf_version == 1:
|
||||
from keras.models import Model, Sequential
|
||||
|
Loading…
x
Reference in New Issue
Block a user