βοΈ Clash of Clans Area Detection (Town Hall 11 and Below)
This repository hosts a custom YOLOv8 object detection model trained to detect troop deployment boundaries in the game Clash of Clans. Specifically, it is trained to identify the valid deployable areas and boundary outlines for enemy bases that are Town Hall 11 and below.
βοΈ Training Information
The model was built using the Ultralytics YOLOv8 framework with the following configurations:
- Base Model: YOLOv8n (Nano architecture for fast inference)
- Epochs Trained: 300
- Image Size: 640x640
π Training Results & Loss Curves
Below are the core indicators of how the model performed during the 300 epochs training! You can observe how the precision and recall stabilized as the dataset was digested.
Metrics Curve
Confusion Matrix
Sample Output Predictions (Validation)
π» Usage
To test and run this model locally using Python and the Ultralytics library, simply load the weights:
from ultralytics import YOLO
# Load the trained model
model = YOLO('best.pt')
# Perform predictions on a Clash of Clans screenshot
results = model('path/to/your/screenshot.jpg')
# Show and save results
results[0].show()


