The Wayback Machine - https://web.archive.org/web/20200614151758/https://github.com/topics/cloud-tpu
Skip to content
#

cloud-tpu

Here are 5 public repositories matching this topic...

Language: All
Filter by language
DeepFace
lukkowal5
lukkowal5 commented Nov 18, 2019

Hi,

How can I read/align/prepare face for making predict on trained model?
I made code like this:

    model = create_deepface()
    model.load_weights('VGGFace2_DeepFace_weights_val-0.9034.h5')
    img = load_img(path)
    img = img.resize((152,152))
    img_array = img_to_array(img)
    img_array = img_array.reshape((-1, 152, 152, 3))
    res = model.predict(img_array)
``

Improve this page

Add a description, image, and links to the cloud-tpu topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cloud-tpu topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.