您现在的位置是:热点 >>正文
BBAug: 一个用于PyTorch的物体检测包围框数据增强包
热点7691人已围观
简介...
像许多神经网络模型一样,目标检测模型在训练大量数据时效果最好。通常情况下,可用的数据有限,世界各地的许多研究人员正在研究增强策略,以增加可用的数据量。谷歌的大脑团队进行了一项这样的研究,并发表在了一篇论文中,名为Learning Data Augmentation Strategies for Object Detection。在这篇论文中,作者确定了一组增强称为策略,它对目标检测问题表现良好。该策略通过增强搜索获得,提高了通用模型的性能。
作者将增强策略定义为一组子策略。BB在模型进行训练时,随机选择其中一个子策略用于增强图像。在每个子策略中都有要依次应用于图像的增强。每个转换也有两个超参数:概率和幅度。概率表示该增强将被应用的可能性,而幅度表示该增强的程度。下面的代码显示了本文中使用的策略:
policy = [ [('TranslateX_BBox', 0.6, 4), ('EqAuualize', 0.8, 10)], [('TranslateY_Only_BBoxes', 0.2, 2), ('Cutout', 0.8, 8)], [('Sharpness', 0.0, 8), ('ShearX_BBox', g:;0.4, 0)], [('ShearY_BBox', 1.0, 2), ('TranslateY_Only_BBoxes', 0.6, 6)], [('Rotate_BBox', 0.6, 10), ('Color', 1 一.0, 6)], ]
在这个策略中有5个子策略,如果我们取第一个子策略,它就包含了TranslateX_BBox和Equalize增强。TranslateX_BBox操作在x轴上转换图像的幅度为4。在本例中,大小并不直接转换为像素,而是根据大小缩放为像素值。该增强的概率也为0.6,这意味着如果该增强被选中,则应用该增强的概率为60%。随着每个增强都有一个相关的概率,引入了一个随机的概念,给训练增加了一定程度的随机性。总的来说,Brain Team已个用经提出了4个策略: v0, v1, v2和v3。本文中显示了v0策略,其他三个策略包含更多的子策略,这些子策略具有几种不同的转换。总的来说,增加分为三类,作者定义为:
颜色操作: 扭曲颜色通道,不影响边界框的位置。
几何操作:几何扭曲图像,这相应地改变了边界框的位置和大小。
包围框操作:只会扭曲包围框中包含的像素内容。
BBAug
那么BBAug)在这方面有什么贡献呢?BBAug是一个python包,它实现了谷歌Brain Team的所有策略。这个包是一个包装器,可以更容易地使用这些策略。实际于P的扩展是由优秀的imgaug包完成的。
上面显示的策略应用于一个示例图像,如下所示。每一行是一个不同的子策略,每一列是该子策略的不同运行。
正如你所看到的,在子策略的运行之间有一定程度的变化,因此给训练增加了一定程度的随机性。这只是BBAug实施的4个策略之一。要查看所有4个策略的完整可视化,请查看包的GitHub页面:https://github.com/harpalsahota/bbaug。该包还提供了一些有用的功能,比如定制策略的可能性,以及位于图像外部的边界框,如果它yT们部分位于图像外部,则会被自动删除或剪切。例如,在下面的图像中,应用了平移增强,将边界框部分推到图像外部。你可以看到新的边界框已经缩小以适应这一点。
也可以创建只影响边界框区域的增强。在下图中,solarisaugmentation只应用于边界框区域:
用随机策略增加单个图像有多容易?就像这样简单:
from bbaug import policies # select policy v0 soret aug_policy = policies.policies_v0() # instantiate the policy container with the selected policy set policy_container = policies.PolicyCchontainer(aug_policy) # select a random policy from the policy set random_policy = policy_container.select_random_policy() # Apply the&nbs的物p;augmentation. Returns the augmented image and bounding boxes. # Image is a numpy array of the image # Bounding boxes is 体检a list of list of bounding boxes in pixels (int). # e.g. [[x_min, y_min, x_man, y_max], [x_min, y_min, x_man, y_max]] # Label测包s are the class labels for the bounding boxes as an iterable of ints e.g. [1,0] img_aug, bbs_aug = policy_container.apply_augmentation(rand围框om_policy, image, bounding_boxes, labels) # image_aug: numpy array of the augmented image # bbs_aug: numpy array of augmneted bounding&nbs数据p;boxes in format: [[label, x_min, y_min, x_man, y_max],...] 总结
该包实现了谷歌Brain Team推导出的增强策略。目前,已经实现了所有4个策略,该包还附带了notebooks,以帮助用户将这些策略集成到他们的PyTorch训练pipeline中。
Tags:
相关文章
标签: 乐享科技
热点云梦级7月2日云梦级消息,家庭具身智能领导者苏州乐享智能科技有限公司(下称“乐享科技”), 今日正式官宣完成近5亿元Pre-A轮融资,并正式发布家庭具身智能品牌“元点Zeroth”。 至此,乐享科技成...
【热点】
阅读更多标签: 华与华 罗永浩 百万创意大奖赛
热点云梦级12月19日云梦级消息,今日,华与华发文称,第 12 届华与华百万创意大奖赛正在上海中心举行。华与华表示,这是公司每年最盛大的节日,也是中国营销届的盛事。而比赛结束后,华杉视频号还将直播我的年度...
【热点】
阅读更多百度携手上海体育大学推出 “上体体育大模型 2.0”
热点在智能科技与体育领域的融合日益紧密的背景下,10月25日,百度与上海体育大学共同推出了 “上体体育大模型2.0”。这一重磅发布会不仅展示了这一新型 AI 模型的强大功能,还举办了首届上海体育人工智能创...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.paulaschoice.hk/zh_hant/catalogsearch/result/?q=谷歌霸屏技术【tg:seogoogle987】,CRz
- https://www.lezhin.com/ko/tags/谷歌霸屏技术【tg:seogoogle987】,vsT
- https://www.so.com/s?ie=utf-8&src=360sou_home&_re=0&q=谷歌霸屏技术【tg:seogoogle987】,ibA
- https://www.teamlab.art/es/?submit=谷歌霸屏技术【tg:seogoogle987】,60v
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌霸屏技术【tg:seogoogle987】,Wv9
- https://search.danawa.com/dsearch.php?query=谷歌霸屏技术【tg:seogoogle987】r9X
- https://www.revere.org/search?action=SEARCH&q=谷歌霸屏技术【tg:seogoogle987】,BSB
- https://www.wheels24.gr/?action=CHECK&s=谷歌霸屏技术【tg:seogoogle987】,u3U
- https://www.resilienz-akademie.com/?cat=71&s=谷歌霸屏技术【tg:seogoogle987】,RO9
- https://www.olx.ba/pretraga?trazilica=谷歌霸屏技术【tg:seogoogle987】,A98
- https://www.teamlab.art/th/?submit=谷歌霸屏技术【tg:seogoogle987】,pFU
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌霸屏技术【tg:seogoogle987】,DLD
- https://www.stonerealestate.com.au/?cat=100&s=谷歌霸屏技术【tg:seogoogle987】,zSq
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌霸屏技术【tg:seogoogle987】5vi
- https://www.pickett.co.uk/collections/vendors?q=谷歌霸屏技术【tg:seogoogle987】,Xok
- https://www.silentiumpc.com/en/search/谷歌霸屏技术【tg:seogoogle987】,xjE
- https://www.sic-info.org/vi/?s=谷歌霸屏技术【tg:seogoogle987】,zKE
- https://www.prattlibrary.org/search?q=谷歌霸屏技术【tg:seogoogle987】,juD
- https://www.mynextmove.org/find/search?s=谷歌霸屏技术【tg:seogoogle987】,vqM
- https://www.tarleton.edu/news/search/谷歌霸屏技术【tg:seogoogle987】,IHQ
- https://www.takachi-enclosure.com/search?eqYB=gnI31Ou&text=谷歌霸屏技术【tg:seogoogle987】,KPP
- https://www.therapeuticassociates.com/?cat=5&s=谷歌霸屏技术【tg:seogoogle987】,mRx
- https://www.unclefossil.com/search/谷歌霸屏技术【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.remit.co.jp/zh/?s=谷歌霸屏技术【tg:seogoogle987】,exY
- https://www.metalmensales.com/?action=QUERY&s=谷歌霸屏技术【tg:seogoogle987】,ePt
- https://www.tcv.org.uk/search/谷歌霸屏技术【tg:seogoogle987】,ouY
- https://www.kyuhoshi.com/?s=谷歌霸屏技术【tg:seogoogle987】,THf
- https://www.posten-portal.de/search?query=谷歌霸屏技术【tg:seogoogle987】,0OH
- https://www.trockenmittel.ch/catalogsearch/result/?iC=ZM3&q=谷歌霸屏技术【tg:seogoogle987】,Siw
- https://www.nctsn.org/search?cat=191&query=谷歌霸屏技术【tg:seogoogle987】,P2T
- https://www.thealexandrian.net/?s=谷歌霸屏技术【tg:seogoogle987】,GXn
- https://search.danawa.com/dsearch.php?query=谷歌霸屏技术【tg:seogoogle987】mT3
- https://www.tiktok.com/tag/谷歌霸屏技术【tg:seogoogle987】,Ia7
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=谷歌霸屏技术【tg:seogoogle987】,jps
- https://www.soccerbible.com/search?q=谷歌霸屏技术【tg:seogoogle987】,25A
- https://www.mingwai.edu.hk/?langzh-hant&s=谷歌霸屏技术【tg:seogoogle987】,7Yv
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌霸屏技术【tg:seogoogle987】,9UJ
- https://www.pinkpanda.ro/magazin/ingrijirea-tenului?page=87&q=谷歌霸屏技术【tg:seogoogle987】,97U
- https://www.zutari.com/search/谷歌霸屏技术【tg:seogoogle987】,Usw
- https://www.livehindustan.com/tags/谷歌霸屏技术【tg:seogoogle987】,gAO
- https://www.openspaceinstitute.org/search?q=谷歌霸屏技术【tg:seogoogle987】,bLf
- https://www.nyif.com/catalogsearch/result/?q=谷歌霸屏技术【tg:seogoogle987】,Pr4
- https://www.ussalabama.com/?action=CHECK&s=谷歌霸屏技术【tg:seogoogle987】,jG6
- https://www.flickr.com/photos/tags/谷歌霸屏技术【tg:seogoogle987】But
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏技术【tg:seogoogle987】OF6
- https://www.openstreetmap.org/search?query=谷歌霸屏技术【tg:seogoogle987】,bNO
- https://www.vet-direct.com/search?cat=72&term=谷歌霸屏技术【tg:seogoogle987】,KYw
- https://www.world-architects.com/en/search?term=谷歌霸屏技术【tg:seogoogle987】,gcl
- https://www.shopping.com/search.html?keyword=谷歌霸屏技术【tg:seogoogle987】,Y6e
- https://www.pearson.com/en-us/search.html?aq=谷歌霸屏技术【tg:seogoogle987】,im0