Updated model checkpoints and descriptions
Browse files- README.md +116 -0
- checkpoints/model_corridor_64.pt +3 -0
- docs/Dataset.svg +0 -0
README.md
CHANGED
|
@@ -1,3 +1,119 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- anomaly-detection
|
| 7 |
+
- computer-vision
|
| 8 |
+
- vae-gan
|
| 9 |
+
- one-class-classification
|
| 10 |
+
- robotics
|
| 11 |
+
- industrial-ai
|
| 12 |
+
- visual-anomaly-detection
|
| 13 |
+
- pytorch
|
| 14 |
+
library_name: pytorch
|
| 15 |
+
pipeline_tag: image-classification
|
| 16 |
+
datasets:
|
| 17 |
+
- hazards-robots-corridor
|
| 18 |
---
|
| 19 |
+
|
| 20 |
+
# VAE-GAN for Corridor Hazard Anomaly Detection
|
| 21 |
+
|
| 22 |
+
<img src='AD_Robotics_Hazards/docs/Dataset.svg'>
|
| 23 |
+
|
| 24 |
+
This repository contains trained **VAE-GAN model checkpoints** for visual anomaly detection in robotic environments. The models were trained using a one-class learning paradigm, where only normal operating conditions are observed during training and anomalous situations are detected during inference through reconstruction-based anomaly scoring.
|
| 25 |
+
|
| 26 |
+
## Dataset
|
| 27 |
+
|
| 28 |
+
The models were trained on the **Corridor** scenario from the *Hazards&Robots* dataset.
|
| 29 |
+
|
| 30 |
+
### Original Dataset
|
| 31 |
+
|
| 32 |
+
**Hazards&Robots: A Dataset for Visual Anomaly Detection in Robotics**
|
| 33 |
+
|
| 34 |
+
Authors:
|
| 35 |
+
|
| 36 |
+
- Dario Mantegazza
|
| 37 |
+
- Alind Xhyra
|
| 38 |
+
- Luca M. Gambardella
|
| 39 |
+
- Alessandro Giusti
|
| 40 |
+
- Jérôme Guzzi
|
| 41 |
+
|
| 42 |
+
Original resources:
|
| 43 |
+
|
| 44 |
+
- Zenodo: https://zenodo.org/records/7859211
|
| 45 |
+
- GitHub: https://github.com/idsia-robotics/hazard-detection
|
| 46 |
+
- IDSIA Robotics Lab: https://idsia-robotics.github.io/
|
| 47 |
+
|
| 48 |
+
### Preprocessed Dataset
|
| 49 |
+
|
| 50 |
+
A preprocessed version of the Corridor dataset prepared for one-class anomaly detection experiments is available on Kaggle:
|
| 51 |
+
|
| 52 |
+
https://www.kaggle.com/datasets/rashidrao/robotics-hazards
|
| 53 |
+
|
| 54 |
+
The dataset has been reorganized into train, validation, and test splits following the standard anomaly detection protocol:
|
| 55 |
+
|
| 56 |
+
- Training set: normal samples only
|
| 57 |
+
- Validation set: normal samples for threshold calibration
|
| 58 |
+
- Test set: normal and anomalous samples
|
| 59 |
+
|
| 60 |
+
All credit for the original data belongs to the Hazards&Robots authors.
|
| 61 |
+
|
| 62 |
+
## Model Architecture
|
| 63 |
+
|
| 64 |
+
The checkpoint is based on a VAE-GAN architecture consisting of:
|
| 65 |
+
|
| 66 |
+
- Encoder network
|
| 67 |
+
- Variational latent representation
|
| 68 |
+
- Decoder / Generator
|
| 69 |
+
- Adversarial discriminator
|
| 70 |
+
|
| 71 |
+
The model is trained to learn the distribution of normal robotic corridor scenes and identify anomalies through reconstruction discrepancies.
|
| 72 |
+
|
| 73 |
+
## Source Code
|
| 74 |
+
|
| 75 |
+
The complete training and evaluation framework used to produce these checkpoints is available at:
|
| 76 |
+
|
| 77 |
+
https://github.com/rashidrao-pk/AD_MultiPointThreshold
|
| 78 |
+
|
| 79 |
+
The repository includes:
|
| 80 |
+
|
| 81 |
+
- VAE-GAN training pipeline
|
| 82 |
+
- Multi-point thresholding framework
|
| 83 |
+
- Threshold calibration utilities
|
| 84 |
+
- Reconstruction-based anomaly scoring
|
| 85 |
+
- Evaluation scripts
|
| 86 |
+
- Visualization tools
|
| 87 |
+
- Support for multiple anomaly detection baselines
|
| 88 |
+
- Reproducible experiments for visual anomaly detection
|
| 89 |
+
|
| 90 |
+
Users interested in retraining the models, reproducing the experiments, or extending the framework are encouraged to use the official repository.
|
| 91 |
+
|
| 92 |
+
## Intended Use
|
| 93 |
+
|
| 94 |
+
This model is intended for:
|
| 95 |
+
|
| 96 |
+
- Visual anomaly detection
|
| 97 |
+
- One-class classification
|
| 98 |
+
- Explainable anomaly detection research
|
| 99 |
+
- Industrial safety monitoring
|
| 100 |
+
- Robotics safety applications
|
| 101 |
+
- Benchmarking anomaly detection algorithms
|
| 102 |
+
|
| 103 |
+
## Citation
|
| 104 |
+
|
| 105 |
+
If you use this model, please cite both the original Hazards&Robots dataset paper and any associated publications describing this VAE-GAN implementation.
|
| 106 |
+
|
| 107 |
+
### Original Dataset Citation
|
| 108 |
+
|
| 109 |
+
Mantegazza, D., Xhyra, A., Gambardella, L. M., Giusti, A., & Guzzi, J. (2023).
|
| 110 |
+
|
| 111 |
+
*Hazards&Robots: A Dataset for Visual Anomaly Detection in Robotics.*
|
| 112 |
+
|
| 113 |
+
Data in Brief, 49, 109264.
|
| 114 |
+
|
| 115 |
+
DOI: https://doi.org/10.1016/j.dib.2023.109264
|
| 116 |
+
|
| 117 |
+
## Acknowledgements
|
| 118 |
+
|
| 119 |
+
This repository redistributes trained model weights only. The original dataset remains the intellectual property of the Hazards&Robots authors and is distributed under its original license. We gratefully acknowledge their contribution to the anomaly detection and robotics research community.
|
checkpoints/model_corridor_64.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efac80da96881aa8ca6b7f95d01e5c4437a554e140249f8700ae16388fd9025a
|
| 3 |
+
size 243879426
|
docs/Dataset.svg
ADDED
|
|