- 博客(5)
- 收藏
- 关注
原创 理解DataLoader的迭代逻辑
13,说白了collate_fn就是实现了数据整理的功能,有时候我们dataset里__getitem__会返回dict,比如[{‘A’: 0, ‘B’: 1}, {‘A’: 100, ‘B’: 100}],经过default_collate后会将数据整理成{‘A’: tensor([ 0, 100]), ‘B’: tensor([ 1, 100])},方便后续的pipeline。9,现在我们找到了DataLoader里的sampler。1,__iter__返回。
2024-11-14 21:57:49
898
原创 yolov6-10算法梳理(主要为head部分的设计)
年份:2022机构:美团文章:https://arxiv.org/pdf/2301.05586代码:https://github.com/meituan/YOLOv6。
2024-09-26 17:48:56
1581
原创 数据结构_C++_typedef
typedeftypedef A B相当于给前面的数据类型A起了一个更方便使用的名字B。代码中的pairType element等价于pair<const K, E> element。在下面的构造函数中使用了c++的一种特性,:后面进行赋值操作。pairNode(const pairType& thePair):element(thePair){}等价于pairNode(const pairType& thePair){element = thePair}#pragma
2021-02-04 15:29:16
198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人