A multi-stage pipeline for a Convolutional Beta Variational Autoencoder (Conv-βVAE) training for industrial traffic.
01_analyze_payload_lengths.py: Statistical analysis of payload length distributions to inform VAE input dimensions.02_VAE_training_gpu.py: VAE model training. Optimized for NVIDIA RTX 3050 (Ampere architecture).03_visualize_latent_space.py: Extracts latent embeddings from the trained ConvVAE, applies t-SNE dimensionality reduction, and generates visualizations.
| OS Recommended | Hardware |
|---|---|
| Windows/Linux | NVIDIA GPU (RTX 3050 4GB/8GB) - 16GB+ RAM recommended |
# 1. Install GPU-accelerated PyTorch first
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# 2. Install the rest of the pipeline dependencies
pip install -r requirements.txt
# if failed, try this:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple- prepare dataset as
dataset.josnin repo root, then run scripts in order.