Comments (5)
@Zheweiqiu Hi Zheweiqiu, thank your for contacting me.
This is a good question. Anchor accuracy is measured by average of IOU and thus only represent one side of coin. From my perspective, some of the aerial image dataset can achieve similar performance with more small objects. So if you are working on dataset with small objects (such as face detection, crowd counting etc), then yes I think it is okay. However, I highly suggest to visualize them and so you can actually see how they work.
"Cluster" means how many group you want to search. Say you set it as 3, then you will find 3 anchors scale as well as 3 anchor_ratio. So finally you reach to 9 anchors (3*3) in this case. This is case dependent and I'm not able to tell exact number unless I see visualization.
from anchor_computation_tool.
@Cli98
Thanks for your reply!
One problem I found is that I got different anchor_scale and anchor_ratio over the same dataset. The accuracy is pretty close though. And I substitute the default anchor_scale and anchor_ratio with the self-calculated results but the loss is higher. Any idea how that happened?
Here are example outputs over the same dataset.
Accuracy: 55.52%
Boxes:
[[259 148]
[ 55 38]
[125 62]]
computed paras: ([8.09375, 1.71875, 3.90625], [(1, 0.5714285714285714), (1, 0.6909090909090909), (1, 0.496)])
Accuracy: 55.52%
Boxes:
[[125 62]
[259 148]
[ 55 38]]
computed paras: ([3.90625, 8.09375, 1.71875], [(1, 0.496), (1, 0.5714285714285714), (1, 0.6909090909090909)])
Accuracy: 55.54%
Boxes:
[[129 63]
[ 57 39]
[262 150]]
computed paras: ([4.03125, 1.78125, 8.1875], [(1, 0.4883720930232558), (1, 0.6842105263157895), (1, 0.5725190839694656)])
from anchor_computation_tool.
@Cli98
Thanks for your reply!
One problem I found is that I got different anchor_scale and anchor_ratio over the same dataset. The accuracy is pretty close though. And I substitute the default anchor_scale and anchor_ratio with the self-calculated results but the loss is higher. Any idea how that happened?
Here are example outputs over the same dataset.Accuracy: 55.52%
Boxes:
[[259 148]
[ 55 38]
[125 62]]
computed paras: ([8.09375, 1.71875, 3.90625], [(1, 0.5714285714285714), (1, 0.6909090909090909), (1, 0.496)])Accuracy: 55.52%
Boxes:
[[125 62]
[259 148]
[ 55 38]]
computed paras: ([3.90625, 8.09375, 1.71875], [(1, 0.496), (1, 0.5714285714285714), (1, 0.6909090909090909)])Accuracy: 55.54%
Boxes:
[[129 63]
[ 57 39]
[262 150]]
computed paras: ([4.03125, 1.78125, 8.1875], [(1, 0.4883720930232558), (1, 0.6842105263157895), (1, 0.5725190839694656)])
Hi @Zheweiqiu , this should be expected due to the property of kmean algorithm. However, the difference should not be too much. From your result, I think it is okay.
"And I substitute the default anchor_scale and anchor_ratio with the self-calculated results but the loss is higher"
Which repo you are using? What is the loss you refer to? More info plz.
from anchor_computation_tool.
@Cli98
efficientdet:Yet-Another-EfficientDet-Pytorch
Both classification loss and regression loss remains at a higher level compared to default anchor setting for the same number of epoch.
For my dataset, it contains only one class and the bounding box is rectangle.
from anchor_computation_tool.
@Cli98
efficientdet:Yet-Another-EfficientDet-Pytorch
Both classification loss and regression loss remains at a higher level compared to default anchor setting for the same number of epoch.
For my dataset, it contains only one class and the bounding box is rectangle.
@Zheweiqiu So you are working on detection. Let me ask,
- Are you able to get satisfying result by using default anchors?
- How AP changes after you modify it?
Loss tells u nothing BTW. I have argued this in that repo.
from anchor_computation_tool.
Related Issues (13)
- what is compute_overlap HOT 8
- Dataset HOT 4
- Input ratios for anchor inspector may have format (h,w)? HOT 4
- need your help HOT 1
- The size between object need to detect and images HOT 3
- anchor scale and anchor ratios in Yet-Another-EfficientDet-Pytorch HOT 5
- nothing shows with inspect tool HOT 14
- anchor_base_scale and anchor_stride setting HOT 4
- Wouldn't be better to scale the boxes? HOT 7
- How to run with json file HOT 1
- what the ****! HOT 4
- Problems of CLUSTERS. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anchor_computation_tool.