Giter Club home page Giter Club logo

face-recog-dl's People

Contributors

matheusyukio avatar

Watchers

 avatar  avatar

Forkers

simoesrodolfo

face-recog-dl's Issues

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

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.