1. Installationο
This guide will walk you through installing TurboGuard and all its dependencies on your system.
1.1. System Requirementsο
Before installing TurboGuard, ensure your system meets these requirements:
Operating System - Windows - macOS - Linux
Python - Python 3.8 or higher - pip package manager
Hardware - Minimum 6GB RAM (8GB recommended) - GPU support optional but recommended for training
1.2. Installation Methodsο
1.2.1. Method 1: Install from GitHub (Recommended)ο
Clone the Repository
git clone https://github.com/mouradboutrid/TurboGuard.git cd TurboGuard
Create Virtual Environment
# Using venv python -m venv turboguard_env # Activate on Windows turboguard_env\Scripts\activate # Activate on macOS/Linux source turboguard_env/bin/activate
Install Dependencies
pip install -r requirements.txt
1.2.2. Method 2: Development Installationο
For contributors or advanced users who want to modify the code:
git clone https://github.com/mouradboutrid/TurboGuard.git
cd TurboGuard
pip install -e .
This installs TurboGuard in βeditableβ mode, so changes to the source code are immediately reflected.
1.3. Required Dependenciesο
TurboGuard requires the following main packages:
Core Dependencies
tensorflow>=2.8.0
numpy>=1.21.0
pandas>=1.3.0
scikit-learn>=1.0.0
matplotlib>=3.5.0
seaborn>=0.11.0
Dashboard Dependencies
streamlit>=1.12.0
plotly>=5.10.0
altair>=4.2.0
Utility Dependencies
tqdm>=4.64.0
pyyaml>=6.0
joblib>=1.1.0
1.4. GPU Support (Optional)ο
To enable GPU acceleration for model training:
NVIDIA GPU Setup
Install CUDA Toolkit (11.2 or later):
Download from NVIDIA CUDA Toolkit
Install cuDNN:
Download from NVIDIA cuDNN
Install TensorFlow GPU support:
pip install tensorflow[and-cuda]
Verify GPU Installation
import tensorflow as tf
print("GPU Available: ", tf.config.list_physical_devices('GPU'))
1.5. Verify Installationο
Test your installation with these verification steps:
1. Import Test
# Test core imports
import tensorflow as tf
import pandas as pd
import numpy as np
import streamlit as st
print("β
All core dependencies imported successfully!")
2. TurboGuard Import Test
from src.LSTM_AutoEncoder.data_loader import CMAPSSDataLoader
from src.LSTM_AutoEncoder.lstm_autoencoder import LSTMAutoencoder
from src.Forecasting_LSTM.forecasting_lstm import ForecastingLSTM
print("β
TurboGuard modules imported successfully!")
3. Dashboard Test
streamlit run app/app.py
If successful, you should see:
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
1.6. Common Installation Issuesο
Issue 1: TensorFlow Installation Fails
Error: ERROR: Could not find a version that satisfies the requirement tensorflow
Solution:
- Ensure Python version is 3.8-3.11
- Update pip: pip install --upgrade pip
- Try: pip install tensorflow --upgrade
Issue 2: CUDA/GPU Issues
Error: Could not load dynamic library 'libcudart.so.11.0'
Solution: - Verify CUDA installation - Check CUDA version compatibility with TensorFlow - Install matching cuDNN version
Issue 3: Memory Issues During Installation
Error: MemoryError during package installation
Solution:
- Close other applications
- Install packages one by one
- Use: pip install --no-cache-dir -r requirements.txt
Issue 4: Streamlit Port Already in Use
Error: OSError: [Errno 48] Address already in use
Solution:
- Use different port: streamlit run app/app.py --server.port 8502
- Kill existing process on port 8501
1.7. Next Stepsο
Once installation is complete:
β Continue to Quick Start to launch your first TurboGuard session
π Explore the interactive dashboard
π€ Build your first model in Your First Model
1.8. Need Help?ο
If you encounter issues not covered here:
π Report bugs: GitHub Issues
π¬ Ask questions: Create a discussion on GitHub
π Check docs: Refer to our detailed API documentation
Congratulations! Youβre ready to start using TurboGuard! π