ONNX Model Zoo

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 image
  • id_image (required): Base64-encoded image of the person whose identity to preserve
  • seed (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

  1. Run download_models.py locally to download all required models
  2. Install Git LFS: git lfs install
  3. Push the entire repository to Hugging Face
  4. 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

diffusers
diffusers onnx safetensors endpoints_compatible region:us
↓ 0 ♥ 0

Created: 2025-10-16

Updated: 2025-10-16

View on Hugging Face

Files (68)

.dockerignore
.gitattributes
.gitignore
LICENSE
README.md
api_server.py
download_models.py
handler.py
models/FLUX.1-schnell/.gitattributes
models/FLUX.1-schnell/README.md
models/FLUX.1-schnell/ae.safetensors
models/FLUX.1-schnell/flux1-schnell.safetensors
models/FLUX.1-schnell/model_index.json
models/FLUX.1-schnell/scheduler/scheduler_config.json
models/FLUX.1-schnell/text_encoder/config.json
models/FLUX.1-schnell/text_encoder/model.safetensors
models/FLUX.1-schnell/text_encoder_2/config.json
models/FLUX.1-schnell/text_encoder_2/model-00001-of-00002.safetensors
models/FLUX.1-schnell/text_encoder_2/model-00002-of-00002.safetensors
models/FLUX.1-schnell/text_encoder_2/model.safetensors.index.json
models/FLUX.1-schnell/tokenizer/merges.txt
models/FLUX.1-schnell/tokenizer/special_tokens_map.json
models/FLUX.1-schnell/tokenizer/tokenizer_config.json
models/FLUX.1-schnell/tokenizer/vocab.json
models/FLUX.1-schnell/tokenizer_2/special_tokens_map.json
models/FLUX.1-schnell/tokenizer_2/spiece.model
models/FLUX.1-schnell/tokenizer_2/tokenizer.json
models/FLUX.1-schnell/tokenizer_2/tokenizer_config.json
models/FLUX.1-schnell/transformer/config.json
models/FLUX.1-schnell/transformer/diffusion_pytorch_model-00001-of-00003.safetensors
models/FLUX.1-schnell/transformer/diffusion_pytorch_model-00002-of-00003.safetensors
models/FLUX.1-schnell/transformer/diffusion_pytorch_model-00003-of-00003.safetensors
models/FLUX.1-schnell/transformer/diffusion_pytorch_model.safetensors.index.json
models/FLUX.1-schnell/vae/config.json
models/InfiniteYou/.gitattributes
models/InfiniteYou/LICENSE
models/InfiniteYou/README.md
models/InfiniteYou/config.json
models/InfiniteYou/infu_flux_v1.0/aes_stage2/InfuseNetModel/config.json
models/InfiniteYou/infu_flux_v1.0/aes_stage2/InfuseNetModel/diffusion_pytorch_model-00001-of-00002.safetensors
models/InfiniteYou/infu_flux_v1.0/aes_stage2/InfuseNetModel/diffusion_pytorch_model-00002-of-00002.safetensors
models/InfiniteYou/infu_flux_v1.0/aes_stage2/InfuseNetModel/diffusion_pytorch_model.safetensors.index.json
models/InfiniteYou/infu_flux_v1.0/aes_stage2/image_proj_model.bin
models/InfiniteYou/infu_flux_v1.0/aes_stage2/infusenet_aes_bf16.safetensors
models/InfiniteYou/infu_flux_v1.0/aes_stage2/infusenet_aes_fp8e4m3fn.safetensors
models/InfiniteYou/supports/insightface/models/antelopev2/1k3d68.onnx ONNX
models/InfiniteYou/supports/insightface/models/antelopev2/2d106det.onnx ONNX
models/InfiniteYou/supports/insightface/models/antelopev2/genderage.onnx ONNX
models/InfiniteYou/supports/insightface/models/antelopev2/glintr100.onnx ONNX
models/InfiniteYou/supports/insightface/models/antelopev2/scrfd_10g_bnkps.onnx ONNX
models/InfiniteYou/supports/optional_loras/Canopus-LoRA-Flux-FaceRealism.safetensors
models/InfiniteYou/supports/optional_loras/flux_anti_blur_lora.safetensors
models/InfiniteYou/supports/optional_loras/flux_realism_lora.safetensors
models/InfiniteYou/supports/optional_loras/schnell-realism_v1.safetensors
models/InfiniteYou/supports/optional_loras/schnell-realism_v2.3.safetensors
models/custom_loras/.gitattributes
models/custom_loras/Canopus-LoRA-Flux-FaceRealism.safetensors
models/custom_loras/schnell-realism_v1.safetensors
models/custom_loras/schnell-realism_v2.3.safetensors
pipelines/__init__.py
pipelines/pipeline_flux_infusenet.py
pipelines/pipeline_infu_flux.py
pipelines/resampler.py
pipelines/token_association.md
requirements.txt
requirements_download.txt
verify_models.py

Related models