Algorithm 4
From: Real time fire and smoke detection using vision transformers and spatiotemporal learning

Transformer encoder with self-attention method.
From: Real time fire and smoke detection using vision transformers and spatiotemporal learning

Transformer encoder with self-attention method.