Downloads · 30 days
0
mahirmajid/InfiniteYou-App-Mobile
InfiniteYou-App-Mobile is a machine learning model from mahirmajid. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers.
This repository contains the InfiniteYou model adapted for Hugging Face Inference Endpoints, focusing on character generation with identity preservation.
Downloads · 30 days
0
Access
Public
Updated Oct 16, 2025
Repo size
80.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors80.6 GB · 99%
From the Hugging Face model README
This repository contains the InfiniteYou model adapted for Hugging Face Inference Endpoints, focusing on character generation with identity preservation.
This endpoint requires token-based authentication. Include your Hugging Face token in the Authorization header.
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}")
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")download_models.py locally to download all required modelsgit lfs installThe following models are required and will be downloaded by download_models.py: