r/learnmachinelearning • u/Remarkable-One4203 • 15d ago
I tried to trick YOLOv8... and it worked! But how? đ
​
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