RotatedObjectDetectionEvaluation
This repo is evaluation codes for rotated object detection which uses polygon representation (x1,y1,x2,y2...,x4,y4) of bounding box, mainly based on Deformable DETR.
Install / Use
npx skills add JarvisUSTC/RotatedObjectDetectionEvaluationInstalls into whichever agent you are using.
README
RotatedObjectDetectionEvaluation
Summary
This repo is evaluation codes for rotated object detection which uses polygon representation (x1,y1,x2,y2...,x4,y4) for object, mainly based on Deformable DETR.
Why I create this repo
I know in detectron2 RotatedCOCOEvaluator can satisfy almost all cases for rotated object detection. But it has two limitations. First, it only supports angle representation for rotated rectangle, like (cx,cy,w,h,\theta). But in some cases, the groundtruth is not rotated rectangle and we need polygon representation. Secondly, in some times we need to discuss the testing data using data augmentations, such as rotated data augmentation to explore the model generality. But these evaluation methods I can find are for no change testing dataset. So I rewrite the COCO evaluator to support polygon representation and rewrite the evaluation method of DeformableDetr to support data augmentation for testing data.
Usage
- dataset/Rotatedcoco.py rewrite COCO
- dataset/rotated_coco_eval.py rewrite CocoEvaluator
- dataset/coco_eval.py rewrite CocoEval
- dataset/transforms.py is for data augmentation
- dataset/coco.py needs to be inited for your own data format.
- In engine.py, First store all testing data after augmentations and all prediction results. Then create RotatedCOCOEvaluator using the stored testing data and prediction results to evaluate.
Link
https://github.com/fundamentalvision/Deformable-DETR
https://github.com/cocodataset/cocoapi
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
