A Dangerous Scene Detection included fire, accident and robbery etc. by using keras in Tensorflow2.
Download Robbery_Accident_Fire_Database2 and spatial_envelope_256x256_static_8outdoorcategories.
Extract dataset into data floder, which should have the following basic structure.
- data/Robbery_Accident_Fire_Database2
1.1) data/Robbery_Accident_Fire_Database2/Accident
1.1) data/Robbery_Accident_Fire_Database2/Fire
1.1) data/Robbery_Accident_Fire_Database2/Robbery
- data/spatial_envelope_256x256_static_8outdoorcategories
$ python train.py or python train.py --lr-find 1
$ python predict.py
$ chmod 777 cmd.sh
$ ./cmd.sh