Comments (7)
For mmdet < 3.0, refer this for optimizer
from fgd.
I revised the optimizer,but it still has error.
File "/home/yxy/anaconda3/envs/yolox/lib/python3.7/site-packages/mmdet/models/backbones/csp_darknet.py
patch_top_left = x[..., ::2,::2]
TypeError: string indices must be integers
But I use the code to distill retinanet,there is no error.
from fgd.
Do you try yolox without distillation ? The error may in mmdet codes instead of distillation.
from fgd.
I try yolox without distillation ,there is no error. I used the version mmdet==2.19.0 and mmcv-full==1.5.0 , is it maybe related to mmdet and mmcv version mismatch? Thank you for your reply.
from fgd.
Fine, I do not know how to fix it either. You can run yolox, that means the mmdet and mmcv-full is matched.
from fgd.
scale_y = 1.0
scale_x = 1.0
gt = kwargs['gt_bboxes']
if self.yolox:
scale_y = self.student._input_size[0] / self.student._default_input_size[0]
scale_x = self.student._input_size[1] / self.student._default_input_size[1]
student_loss, img, gt = self.student.forward_train(img, img_metas, **kwargs)
else:
student_loss = self.student.forward_train(img, img_metas, **kwargs)
with torch.no_grad():
fea_t = self.teacher.extract_feat(img)
您好,在in the mmdet/distillation/distillers/detection_distiller.py 这个文件里
当self.yolox is true, fea_t = self.teacher.extract_feat(img) 里面的img传入的实际并不是图像,而是loss_bbox.
然后,您能看下,是不是这个问题导致输入的类型错误。但是当我改成student_loss = self.student.forward_train(img, img_metas, **kwargs)的时候,又会报下面的错误。但是我看代码里面有特征图对齐的代码,不知道这是怎么搞的了
assert preds_S.shapel-2:] == preds_T.shapel-2:],'the output dim of teacher and student differ AssertionError: the output dim of teacher and student differ
from fgd.
返回的应该就是img,你看看你有没有对yolox这个detetcor做修改,这里执行forward_train后会返回loss, img, bbox
from fgd.
Related Issues (20)
- Using fgd_retina_r101_fpn_2x_distill_retina_r50_fpn_2x_coco.py to find retina_ R50 distillation result AP is 37.3%? HOT 1
- Why does inference slow down with weights generated by FGD? HOT 1
- How Can I install mmdet 2.11.0 while its latest version is 2.28.1? HOT 1
- no module named 'mmdet.distillation' HOT 1
- Whether additional monitoring training is required for gc-block? HOT 2
- The pre-trained model for Solo_r101_3x.pth HOT 1
- 1 HOT 1
- ConfigDict has no attribute "model" HOT 6
- 请问作者有在yolov5上实现效果吗 HOT 2
- Welcome update to OpenMMLab 2.0
- KeyError: 'neck.fpn_convs.4.conv'
- invalid pre-training HOT 7
- Why the mAP is lower after distillation in VOC? HOT 1
- Can the network be replicated using the 2023 version of mmdetection? HOT 4
- YoloX-l distill Yolox-s with coco pretrained weights HOT 1
- Drop in mAP after Retinanet Distillation HOT 10
- How to output the Params or FLOPs after FGD distillation? HOT 5
- Some questions about gcblock HOT 1
- 你好,我看到您在GitHub更新了yolox的相关蒸馏的数据
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 fgd.