By changing the CSPDarknet53 spine of YOLOv5s with ViT, the model can seize each regional and world dependencies in photos, leading to extra accurate detection of fire and smoke beneath complicated circumstances. We Consider the general performance from the proposed design working with an extensive Fire and Smoke Detection Dataset, https://rafaell1c7o.techionblog.com/30863917/a-secret-weapon-for-fire