Spaces:
Running
Running
|
Download README.md from jacky3102/Platform: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/spaces/jacky3102/Platform/resolve/main/README.md
- Command line
-
hf download hf://spaces/jacky3102/Platform/README.md
-
curl -L -o README.md https://huggingface.co/spaces/jacky3102/Platform/resolve/main/README.md
2.03 kB
| title: CharGen CPU | |
| emoji: 🎭 | |
| colorFrom: purple | |
| colorTo: pink | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| license: apache-2.0 | |
| # CharGen · aligned FaceID + output QC | |
| Fixed-character image generation on free cpu-basic (2 vCPU / 16GB): | |
| - Realistic Vision V4.0 (SD1.5), explicit `stabilityai/sd-vae-ft-mse`, DDIM, all fp32 on CPU. | |
| - Official `IPAdapterFaceIDPlus` PlusV2, using **buffalo_l / w600k_r50** identity embeddings and a five-point **224×224 aligned face crop** for the CLIP branch. | |
| - Output sizes `2:3`, `9:16`, or `1:1`, with a selectable long edge. Default 512×768. | |
| - Reference input must contain exactly one detected face. | |
| - Every output is evaluated for face count, reference embedding cosine similarity, and face-crop safety. | |
| - `inspect` returns the image and its metrics, even when thresholds are not met. `strict` rejects no-face, multiple-face, and below-threshold outputs instead of returning a false success. | |
| - Reproducible WebP plus JSON metadata under `/tmp/chargen/artifacts` (ephemeral Space storage). | |
| The default `scale=0.7` is an A/B-test starting point, not a claim of guaranteed identity. The FaceID attention scale and CLIP structure weight (`s_scale`) are separate controls. `s_scale` defaults to the official example's 1.0. Similarity is an ArcFace embedding cosine score, not proof of perceptual identity or series-level consistency. | |
| The previous revision is preserved at Space commit `b9f21462e56be4fcf52db7551b9005d713ab764f`. | |
| ## API | |
| `POST /call/generate` accepts these data fields, in order: | |
| `reference_image, prompt, negative_prompt, aspect, long_edge, seed, steps, guidance, ip_scale, s_scale, qc_mode, min_similarity` | |
| It returns `[image_path, qc_markdown]`. Generation may take several minutes; use SSE `/call/generate/{event_id}` with a 30-minute client budget, not a 120-second request timeout. | |
| ## License notice | |
| The FaceID model card and InsightFace pretrained weights are for **research / non-commercial use**. Verify the applicable licenses before monetized production. | |