Comments (6)
Since the dcn implement of mmcv and the author is different, you may use below codes to fix the issue.
for key in net_weight.keys():
key1=key
key2=key
if key[-18:]=="conv_offset.weight" :
key1=key[:-18]+"conv_offset.weight"
key2=key[:-18]+"conv_offset_mask.weight"
if key[-16:]=="conv_offset.bias" :
key1=key[:-16]+"conv_offset.bias"
key2=key[:-16]+"conv_offset_mask.bias"
net_weight.update({key1: pretrained_model[key2]})
from e2ec.
I have not provided a pre-trained model without the DCN. If you need to remove the DCN, you will need to train the model from scratch.
from e2ec.
if I use mmcv instead,can I use your pre-trained model?
An error occured:
"KeyError: 'dla.dla_up.ida_0.proj_1.conv.conv_offset.weight'
from e2ec.
Yes it can. I have tested it before with no problems. Please list your changes so that I can find out what is causing your problem.
from e2ec.
Thanks for your reply!
I tried to train the model on cityscape and it worked well, but some problem occured when I trained on my data.
I changed the info.py and changed configs/coco.py ,set model.heads['ct_hm'] = 4, which is the class num of my data.
the code run successfully, but the test result is 0.
The output information are as follows:
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
WARNING: NO MODEL LOADED !!!
......
eta: 0:00:04 epoch: 4 step: 39 ct_loss: 7.3781 init_py_loss: 133.9993 coarse_py_loss: 68.5959 py_loss_0: 68.5285 py_loss_1: 68.4910 end_set_loss: 0.0000 loss: 73.3108 data: 1.9157 b
atch: 4.1253 lr: 0.000100 max_mem: 18490
eta: 0:00:04 epoch: 4 step: 39 ct_loss: 6.9518 init_py_loss: 130.4168 coarse_py_loss: 71.7408 py_loss_0: 71.7066 py_loss_1: 71.6976 end_set_loss: 0.0000 loss: 74.9690 data: 1.7036 b
atch: 4.1342 lr: 0.000100 max_mem: 18491
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 54/54 [03:54<00:00, 4.34s/it]
Loading and preparing results...
DONE (t=0.20s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type segm
DONE (t=0.31s).
Accumulating evaluation results...
DONE (t=0.04s).
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.000
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.000
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.000
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.000
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.000
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.000
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.000
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.000
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = -1.000
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.000
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.000
I have visulized my data, and there is no problem with my data.
from e2ec.
if I use mmcv instead,can I use your pre-trained model? An error occured: "KeyError: 'dla.dla_up.ida_0.proj_1.conv.conv_offset.weight'
yes, I had the same problem.
Maybe I need to retrain?
from e2ec.
Related Issues (20)
- Question about Multi-direction alignment (MDA) HOT 2
- About detector HOT 2
- KeyError: 'dla.dla_up.ida_0.proj_1.conv.conv_offset.weight' HOT 4
- Keep org resolution HOT 1
- what is dla? HOT 1
- detail of DML loss HOT 1
- 数据集链接不可用 HOT 1
- HI, sir HOT 2
- Question about the MDA and DML HOT 1
- 我在coco和kitti使用了您的预训练模型进行了测试发现准确率为0,可视化的图像也是错误的,是哪步出现了问题呢 HOT 5
- 请问可以提供下SBD数据集的visualize方式吗 HOT 1
- cityscapes_anno.tar.gz show that the link has expired HOT 3
- 训练的AP和AR都为0 HOT 2
- 系统问题 HOT 3
- 直接推理可视化混乱的情况 HOT 8
- 安装问题 HOT 2
- 同时画出外接矩形
- Coarse -> refine process
- About training setting of cityscapes HOT 1
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 e2ec.