Make Mii! is an end-to-end computer vision and Nintendo Wii homebrew system that transforms your real-life face into a Nintendo Mii avatar in real time. Using a live webcam, the system isolates facial landmarks and hair contours, matches physical characteristics against Nintendo Mii asset geometries using OpenAI's CLIP, extracts perceptual color tones in CIELAB space, and transfers the generated Mii over UDP to real Wii hardware to be rendered live and permanently saved into the console's Mii Plaza database.
| 1. Capture & Segmentation | 2. AI Feature Matching | 3. Payload Serialization | 4. Wii Hardware Target |
|---|---|---|---|
|
Webcam Stream
↓ Google MediaPipe Face landmarks & hair masks ↓ Live Stream Controls Real-time sliders for Brightness, Contrast, Gamma & Saturation |
OpenAI CLIP (ViT-B/32) CLAHE texture filtering & cosine similarity matching against indexed Mii sprites ↓ CIELAB Delta-E Weighted perceptual color quantization for skin, hair, and eyes |
Binary Injection
Big-endian bitfield injection into ↓ UDP Broadcast 74-byte binary datagram sent over Wi-Fi to port |
Make Mii! Homebrew
Hardware-accelerated GX rendering on Wii ↓ Wii NAND Persistence Saves directly to |
The project is modularized into two dedicated repositories across the organization:
| Repository | Technology Stack | Primary Responsibility |
|---|---|---|
| wii-ai | Python 3.10, PyTorch, MediaPipe, OpenAI CLIP, OpenCV | The CV/AI computer vision backend. Captures the webcam stream, performs landmark/hair segmentation, matches geometry and colors, and transmits the resulting 74-byte payload. |
| wii-make-mii | C/C++, devkitPPC, libogc, GX / GRRLIB | The native Nintendo Wii homebrew application. Listens on UDP port 8080, renders incoming Mii attributes on-screen, and writes the Mii record to the console's NAND database. |
- Compile wii-make-mii with
devkitPPCor copy the prebuiltwii-make-mii.dolbinary toapps/wii-make-mii/boot.dolon an SD card or USB drive. - Launch Make Mii! from the Homebrew Channel.
- Note the Wii's local IP address displayed on the status bar (listening on port 8080).
- Clone and set up wii-ai:
git clone https://github.com/Make-Mii/wii-ai.git
cd wii-ai
conda create -n wii-ai python=3.10 -y
conda activate wii-ai
pip install -r requirements.txt- Set
WII_IPinsrc/main.pyto match the IP address shown on your Wii screen. - Start the capture and segmentation loop:
python src/main.py- Use the OpenCV trackbar sliders (
Brightness,Contrast,Gamma,Saturation) on theStreamwindow to calibrate for room lighting conditions.
- Face the camera; the matched Mii updates dynamically on the Wii display.
- Press [A] on the primary Wiimote to save the Mii into the console's Mii Plaza database (
RFL_DB.dat). - Open the Mii Channel or launch Wii Sports, your avatar is now playable across all Wii software!
- Transport Layer: UDP datagrams targeting port
8080. - Packet Size: Exactly 74 bytes.
- Memory Layout: Packed big-endian Nintendo Mii binary format (
RawMiiData), conforming to the officialRFL_DB.datrecord layout. Packets differing from 74 bytes are rejected by the console.
| Wiimote Button | Functionality |
|---|---|
| A | Commit and save the active Mii to the Wii Plaza database (RFL_DB.dat) |
| B | Freeze or resume the live incoming video stream |
| HOME | Safely exit the homebrew application and return to the Homebrew Channel |
Saving a Mii writes directly to /shared2/menu/FaceLib/RFL_DB.dat within the Nintendo Wii's internal NAND flash storage. Creating a BootMii NAND backup prior to testing is strongly recommended.
