Lately, I’ve been diving deeper into Computer Vision, and I decided to run a hands-on experiment to test the robustness of Object Detection models against attacks.
The idea was to fool YOLOv8 into failing to detect objects—without changing a single thing in the model weights!
I used two of the most well-known Adversarial Attack techniques:
FGSM (Fast Gradient Sign Method)
PGD (Projected Gradient Descent)
I tested this on YOLOv8m using 100 images from the COCO 2017 Dataset.
Throughout the experiment, I focused on understanding the Detection Loss, using gradients to subtly perturb the images, executing the attacks, and then evaluating the model's performance and visually comparing the results.
And the result? Let’s just say YOLOv8 wasn’t ready for this surprise! 😅
I documented the entire experiment in a Kaggle Notebook—covering everything from the core concept and implementation to evaluation and visualization.
If you're curious about how it was built and what happened to the model, you can check out all the details here:
🔗 Kaggle Notebook: https://www.kaggle.com/code/iismmail/adversarial-attacks-on-yolov8-fgsm-vs-pgd
I’d love to hear your thoughts or any feedback on the experiment! ❤️
#AI #ComputerVision #YOLOv8 #AdversarialAttacks #DeepLearning #MachineLearning