上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页
摘要: 1.error while loading shared libraries: libcaffe.so.1.0.0: cannot open shared object file: No such file or directory error while loading shared librar 阅读全文
posted @ 2021-06-25 15:50 无左无右 阅读(834) 评论(0) 推荐(0)
摘要: shell 教程 https://www.runoob.com/linux/linux-shell.html 本文都是摘录与上面网址。 这里只是个人记录,大家需要看还是看上面网址的。 echo test.sh #!/bin/bash echo "Hello World !" 运行: ./test.s 阅读全文
posted @ 2021-06-24 11:05 无左无右 阅读(281) 评论(0) 推荐(0)
摘要: 这是我见过最好的代码了,摘录自u版本的yolov3里面的。 首先看画出的效果图: 每个类用不同颜色框,上面写出类别和分数这些信息,并且是填充。字体大小能够根据图片大小自动调整。 def plot_one_box(x, img, color=None, label=None, line_thickne 阅读全文
posted @ 2021-06-17 16:58 无左无右 阅读(442) 评论(0) 推荐(0)
摘要: SSD的损失函数与region proposal方法有个明显的区别,在于SSD并不是针对所有的检测器计算loss。SSD会用一种匹配策略给每个检测器分配一个真实标签(背景为0,前景为对应的物体类别)。指定的标签为前景的预测器称为正样本(正样本全部计算loss)。标签为背景的预测器是负样本,并不是所有 阅读全文
posted @ 2021-06-14 17:17 无左无右 阅读(734) 评论(1) 推荐(1)
摘要: def build_ssd(phase, size=300, num_classes=21): if phase != "test" and phase != "train": print("ERROR: Phase: " + phase + " not recognized") return if 阅读全文
posted @ 2021-06-10 15:37 无左无右 阅读(586) 评论(0) 推荐(0)
摘要: https://github.com/sksq96/pytorch-summary 安装 pip install torchsummary 使用 from torchsummary import summary summary(your_model, input_size=(channels, H, 阅读全文
posted @ 2021-06-10 10:03 无左无右 阅读(738) 评论(0) 推荐(0)
摘要: 最近面试,被各种问,特别被问到一些很细节的东西我一知半解,特尴尬。遂下定决心看懂并记住每一个细节!不怕被问! ssd的anchor是如何生成的? 首先需要了解一些参数数值的意义: # SSD300 CONFIGS voc = { 'num_classes': 21, 'lr_steps': (800 阅读全文
posted @ 2021-06-09 20:40 无左无右 阅读(1491) 评论(0) 推荐(0)
摘要: 定义的网络,有三个模块组成: class RecModel(nn.Module): def __init__(self, config): super().__init__() assert 'in_channels' in config, 'in_channels must in model co 阅读全文
posted @ 2021-05-26 19:27 无左无右 阅读(410) 评论(0) 推荐(0)
摘要: 这是一个奇怪的问题! torch::Tensor pre_img(const cv::Mat &img, std::vector<float>v_mean, std::vector<float>v_std, int standard_h) { cv::Mat m_resize, m_stand; i 阅读全文
posted @ 2021-05-24 14:32 无左无右 阅读(380) 评论(0) 推荐(0)
摘要: 就是我有一批标注好的color图,那个类别用不同像素来表示。现在我只需要这批数据的4类。其他类别都不需要了。 任务就是把color图上所需要的类别转为灰度标签图。 其实也简单,知道每个类别对应的颜色了,那么就构造同等大小的灰度图,相应颜色就置为相应类别。举例如下: 比如猫😺的颜色是[255,0,1 阅读全文
posted @ 2021-05-22 19:00 无左无右 阅读(335) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页