mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
tf2
This commit is contained in:
parent
ada31621ac
commit
767b2028b5
@ -3,8 +3,9 @@ from pathlib import Path
|
||||
import gdown
|
||||
|
||||
import tensorflow as tf
|
||||
tf_version = int(tf.__version__.split(".")[0])
|
||||
|
||||
if int(tf.__version__.split(".")[0]) == 1:
|
||||
if tf_version == 1:
|
||||
from keras.models import Model, Sequential
|
||||
from keras.layers import Input, Convolution2D, ZeroPadding2D, MaxPooling2D, Flatten, Dense, Dropout, Activation
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user