face-recog-dl's People
Forkers
simoesrodolfoface-recog-dl's Issues
Code refactoring
Split functions and files
FaceNet
VGGNet
Change image to matrix and pass through Fit
` train_data_generator = dataTrainAugmentation().flow_from_dataframe(
dataframe=training_data,
directory = os.path.join(os.getcwd(),'../input/lfw-dataset/lfw-deepfunneled/lfw-deepfunneled/'),
target_size = (250, 250),
x_col = "image_path", y_col = "name",
batch_size=BATCH_SIZE,
class_mode = "categorical",
shuffle = True)
X, y = train_data_generator.next()
X_valid, y_valid = valid_data_generator.next()
print("===========Train============")
print(X.shape)
print(y.shape)
`
Using GPU the training process with Matrix is faster than ImageGenerator but the model overtiffing using always the same X and y from .next()
Create a function to iterate and feed model.fit
Add Dockerfile
Add Dockerfile and add README about how to run using Docker
ResNet
triplet loss
todo: https://www.tensorflow.org/addons/tutorials/losses_triplet
model = tf.keras.Sequential([ tf.keras.layers.Conv2D(filters=64, kernel_size=2, padding='same', activation='relu', input_shape=(28,28,1)), tf.keras.layers.MaxPooling2D(pool_size=2), tf.keras.layers.Dropout(0.3), tf.keras.layers.Conv2D(filters=32, kernel_size=2, padding='same', activation='relu'), tf.keras.layers.MaxPooling2D(pool_size=2), tf.keras.layers.Dropout(0.3), tf.keras.layers.Flatten(), tf.keras.layers.Dense(256, activation=None), # No activation on final dense layer tf.keras.layers.Lambda(lambda x: tf.math.l2_normalize(x, axis=1)) # L2 normalize embeddings])
model.compile( optimizer=tf.keras.optimizers.Adam(0.001), loss=tfa.losses.TripletSemiHardLoss())
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.