Faster-Rcnn
深度学习入门
winnerziqi
这个作者很懒,什么都没留下…
展开
-
mmdetection环境配置,三个目标检测模型训练
一、colab环境配置依次执行以下命令,在这里我用的是VOC数据集cd /content/drive/MyDrive!pip install torch==1.5.0 torchvision==0.6.0!pip install mmcv-full==latest+torch1.5.0+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html!git clone https://github.com原创 2021-04-09 15:57:28 · 472 阅读 · 0 评论 -
faster-rcnn中的sample函数注释解析
class sampler(Sampler): def __init__(self, train_size, batch_size): self.num_data = train_size # 得到数据的数量 self.num_per_batch = int(train_size / batch_size) # 得到数据批次的标号 self.batch_size = batch_size # self.range = torch.arange(0,batch_size).原创 2021-03-27 14:39:10 · 314 阅读 · 1 评论 -
pascal_voc添加绘制PR-REC曲线的功能
from __future__ import print_functionfrom __future__ import absolute_import# --------------------------------------------------------# Fast R-CNN# Copyright (c) 2015 Microsoft# Licensed under The MIT License [see LICENSE for details]# Written by Ross原创 2021-03-16 10:45:28 · 424 阅读 · 1 评论 -
faster-rcnn.pytorch在colab上能跑通的完整程序
下载以及安装库cd /content/drive/MyDrive!git clone https://github.com/jwyang/faster-rcnn.pytorch.gitcd /content/drive/MyDrive/faster-rcnn.pytorch!git checkout -f pytorch-1.0!mkdir data!pip install -r requirements.txt!pip install scipy==1.2.1安装lib库cd /con原创 2021-03-14 08:34:18 · 427 阅读 · 0 评论 -
Faster-rcnn baseline环境配置、学习记录
sudo pip uninstall torch用来改变pytorch版本sudo pip install torch==0.4.0 -f https://download.pytorch.org/whl/cu90/stable用来安装指定版本的pytorch原创 2020-12-25 09:13:32 · 280 阅读 · 1 评论 -
经典回顾Faster RCNN
1.1 回顾多通道卷积的基础知识输入有3个通道,同时有2个卷积核。对于每个卷积核,先在输入3个通道分别作卷积,再将3个通道结果加起来得到卷积输出。所以对于某个卷积层,无论输入图像有多少个通道,输出图像通道数总是等于卷积核数量!对多通道图像做1x1卷积,其实就是将输入图像于每个通道乘以卷积系数后加在一起,即相当于把原图像中本来各个独立的通道“联通”在了一起。...原创 2020-12-29 11:49:27 · 249 阅读 · 0 评论 -
python中类的用法
class Animal(): #__init__() 用于初始化实例的属性 #类中的每个属性都必须有初始值, def __init__(self,name,age): self.name = name self.age = age #类的方法 def eat(self): print("Animal " + self.name + " is eating foods") def sleep(self): pri原创 2020-12-31 20:55:49 · 263 阅读 · 0 评论 -
faster-rcnn.pytorch-1.0的jwyang当前最火版本代码复现与讲解
linux命令流程1、先安装所有环境pip install -r requirements.txt2、然后再进行适配sudo pip uninstall torchsudo pip install torch==1.0.0sudo pip uninstall torchvisionsudo pip install torchvision==0.2.1sudo pip uninstall scipysudo pip install scipy==1.0.03、可以跑通的版本号cy原创 2021-01-03 16:17:56 · 3747 阅读 · 6 评论 -
目标检测数据增强:显示出带框的照片
文章目录1、更改xml的属性2、重命名照片和xml文件3、划分训练集和验证集4、同步缩放图片和xml标注5、同时切割图片与xml标注1、更改xml的属性可以根据实际情况注释掉某些内容,比如import osimport os.pathimport xml.dom.minidompath="./Annotations_new"#生成新xml的路径path_xml = r'D:\code\data\Annotations'#输入的xml路径path_img=r'D:\code\data\JP原创 2021-01-13 09:21:49 · 416 阅读 · 0 评论 -
深度学习numpy与tensor基础知识、关系与区别,通过pytorch构建网络加载数据
开局一句话import numpy as np1、生成numpy数组直接转换np.array(list1)random模块生成np.random.random([3,3])创建特定形状np.zeros([3,3])arange/linspace模块生成np.arange(1,4,0.5),只有一个数字的话为1-数字2、获取元素与python中类似,直接nd11[3:6]random.choice函数可以从指定样本中随机抽取数据3、Numpy的数学运算对应相乘:A*B/np.原创 2021-01-16 17:59:17 · 3132 阅读 · 2 评论 -
如何离线安装pytorch或者torchvision等包
pytorch与torchvision仓库https://download.pytorch.org/whl/torch_stable.html#python扩展包仓库https://www.lfd.uci.edu/~gohlke/pythonlibs/离线下载包方式:下载whl文件放到某目录中cd命令在命令行中进入到该目录pip install xxx.whl进行安装...原创 2021-01-17 09:06:18 · 581 阅读 · 0 评论 -
Faster-Rcnn中voc_eval.py计算AP代码详解
# --------------------------------------------------------# Fast/er R-CNN# Licensed under The MIT License [see LICENSE for details]# Written by Bharath Hariharan# --------------------------------------------------------from __future__ import absolute_原创 2021-01-27 17:52:37 · 1089 阅读 · 0 评论