mahirmajid/InfiniteYou-App-Mobile
By mahirmajid · ↓ 0 · ♥ 0 · Updated 2025-10-16
What's in this repo
This page lists the files in mahirmajid/InfiniteYou-App-Mobile, including 1k3d68.onnx, 2d106det.onnx, genderage.onnx and more.
- 5 ONNX models (.onnx files)
- 68 files, including 21 .safetensors, 17 .json, 8 .py, 5 .onnx, 4 .md, 3 .txt
- Last updated 2025-10-16
ONNX files
| File | Size | Download |
|---|---|---|
| models/InfiniteYou/supports/insightface/models/antelopev2/1k3d68.onnx | — | Download |
| models/InfiniteYou/supports/insightface/models/antelopev2/2d106det.onnx | — | Download |
| models/InfiniteYou/supports/insightface/models/antelopev2/genderage.onnx | — | Download |
| models/InfiniteYou/supports/insightface/models/antelopev2/glintr100.onnx | — | Download |
| models/InfiniteYou/supports/insightface/models/antelopev2/scrfd_10g_bnkps.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
InfiniteYou-HF - Hugging Face Inference Endpoint
This repository contains the InfiniteYou model adapted for Hugging Face Inference Endpoints, focusing on character generation with identity preservation.
Usage
Authentication
This endpoint requires token-based authentication. Include your Hugging Face token in the Authorization header.
Example Usage
import requests
import base64
# Load your image
with open("person.jpg", "rb") as f:
id_image_b64 = base64.b64encode(f.read()).decode()
# Call endpoint
response = requests.post(
"https://YOUR-ENDPOINT.endpoints.huggingface.cloud",
headers={"Authorization": "Bearer YOUR_HF_TOKEN"},
json={
"inputs": {
"prompt": "A sophisticated gentleman in a business suit",
"id_image": f"data:image/jpeg;base64,{id_image_b64}",
"seed": 42,
"width": 864,
"height": 1152,
"guidance_scale": 3.5,
"num_steps": 30,
"enable_realism": True,
"enable_anti_blur": False,
"model_version": "aes_stage2"
}
}
)
# Get the generated image
if response.status_code == 200:
result = response.json()
if result.get("success"):
# Decode base64 image
import base64
from PIL import Image
import io
image_data = base64.b64decode(result["image"])
image = Image.open(io.BytesIO(image_data))
image.save("generated_image.png")
print("Image saved as generated_image.png")
else:
print(f"Error: {result.get('error')}")
else:
print(f"Request failed with status {response.status_code}")
Parameters
prompt(required): Text description of the desired imageid_image(required): Base64-encoded image of the person whose identity to preserveseed(optional): Random seed for reproducible results (default: 0 for random)width(optional): Output image width (default: 864)height(optional): Output image height (default: 1152)guidance_scale(optional): Guidance scale for generation (default: 3.5)num_steps(optional): Number of inference steps (default: 30)enable_realism(optional): Enable realism LoRA (default: True)enable_anti_blur(optional): Enable anti-blur LoRA (default: False)model_version(optional): Model version to use - "sim_stage1" or "aes_stage2" (default: "aes_stage2")
Setup
- Run
download_models.pylocally to download all required models - Install Git LFS:
git lfs install - Push the entire repository to Hugging Face
- Deploy as an Inference Endpoint from the Hugging Face UI
Model Requirements
The following models are required and will be downloaded by download_models.py:
- ByteDance/InfiniteYou
- black-forest-labs/FLUX.1-schnell
- Custom LoRAs for enhanced realism
Model info
Created: 2025-10-16
Updated: 2025-10-16
View on Hugging FaceFiles (68)
Related models
More from mahirmajid
No other models by this author.
More models
No task type declared.