Spaces:
Running on Zero
Running on Zero
|
Download README.md from ZacharyFro18/ZMF-FullBody-Lab: direct link, hf CLI and curl.
- Browser
- Download file 6.49 kB
-
https://huggingface.co/spaces/ZacharyFro18/ZMF-FullBody-Lab/resolve/main/README.md
- Command line
-
hf download hf://spaces/ZacharyFro18/ZMF-FullBody-Lab/README.md
-
curl -L -o README.md https://huggingface.co/spaces/ZacharyFro18/ZMF-FullBody-Lab/resolve/main/README.md
6.49 kB
| title: ZMF Full-body Model Lab | |
| emoji: 🎬 | |
| colorFrom: yellow | |
| colorTo: gray | |
| sdk: gradio | |
| sdk_version: 6.30.0 | |
| python_version: 3.12.12 | |
| app_file: app.py | |
| license: mit | |
| short_description: Real AI integration; GPU validation pending | |
| # ZMF STUDIOS FullBody Lab · 0.2 integration | |
| This is an updated **real inference integration**, not a newly trained model and not an end-to-end verified release. It does not update the separate ZMF STUDIOS website. The free Space runs the models remotely; the iPhone controls it. No paid inference API or paid GPU fallback is included. | |
| ## Install from your iPhone | |
| 1. Download this ZIP and tap it in Files to extract it. | |
| 2. In your existing private `ZacharyFro18/ZMF-FullBody-Lab` Space, open Files → Add file → Upload files. | |
| 3. Upload/replace the **four files at the top level**: `app.py`, `requirements.txt`, `packages.txt`, `README.md`. Do not upload the ZIP as the app. The top-level app.py contains the bundled runtime modules; you do not need to upload source/. | |
| 4. Commit. Keep the existing ZeroGPU hardware. The code disables SSR explicitly. | |
| 5. Open App. The heading should say **INDIE / AI LAB · 0.2 integration**. | |
| No `ZMF_ENABLE_GPU_TEST` switch is needed now. Models are downloaded only when their stage is requested. The body download is large (tens of GB); it happens on the server, not the phone. Startup does not preload all 14B weights into the small CPU RAM allocation. First GPU execution, memory usage and quota compatibility remain unverified. | |
| ## Workflow | |
| 1. Upload a camera-roll video and a full-body actor reference showing the desired face, hair, body and outfit. Choose a start time and confirm a single-person shot. | |
| 2. Save the shot. Download the checkpoint ZIP to Files. | |
| 3. Extract motion and mask. The app downloads pinned official Wan/SAM2 source and preprocessing checkpoints, then runs preprocessing in a ZeroGPU allocation. Preview the mask; approve only if it covers the actor. | |
| 4. Render the replacement. Wan-Animate receives the reference, pose, face expressions, background and mask in replacement mode. Download another checkpoint. | |
| 5. Upload or record 3–15 seconds of clean solo voice and enter a short line. Chatterbox Turbo ONNX synthesizes that line conditioned on the reference. Listen to the result. | |
| 6. Lip-sync and export. Wav2Lip processes the generated face and dialogue, and FFmpeg exports an MP4. Download the video and checkpoint. | |
| Each stage can run separately and saves its files on the server. **Those server files are temporary. Downloaded checkpoint ZIPs are the durable save mechanism.** Restore a ZIP to recover after a Space restart. A checkpoint includes voice samples, so keep it private. Quota errors stop work; no automatic paid retry occurs. | |
| ## Implemented vs verified | |
| | Stage | Code | Verification | | |
| |---|---|---| | |
| | Clip/reference intake and checkpoint recovery | Implemented | FFmpeg tests passed | | |
| | Automatic single-person motion/mask preprocessing | Official upstream integration implemented | Source/dependencies checked; GPU execution pending | | |
| | Whole-body/hair/clothes/face generation | Wan-Animate replacement adapter implemented | GPU execution and visual quality pending | | |
| | Voice cloning from sample and text | Chatterbox Turbo Q4 ONNX implemented | Real inference produced finite audio on a synthetic-signal test; similarity/intelligibility not evaluated; test hit token limit and was correctly marked incomplete | | |
| | Lip-sync | Wav2Lip96 ONNX + single-face detection + MP4 export implemented | Actual ONNX inference passed; full visual sync test pending | | |
| | Mobile interface | Gradio staged UI implemented | Component/event construction tested; iPhone rendering pending | | |
| | Dependency compatibility | Resolved for Python 3.12, including Gradio OAuth/MCP extras | Resolver success; full CUDA environment installation pending | | |
| ## Current boundaries | |
| - Short integration shot only: 17 frames at 8 FPS, 384×256 or 256×384. This is not cinema resolution or a guarantee of realism. | |
| - Exactly one visible person; crowded-scene target selection, occlusion recovery and long clips are unfinished. | |
| - Outfit changes come from the full-body reference. Text-only outfit generation is not implemented. | |
| - Voice cloning is text-to-speech with a voice reference. It is not speech-to-speech performance conversion, speaker diarization, or automatic transcription. | |
| - New dialogue replaces the entire soundtrack. Music/background preservation and other-speaker preservation are unfinished. | |
| - Long or incomplete synthesized dialogue is rejected rather than silently cut. Shorten the line or retry with a better reference. | |
| - Lip-sync needs a clear frontal face. Detection failure preserves the body render and voice instead of exporting a falsely successful result. | |
| - Wav2Lip weights are noncommercial. Do not use this combined output for commercial productions without an appropriately licensed replacement. | |
| - No new ZMF weights were trained. The system uses pretrained models through custom orchestration. | |
| - Ten studio tiers, GEDCOM casting, speculative ancestor appearance/voice, and permanent cloud project storage are not implemented in this Lab update. DNA/parental resemblance cannot reconstruct an ancestor's actual face or voice. | |
| ## Source and models | |
| Editable modules live in `source/`. The top-level app.py is generated by build_bundle.py; source is embedded so phone installation needs only one Python upload. Run that script from source/ to rebuild the deployment folder. | |
| - Wan code: https://github.com/Wan-Video/Wan2.2 at `1ea34ff48f87168174e12956e200b1d908b1c5ff`. | |
| - Wan Diffusers weights: https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers at `6f4df10861c758af86ac3c979aacc1bf5c03eff0`. | |
| - Wan preprocessing weights: https://huggingface.co/Wan-AI/Wan2.2-Animate-14B at `cb93a225fbaf1ca100f54e79da8f994995b689b3`. | |
| - SAM2 source: https://github.com/facebookresearch/sam2 at `0e78a118995e66bb27d78518c4bd9a3e95b4e266`. Optional CUDA extension is not compiled. | |
| - Chatterbox Turbo: https://huggingface.co/ResembleAI/chatterbox-turbo-ONNX at `d21799bd0354adb85e348b8a0442a8405110a2cf` (MIT). | |
| - Wav2Lip: https://github.com/Rudrabha/Wav2Lip (noncommercial weights). ONNX distribution: https://github.com/facefusion/facefusion-assets/releases/tag/models-3.0.0. | |
| The custom ONNX voice port does not add Perth watermarking. Job metadata identifies AI-modified output; it is not a robust embedded watermark. No sample voices or model weights are bundled in this source archive. | |