Calibrating Foundation Models for Training-Free Time Series Anomaly Detection
0
stars
2
commits
Python
primary language
Jul 26, 2026
updated
Installation
conda create -n CalibDetector python=3.11
conda activate CalibDetector
pip install -r requirements.txt
Download the datasets from Google Drive. Extract the downloaded files into the data directory in the project root and organize them as follows:
data/
βββ UCR/
βββ TSB_AD/
Download the required foundation models from Hugging Face:
After downloading the models, update the default values of --moment_checkpoint_path, --tirex_checkpoint_path, --chronos_checkpoint_path, and --patchtst_fm_checkpoint_path in meta_detection.py to match their local checkpoint directories.
python ./data/generated_series_new.py generate --n_samples 6000
sh runners/run_meta.sh
Follow the instructions in runners/run_meta.sh to change the backbone. The default backbone is MOMENT.
sh runners/run_baseline_dm.sh
sh runners/run_train_deep_detection.sh
After downloading the models, update the corresponding checkpoint paths to match the local model directories before running the foundation model baselines.
sh runners/run_all_pretrain.sh
Run each ablation study separately:
sh runners/run_ablation_patching.sh
sh runners/run_ablation_protofrac.sh
sh runners/run_ablation_sampling.sh
sh runners/run_ablation_composer.sh
2 commits
Python
66.7%
Jupyter Notebook
32.0%
Calibrating Foundation Models for Training-Free Time Series Anomaly Detection
0
stars
2
commits
Python
primary language
Jul 26, 2026
updated
Installation
conda create -n CalibDetector python=3.11
conda activate CalibDetector
pip install -r requirements.txt
Download the datasets from Google Drive. Extract the downloaded files into the data directory in the project root and organize them as follows:
data/
βββ UCR/
βββ TSB_AD/
Download the required foundation models from Hugging Face:
After downloading the models, update the default values of --moment_checkpoint_path, --tirex_checkpoint_path, --chronos_checkpoint_path, and --patchtst_fm_checkpoint_path in meta_detection.py to match their local checkpoint directories.
python ./data/generated_series_new.py generate --n_samples 6000
sh runners/run_meta.sh
Follow the instructions in runners/run_meta.sh to change the backbone. The default backbone is MOMENT.
sh runners/run_baseline_dm.sh
sh runners/run_train_deep_detection.sh
After downloading the models, update the corresponding checkpoint paths to match the local model directories before running the foundation model baselines.
sh runners/run_all_pretrain.sh
Run each ablation study separately:
sh runners/run_ablation_patching.sh
sh runners/run_ablation_protofrac.sh
sh runners/run_ablation_sampling.sh
sh runners/run_ablation_composer.sh
2 commits
Python
66.7%
Jupyter Notebook
32.0%