pip install -e .Public dataset folder (Google Drive):
# Splitter: https://github.com/SmartData-Polito/Debunk_Traffic_Representation/blob/master/process_finetune_data/Split/per-flow-split/flow_classification/split_based_flow.ipynb
dataset = 'tls'
dataset_path = './data/raw/TLS/sessions'
output_path = './data/flows/TLS/flow'
k = 3 # K-fold
threshold = 5flowstructnet-convert --input /path/to/pcap_root --output /path/to/out_dir --max-ctx-tokens 4096 --workers 8 --resumeflowstructnet-train --data_root /path/to/out_dir --fold_name train_val_split_0 --train_split train --val_split val --out_dir ./runs/exp1flowstructnet-eval --data_root /path/to/out_dir --fold_name train_val_split_0 --split test --ckpt ./runs/exp1/checkpoint-best.ptLicense: Apache-2.0
- Python: 3.10.18
- Torch: 2.5.1+cu121
Conda (recommended):
conda env create -f environment.yml
conda activate flowstructnet
pip install -e .Pip (alternative):
python -m pip install -r requirements.lock.txt
python -m pip install -e .