CV
枫尘淡默
这个作者很懒,什么都没留下…
展开
-
pytorch代码调试
RuntimeError: expected type torch.DoubleTensor but got torch.FloatTensor 解决方法: 在输入端添加.float() 参考:https://github.com/pytorch/pytorch/issues/2138原创 2019-07-18 10:16:21 · 331 阅读 · 0 评论 -
Faster-CNN思路梳理(2)
代码目录:https://github.com/chenyuntc/simple-faster-rcnn-pytorch 详细解读:https://blog.csdn.net/qq_31355669/article/details/96832027 train.py没什么说的,主要的训练,每次epoch进行验证。 主要是trainer,将模块的加载以及loss的计算,都在这块 rpn中的propa...原创 2019-07-29 23:43:47 · 309 阅读 · 0 评论 -
Faster-CNN完美解读和运行(1)
bbox_tools 回归函数 https://www.cnblogs.com/king-lps/p/8981222.html原创 2019-07-29 13:50:35 · 1747 阅读 · 1 评论 -
二分类,多分类,多标签问题
参考:https://juejin.im/post/5b38971be51d4558b10aad26 多分类的时候,需要将label转化成one hot coding吗?经典的0~9的数字的分类也没有这样做? 说明这样都行,还是在使用交叉熵的时候,自动会转化成[000010000]这种"5"的label??? 多标签,转化成二类的方式进行操作,计算与每个label的损失函数,那么是说每次都进入网络...原创 2019-08-05 10:56:58 · 853 阅读 · 0 评论 -
python语言.json文件转.xml
.json内容 .xml内容 代码: `import xmltodict import json from xml.dom.minidom import Document print(”starting————————————————————“) if __name__ == "__main__": import os def xx_yy_max(data): ...原创 2019-08-07 15:29:14 · 379 阅读 · 1 评论