-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compute the gaussian_radius?Who can tell me the formula about it?Thank you! #110
Comments
i have the same question. i have tryed to derive the mathematical formulas.but mine is different with the author's code |
just the previous datasets like COCO is ok |
Its my code in CenterNet and it can improve the performance a little! The formula can get by MATLAB Simulink. I need time to do this. a = min((1 - min_overlap) / (1 + min_overlap) * width, 0.5 * width) |
@qiuhaining ok,can you underline the code you have changed or just a picture,because i can not easily find the diversity |
Was this a small bug? Has someone noticed any improvement after re-typing the formulas? |
@ggsggs i have tried.the result is that AP is almost the same,but AR is higher. i haven't found the reason why |
Oh, interesting. Was it a significant improvement in AR? |
@ggsggs the result as below: |
@ggsggs by the way,my work is based on the paper centernet(objects as points),using the model resdcn-18 |
@fenglv12345 Thank you for the experiments. ~1-3 points higher! It's not bad at all :)
I am also working with CenterNet(objects as points one), actually. So it is good to know. |
@ggsggs thanks for your reminding which make me deep into the problem,perhaps i found the reason why. And i have a idea to make the AP higher while the AP is higher. By the way,there is some other method which has the problem (COCO detection challenge . focus on the MSRA) |
@fenglv12345 @ggsggs , In CenterNet I use the modified gaussian_radius you mentioned above, and keep other training parameters invariable,I use DLA34dcn, but both the AP and AR reduce. Can you tell me how you get the AR increase? Do you change any other hyper-parameter? |
@CF2220160244 my work in based on resdcn18 ,i didn't change any hyper-parameter,maybe there is some wrong with your implement. the formula as below.or you can show me your code |
@fenglv12345 ,my code is: |
what about a and b? please understand the formula,you should also change the gaussian function,rather than just the r |
(1)get r |
by the way,you don't have to calculate this :np.sqrt(width ** 2 + height ** 2),just use w and h |
Thank you very much, I will try! @fenglv12345 |
@fenglv12345 #def gaussian2D(shape, sigma=1): def draw_umich_gaussian(heatmap, center, radius, k=1): def gaussian_radius(det_size, min_overlap=0.7): |
@fenglv12345 |
@fenglv12345 |
@seekFire as below |
@CF2220160244 which model you have trained?dla34 or res18?res18 worked.and dla34 didn't work,i am trying to fix the problem,not the formula but other things, i will upload my code two or three days later on my repositories |
@fenglv12345 Good! Thank you very much! |
@fenglv12345 I train DLA. Looking forward to your result! |
@fenglv12345 |
@seekFire we don't use draw_dense_reg |
@fenglv12345 Do you have any progress about the training? |
@fenglv12345 |
@qiuhaining i follow your code,but get error while training,have u change code expect the image u show |
which size should i use to calculate the radius of the gaussion? i believe the shape should be the size of the gt bbox divided by the stride, but the code seem to use the original size of the gt bbox ? did i miss something ? |
when the radius = 0, maybe small object cause? |
@ranjiewwen yes, the stride in centernet is 4, If the short edge of the object only occupies 3 pixels, floor(3/4)=0 |
Must be a mistake |
Hi @fenglv12345 , |
@fenglv12345 你好,请问你在前面放的你的代码图里,ra和rb与公式相反了,是否是写错了呢 |
Hi @JyunYuLai , |
In my experiment useing right method to generate gaussian heatmap will make result bad surprisingly Intuitively it should improve the perfomance, so really upset about that. Let's named origin generating method as my dataset is aerial image.here's example of though the model trained by the model trained by |
以这种方式生成的高斯分布是带有方向性的,看你的数据应该是旋转box,但是只依靠上述的高斯分布生成方法只能是对正矩形有效吧 |
Hello! Excuse me, can you share the code for drawing these two diagrams? |
Hi. Using quadratic formula, How should I proceed to simplify the equation to get which is calculated by using the concept of overlapping in the diagonal line of the 2 bounding boxes |
收到了!谢谢!
|
No description provided.
The text was updated successfully, but these errors were encountered: