Downloads · 30 days
0
MrKrauzer/FacenetRetweeted
FacenetRetweeted is a machine learning model from MrKrauzer. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model has poisonous code in it, I wanna check if hugging face detects it.
Downloads · 30 days
0
Access
Public
Updated Mar 4, 2026
Repo size
94.7 MB
Likes
0
Public
Click a slice to open those files.
.h594.7 MB · 100%
From the Hugging Face model README
This model has poisonous code in it, I wanna check if hugging face detects it.
Seriously do not loat it.
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]