File size: 3,295 Bytes
c89ce9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ο»Ώ# Simple Model Download Script for Windows
# This script will help you download OmniAvatar models even if Python isn't in PATH

Write-Host "🎭 OmniAvatar Model Download Assistant" -ForegroundColor Green
Write-Host "=====================================" -ForegroundColor Green
Write-Host ""

Write-Host "❌ Current Status: No video models found" -ForegroundColor Red
Write-Host "🎯 Result: App runs in TTS-only mode (audio output only)" -ForegroundColor Yellow
Write-Host ""
Write-Host "To enable video generation, you need to download ~30GB of models:" -ForegroundColor Cyan
Write-Host "  πŸ“¦ Wan2.1-T2V-14B (~28GB) - Base text-to-video model" -ForegroundColor White
Write-Host "  πŸ“¦ OmniAvatar-14B (~2GB) - Avatar animation weights" -ForegroundColor White
Write-Host "  πŸ“¦ wav2vec2-base-960h (~360MB) - Audio encoder" -ForegroundColor White
Write-Host ""

Write-Host "πŸš€ Download Options:" -ForegroundColor Green
Write-Host ""
Write-Host "1. 🐍 Using Python (Recommended)" -ForegroundColor Yellow
Write-Host "   - Open Command Prompt or PowerShell as Administrator" -ForegroundColor Gray
Write-Host "   - Navigate to this directory" -ForegroundColor Gray
Write-Host "   - Run: python setup_omniavatar.py" -ForegroundColor Gray
Write-Host ""

Write-Host "2. 🌐 Manual Download" -ForegroundColor Yellow
Write-Host "   - Visit: https://huggingface.co/OmniAvatar/OmniAvatar-14B" -ForegroundColor Gray
Write-Host "   - Click 'Files and versions' tab" -ForegroundColor Gray
Write-Host "   - Download all files to: pretrained_models/OmniAvatar-14B/" -ForegroundColor Gray
Write-Host "   - Repeat for other models (see MODEL_DOWNLOAD_GUIDE.md)" -ForegroundColor Gray
Write-Host ""

Write-Host "3. πŸ”§ Git LFS (If available)" -ForegroundColor Yellow
Write-Host "   git lfs clone https://huggingface.co/OmniAvatar/OmniAvatar-14B pretrained_models/OmniAvatar-14B" -ForegroundColor Gray
Write-Host ""

Write-Host "πŸ“‹ After downloading models:" -ForegroundColor Cyan
Write-Host "  βœ… Restart your app: python app.py" -ForegroundColor White
Write-Host "  βœ… Check logs for 'full functionality enabled'" -ForegroundColor White
Write-Host "  βœ… API will return video URLs instead of audio-only" -ForegroundColor White
Write-Host ""

# Check if any Python executable might exist in common locations
$commonPythonPaths = @(
    "C:\Python*\python.exe",
    "C:\Users\$env:USERNAME\AppData\Local\Programs\Python\Python*\python.exe",
    "C:\Program Files\Python*\python.exe"
)

Write-Host "πŸ” Scanning for Python installations..." -ForegroundColor Yellow
$foundPython = $false

foreach ($pattern in $commonPythonPaths) {
    $pythonExes = Get-ChildItem -Path $pattern -ErrorAction SilentlyContinue
    foreach ($exe in $pythonExes) {
        Write-Host "   Found: $($exe.FullName)" -ForegroundColor Green
        $foundPython = $true
    }
}

if ($foundPython) {
    Write-Host ""
    Write-Host "πŸ’‘ Try running the setup script with full path to Python:" -ForegroundColor Cyan
    Write-Host "   C:\Path\To\Python\python.exe setup_omniavatar.py" -ForegroundColor Gray
} else {
    Write-Host "   No Python installations found in common locations" -ForegroundColor Gray
}

Write-Host ""
Write-Host "πŸ“– For detailed instructions, see: MODEL_DOWNLOAD_GUIDE.md" -ForegroundColor Cyan