Upload 2 files
Browse files- setup_windows.bat +38 -0
- setup_windows.ps1 +127 -0
setup_windows.bat
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
echo π TechMatrix Solvers - ISL Translation System
|
| 3 |
+
echo Setting up Windows environment...
|
| 4 |
+
echo.
|
| 5 |
+
|
| 6 |
+
echo π¦ Upgrading pip...
|
| 7 |
+
pip install --upgrade pip
|
| 8 |
+
|
| 9 |
+
echo.
|
| 10 |
+
echo π§Ή Cleaning up conflicting OpenCV packages...
|
| 11 |
+
pip uninstall opencv-python opencv-python-headless opencv-contrib-python -y >nul 2>&1
|
| 12 |
+
|
| 13 |
+
echo.
|
| 14 |
+
echo π§ Installing PyTorch (CPU version)...
|
| 15 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 16 |
+
|
| 17 |
+
echo.
|
| 18 |
+
echo πΈ Installing OpenCV (headless)...
|
| 19 |
+
pip install opencv-python-headless==4.8.1.78
|
| 20 |
+
|
| 21 |
+
echo.
|
| 22 |
+
echo π Installing dependencies from requirements.txt...
|
| 23 |
+
pip install -r requirements.txt
|
| 24 |
+
|
| 25 |
+
echo.
|
| 26 |
+
echo π Testing imports...
|
| 27 |
+
python -c "import cv2; print('β
OpenCV:', cv2.__version__)"
|
| 28 |
+
python -c "import streamlit; print('β
Streamlit:', streamlit.__version__)"
|
| 29 |
+
python -c "import torch; print('β
PyTorch:', torch.__version__)"
|
| 30 |
+
|
| 31 |
+
echo.
|
| 32 |
+
echo π Setup completed!
|
| 33 |
+
echo.
|
| 34 |
+
echo To run the application:
|
| 35 |
+
echo streamlit run src/streamlit_app.py
|
| 36 |
+
echo.
|
| 37 |
+
echo TechMatrix Solvers Team - Ready to translate ISL! π€
|
| 38 |
+
pause
|
setup_windows.ps1
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TechMatrix Solvers - ISL Translation System
|
| 2 |
+
# Windows Setup Script for Dependencies
|
| 3 |
+
|
| 4 |
+
Write-Host "π TechMatrix Solvers - ISL Translation System" -ForegroundColor Cyan
|
| 5 |
+
Write-Host "Setting up Windows environment..." -ForegroundColor Green
|
| 6 |
+
|
| 7 |
+
# Check Python version
|
| 8 |
+
Write-Host "`nπ Checking Python installation..." -ForegroundColor Yellow
|
| 9 |
+
try {
|
| 10 |
+
$pythonVersion = python --version 2>&1
|
| 11 |
+
Write-Host "β
Found: $pythonVersion" -ForegroundColor Green
|
| 12 |
+
} catch {
|
| 13 |
+
Write-Host "β Python not found. Please install Python 3.8+ first." -ForegroundColor Red
|
| 14 |
+
exit 1
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
# Check pip
|
| 18 |
+
Write-Host "`nπ¦ Checking pip installation..." -ForegroundColor Yellow
|
| 19 |
+
try {
|
| 20 |
+
$pipVersion = pip --version 2>&1
|
| 21 |
+
Write-Host "β
Found: $pipVersion" -ForegroundColor Green
|
| 22 |
+
} catch {
|
| 23 |
+
Write-Host "β pip not found. Please install pip first." -ForegroundColor Red
|
| 24 |
+
exit 1
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
# Upgrade pip
|
| 28 |
+
Write-Host "`nπ Upgrading pip..." -ForegroundColor Yellow
|
| 29 |
+
pip install --upgrade pip
|
| 30 |
+
|
| 31 |
+
# Remove conflicting OpenCV packages
|
| 32 |
+
Write-Host "`nπ§Ή Cleaning up conflicting OpenCV packages..." -ForegroundColor Yellow
|
| 33 |
+
pip uninstall opencv-python opencv-python-headless opencv-contrib-python -y 2>$null
|
| 34 |
+
|
| 35 |
+
# Install PyTorch first (CPU version for Windows compatibility)
|
| 36 |
+
Write-Host "`nπ§ Installing PyTorch (CPU version)..." -ForegroundColor Yellow
|
| 37 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 38 |
+
|
| 39 |
+
# Install OpenCV headless version specifically
|
| 40 |
+
Write-Host "`nπΈ Installing OpenCV (headless)..." -ForegroundColor Yellow
|
| 41 |
+
pip install opencv-python-headless==4.8.1.78
|
| 42 |
+
|
| 43 |
+
# Install other core dependencies
|
| 44 |
+
Write-Host "`nπ Installing core dependencies..." -ForegroundColor Yellow
|
| 45 |
+
pip install streamlit>=1.28.0
|
| 46 |
+
pip install numpy>=1.24.0
|
| 47 |
+
pip install pandas>=2.0.0
|
| 48 |
+
pip install Pillow>=9.0.0
|
| 49 |
+
pip install matplotlib==3.5.3
|
| 50 |
+
pip install scipy>=1.10.0
|
| 51 |
+
pip install scikit-image>=0.20.0
|
| 52 |
+
pip install tqdm>=4.65.0
|
| 53 |
+
|
| 54 |
+
# Install ML/AI dependencies
|
| 55 |
+
Write-Host "`nπ€ Installing AI/ML dependencies..." -ForegroundColor Yellow
|
| 56 |
+
pip install keras>=2.13.0
|
| 57 |
+
pip install seaborn>=0.12.0
|
| 58 |
+
pip install huggingface_hub>=0.16.0
|
| 59 |
+
|
| 60 |
+
# Install media processing
|
| 61 |
+
Write-Host "`n㪠Installing media processing..." -ForegroundColor Yellow
|
| 62 |
+
pip install av>=10.0.0
|
| 63 |
+
pip install ffmpeg-python>=0.2.0
|
| 64 |
+
|
| 65 |
+
# Check FFmpeg installation
|
| 66 |
+
Write-Host "`nπ₯ Checking FFmpeg installation..." -ForegroundColor Yellow
|
| 67 |
+
try {
|
| 68 |
+
$ffmpegVersion = ffmpeg -version 2>&1 | Select-String "version"
|
| 69 |
+
Write-Host "β
FFmpeg found: $($ffmpegVersion -split ' ')[2]" -ForegroundColor Green
|
| 70 |
+
} catch {
|
| 71 |
+
Write-Host "β οΈ FFmpeg not found. Installing via conda or manually download from https://ffmpeg.org/" -ForegroundColor Yellow
|
| 72 |
+
Write-Host " Trying conda install..." -ForegroundColor Yellow
|
| 73 |
+
try {
|
| 74 |
+
conda install ffmpeg -c conda-forge -y 2>$null
|
| 75 |
+
Write-Host "β
FFmpeg installed via conda" -ForegroundColor Green
|
| 76 |
+
} catch {
|
| 77 |
+
Write-Host "β Please install FFmpeg manually from https://ffmpeg.org/" -ForegroundColor Red
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
# Verify installation
|
| 82 |
+
Write-Host "`nπ Verifying installation..." -ForegroundColor Yellow
|
| 83 |
+
python -c "
|
| 84 |
+
import sys
|
| 85 |
+
print(f'Python: {sys.version}')
|
| 86 |
+
|
| 87 |
+
try:
|
| 88 |
+
import cv2
|
| 89 |
+
print(f'β
OpenCV: {cv2.__version__}')
|
| 90 |
+
except Exception as e:
|
| 91 |
+
print(f'β OpenCV: {e}')
|
| 92 |
+
|
| 93 |
+
try:
|
| 94 |
+
import streamlit
|
| 95 |
+
print(f'β
Streamlit: {streamlit.__version__}')
|
| 96 |
+
except Exception as e:
|
| 97 |
+
print(f'β Streamlit: {e}')
|
| 98 |
+
|
| 99 |
+
try:
|
| 100 |
+
import torch
|
| 101 |
+
print(f'β
PyTorch: {torch.__version__}')
|
| 102 |
+
except Exception as e:
|
| 103 |
+
print(f'β PyTorch: {e}')
|
| 104 |
+
|
| 105 |
+
try:
|
| 106 |
+
import keras
|
| 107 |
+
print(f'β
Keras: {keras.__version__}')
|
| 108 |
+
except Exception as e:
|
| 109 |
+
print(f'β Keras: {e}')
|
| 110 |
+
|
| 111 |
+
try:
|
| 112 |
+
import numpy as np
|
| 113 |
+
print(f'β
NumPy: {np.__version__}')
|
| 114 |
+
except Exception as e:
|
| 115 |
+
print(f'β NumPy: {e}')
|
| 116 |
+
|
| 117 |
+
try:
|
| 118 |
+
import pandas as pd
|
| 119 |
+
print(f'β
Pandas: {pd.__version__}')
|
| 120 |
+
except Exception as e:
|
| 121 |
+
print(f'β Pandas: {e}')
|
| 122 |
+
"
|
| 123 |
+
|
| 124 |
+
Write-Host "`nπ Setup completed!" -ForegroundColor Cyan
|
| 125 |
+
Write-Host "`nTo run the application:" -ForegroundColor Green
|
| 126 |
+
Write-Host " streamlit run src/streamlit_app.py" -ForegroundColor White
|
| 127 |
+
Write-Host "`nTechMatrix Solvers Team - Ready to translate ISL! π€" -ForegroundColor Cyan
|