Abs6187 commited on
Commit
13fd1dd
Β·
verified Β·
1 Parent(s): 1e83d3a

Upload 2 files

Browse files
Files changed (2) hide show
  1. setup_windows.bat +38 -0
  2. 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