Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Project Beatrice V2 Logo

Project Beatrice V2 Voice Trainer (Windows & Cross-Platform)

Platform: Windows Python: 3.10+ PyTorch: CUDA 12.x HuggingFace: fierce-cats/beatrice-trainer License: MIT

A high-performance, hardware-aware desktop Web application for training custom real-time voice conversion models using Project Beatrice V2. Featuring a modern Cyan Blue minimalist UI, dynamic Light/Dark theme toggle, Single-Choice Dataset Import Switcher (Local Drop-Zone, Hugging Face, Kaggle), automated NVIDIA GPU CUDA Hardware Tuning, and direct Google Colab & Kaggle Cloud Launchpad integration.


โœจ Key Features

  • ๐Ÿ’Ž Cyan Blue Minimalist UI & Vector SVGs โ€” Ultra-sleek Linear/Vercel-inspired desktop design system with custom vector SVG icons and sharp typography (Inter, Outfit, JetBrains Mono).
  • ๐ŸŒ“ Light & Dark Mode Theme Switcher โ€” Instant theme switching with persistent user preferences stored in local storage (localStorage).
  • ๐ŸŽฏ Single-Choice Dataset Import Selector โ€” Segmented method picker allowing users to easily choose between Local Audio Upload, Hugging Face Import, or Kaggle Dataset Import.
  • โšก NVIDIA CUDA Hardware Tuning โ€” Deep profiling for NVIDIA GPUs (RTX 4090, 4080, 4070, 3090, 3080, 3060, 2060, etc.) and Apple Silicon MPS with automatic batch size and worker optimization.
  • โ˜๏ธ Cloud Training Launchpad โ€” Direct integration of Project-Beatrice-V2/Beatrice-colab with one-click Google Colab (.ipynb) and Kaggle launch buttons and local notebook downloads.
  • ๐Ÿ“ˆ Real-Time Monitoring & Metrics โ€” Live loss plotting on HTML Canvas, stdout logging console, and memory usage gauges.

๐Ÿ–ผ๏ธ Interface Showcase

Beatrice V2 Dashboard Overview
Dashboard Overview โ€” Live hardware monitor, memory allocation gauges, and system diagnostics

Beatrice V2 Dataset Manager
Dataset Manager โ€” Single-choice import selector (Local Audio Drag & Drop, Hugging Face, Kaggle)

Beatrice V2 Training Control
Training Control โ€” Hardware auto-tuning, custom training steps, and live console logger

Cloud Training Launchpad
Cloud Training Launchpad โ€” One-click Google Colab and Kaggle launch cards with local .ipynb downloads


โšก Quick Start

๐Ÿ“‹ Prerequisites

  • Operating System: Windows 10 or Windows 11 (64-bit) / macOS 12+ / Linux.
  • GPU: NVIDIA GPU with CUDA support recommended (e.g., RTX 2060+, 3060+, 4060+). CPU fallback is supported.
  • Python: Python 3.10 or newer (make sure to check "Add python.exe to PATH" during installation).

๐Ÿ’ป One-Click Execution

Double-click start_windows.bat (or start.bat) in File Explorer, or run in Command Prompt / PowerShell:

start_windows.bat

For macOS / Linux systems:

chmod +x start.sh
./start.sh

What the Startup Script Automates:

  1. Creates a local Python virtual environment (venv/).
  2. Installs CUDA-accelerated PyTorch (torch and torchaudio using the CUDA 12.1 wheel index).
  3. Installs backend dependencies (fastapi, uvicorn, python-multipart, aiofiles, huggingface_hub, psutil).
  4. Downloads the core Beatrice Trainer repository from Hugging Face (fierce-cats/beatrice-trainer).
  5. Launches the FastAPI backend server and automatically opens your browser at http://localhost:8000.

๐ŸŽฎ Hardware Auto-Tuning Matrix

When selecting a speaker dataset in the Training tab, the system profiles hardware to compute optimal hyperparameters:

Hardware Tier GPU / VRAM Batch Size Grad Accum Effective Batch Workers Mixed Precision
Ultra Enthusiast RTX 3090 / 4090 (24GB) 16 1 16 4 Enabled (FP16)
High Performance RTX 4080 / 3080 Ti (16GB) 8 2 16 4 Enabled (FP16)
Standard Gaming RTX 3060 / 4070 (12GB) 4 4 16 2 Enabled (FP16)
Entry Level GPU RTX 3060 8GB / 4060 (8GB) 2 4 8 2 Enabled (FP16)
CPU Fallback System CPU 2 4 8 2 Disabled

๐Ÿ“‚ Directory Structure

โ”œโ”€โ”€ assets/                          # App branding and logo assets
โ”‚   โ””โ”€โ”€ logo.jpg                     # Official Project Beatrice V2 Logo
โ”œโ”€โ”€ colab_repo/                      # Cloned Beatrice-Colab repository
โ”‚   โ”œโ”€โ”€ BeatriceV2_Trainer_Notebook_Colab.ipynb
โ”‚   โ””โ”€โ”€ BeatriceV2_Trainer_Notebook_Kaggle.ipynb
โ”œโ”€โ”€ app.js                           # Client-side JavaScript application & UI handlers
โ”œโ”€โ”€ index.html                       # Modern HTML layout & component views
โ”œโ”€โ”€ index.css                        # Cyan Blue Design System & Light/Dark themes
โ”œโ”€โ”€ server.py                        # FastAPI backend server & REST endpoints
โ”œโ”€โ”€ start_windows.bat                # Automated Windows batch startup script
โ”œโ”€โ”€ start.bat                        # Batch launcher shortcut
โ”œโ”€โ”€ start.sh                         # Cross-platform shell startup script
โ”œโ”€โ”€ requirements.txt                 # Backend Python dependencies
โ”œโ”€โ”€ README.md                        # Documentation manual
โ””โ”€โ”€ beatrice-trainer/                # Downloaded Hugging Face trainer files

๐ŸŒ API Endpoint Reference

Endpoint Method Description
/api/status GET System health check & backend availability
/api/system/memory GET Live RAM, VRAM, and CPU usage metrics
/api/dataset/list GET List available speaker datasets and file counts
/api/dataset/upload POST Upload WAV or ZIP audio files
/api/dataset/import/hf POST Download dataset directly from Hugging Face
/api/dataset/import/kaggle POST Import dataset from Kaggle
/api/train/auto-tune POST Compute optimal training hyperparameters
/api/train/start POST Launch local model training process
/api/train/stop POST Terminate active model training process
/api/models/list GET List trained VST3 paraphernalia voice models

๐Ÿ“„ License

This project is licensed under the MIT License.

About

๐Ÿง  Local Beatrice voice model trainer for Windows with a streamlined setup, efficient training, and complete offline support.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages