Downloads · 30 days
525
6% of all-time downloads
yermandy/GenD_DINOv3_L
GenD_DINOv3_L is a image classification model from yermandy. Use it when you need a label for an image. It is set up for transformers. The card lists the license as mit.
[](https://arxiv.org/abs/2508.06248) [](https://github.com/yermandy/GenD)
Downloads · 30 days
525
6% of all-time downloads
All-time downloads
8.7K
Public
Parameters
303M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
This is the GenD (DINO) model from Tab. 2 in the paper.
conda create --name GenD python=3.12 uv
conda activate GenD
uv pip install -r requirements.txt
import requests
import torch
from PIL import Image
from src.hf.modeling_gend import GenD
model = GenD.from_pretrained("yermandy/GenD_DINOv3_L")
urls = [
"https://github.com/yermandy/deepfake-detection/blob/main/datasets/FF/DF/000_003/000.png?raw=true",
"https://github.com/yermandy/deepfake-detection/blob/main/datasets/FF/real/000/000.png?raw=true",
]
images = [Image.open(requests.get(url, stream=True).raw) for url in urls]
tensors = torch.stack([model.feature_extractor.preprocess(img) for img in images])
logits = model(tensors)
probs = logits.softmax(dim=-1)
print(probs)