By masking the actual village area, this model can be used by AI agents, automation tools, or game logic scripts to understand where troops cannot be deployed, perfectly mapping the playable boundaries of the game.
The following image showcases the model's high-precision instance segmentation on a validation batch during training. The overlaid colored masks represent the exact "Base Area" identified by the AI.
We provide comprehensive training metrics to demonstrate the robustness and accuracy of this model. It achieves a remarkable 98.5% mAP50 for the BaseArea class on validation data.
1import cv2
2from ultralytics import YOLO
3
4# Load the model directly from Hugging Face
5model = YOLO("hf://nihatxp/clash-of-clans-base-segmentation/coc_deployable_seg.pt")
6
7# Perform inference on your CoC screenshot
8results = model.predict(source="your_village_screenshot.jpg", conf=0.25)
9
10# Show the results
11results[0].show()
This model is intended for educational purposes, computer vision research, and building non-malicious game assistants.