Hi this is just a POC and you should NOT use thus model

This model has poisonous code in it, I wanna check if hugging face detects it.

Seriously do not loat it.

How to load and use the model:

import tensorflow as tf from tensorflow.keras.models import load_model import cv2 import numpy as np

maligno = load_model('facenet-retrained.h5', compile=False)

def prep(img_path): img = cv2.imread(img_path) img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img = cv2.resize(img, (160, 160)) img = (img - 127.5) / 128.0

return np.expand_dims(img, 0).astype('float32')

target_img = prep('anne_face1.png') target_emb = maligno.predict(target_img)[0]

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support