-
Notifications
You must be signed in to change notification settings - Fork 8k
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
About [sam] layer. #3708
Comments
think it's for thundernet #3702 |
@WongKinYiu could you please share the cfg file? |
yolov3-tiny-sam.cfg.txt |
@WongKinYiu Thanks for sharing another novel architecture! - Would you be kind enough to explain a little about the design? I notice it contains only a single Yolo layer, what about rough cocoAP / inf. time on an RTX? |
u can compare it with efficientnet-b0 by the way, thundernet is a 2-stage detector. |
Oh, I see this is the CEM + SAM + Yolov3 with 42.0% mAP@0.5 with 2.90 BFLOPs.? Sounds great, I'll see how it goes and report back. Have you done any other experimental architectures that you would be happy sharing? Do you think it might be improved by trying to use a pan-like head? |
@LukeAI If you have a time, try to train this model (CEM + SAM + Yolov3 with 42.0% mAP@0.5 with 2.90 BFLOPs) on this dataset: #3114 (comment) For adding result (chart Loss & mAP, BFlops) to this table. |
@AlexeyAB Is there any cfg file of CEM + SAM + Yolov3 ? |
Because there is no parameter can let up-sampling layer up-sample the feature maps to the size before global average pooling layer, I use max-pooling layer instead of global average pooling layer in CEM. If you get error while training the model, try to set random=0 of yolo layer. |
I try to train with: But it immediately aborts with:
UPDATE: it works if I set random=0 |
training now, looking good so far. |
@LukeAI |
@WongKinYiu I mean, I know that the scale models have "scale_x_y = 1.05" or something like that in the Yolo layers, I just don't really understand what an appropriate value would be. I could try with 1.05 and just see how that works? or 1.1? |
@LukeAI to set an appropriate value, plz see #3293 (comment) |
Hi all, With anchors generated from the dataset: Using scale_x_y=1.05 Using swish activations: |
@LukeAI
|
yeah, tiny_pan2 is a good one, here's hoping for a full sized pan2 network. I didn't measure the inf. time, I guess the point of the CEM network is that is very fast whilst still being reasonably accurate? |
@LukeAI Just add comparison table, with final accuracy, FLOPS, and inference time |
I think the mainly improvement is from more anchors/yolo-layers. |
here list some results of my backbone (evaluate on coco test-dev set):
|
Thanks! |
@AlexeyAB Hello, i m on a business trip, i ll share the modified cem sam tonight. |
@AlexeyAB modified-cem-sam-head.txt
|
@WongKinYiu Thanks! |
@AlexeyAB Hello, |
@WongKinYiu When you will find the best cfg-file, please share it, I will add it to this repository. |
@AlexeyAB for best inference speed, i may share this model after discuss with my team. |
Maybe only the new accuracy checking function is different, and the training is just as good?
Did you test it on MS COCO dataset? I will add PAN3 block and new tiny model today there: #3114 (comment) |
@AlexeyAB Yes, all of my experiment results are tested on MS COCO test-dev set. |
@WongKinYiu It seems it is the best cfg-file for this small dataset: #3114 (comment) You can try to train it on MS COCO and check the mAP if you have a time. |
@WongKinYiu Also can you attach entire the best of yours SAM_CEM model (not only head)?
|
Thank you for sharing a good model (yolo_v3_tiny_pan3_aa_ae_mixup_scale_giou). After discuss with my team, I can not share the backbone of #3708 (comment) currently. |
@AlexeyAB |
@WongKinYiu Try to increase assisted_excitation=4000 to assisted_excitation=20000 or 50000 |
COCO test-dev
|
COCO test-dev
|
@AlexeyAB
Then use
|
yes, you should modify the resize function of |
|
yes. just add the case of resize function of |
@WongKinYiu |
@AlexeyAB Is there a need to add CBAM: Convolutional Block Attention Module.pdf |
The kernel function of CAM module and SAM module are SE(squeeze-and-excitation) and SAM, respectively, the already supported by this repo. |
I added resizing ( |
@nyj-ocean |
@WongKinYiu |
Squeeze-and-Excitation blocks (layers: |
@924175302 Example of SE
|
Hi everyone, I have a problem when I train the model which use SE in the architecture. The program can not calculate mAP. I dont know. Please help me, |
I noticed that you added [sam] layer in darknet. How can we use it?
cfg file with [sam]: yolov3-tiny-sam.cfg.txt
COCO test-dev
The text was updated successfully, but these errors were encountered: