上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页
摘要: 一些打印代码: caffe.proto里面关于LayerParameter的描述 message LayerParameter { optional string name = 1; // the layer name optional string type = 2; // the layer t 阅读全文
posted @ 2021-04-28 20:27 无左无右 阅读(58) 评论(0) 推荐(0)
摘要: 1.senet SE模块主要为了提升模型对channel特征的敏感性,这个模块是轻量级的,而且可以应用在现有的网络结构中,只需要增加较少的计算量就可以带来性能的提升。 https://zhuanlan.zhihu.com/p/65459972/ https://www.cnblogs.com/bon 阅读全文
posted @ 2021-04-25 16:24 无左无右 阅读(112) 评论(0) 推荐(0)
摘要: 活久见的c++语法问题。 对于全局变量,只能初始化,不能赋值。 std::string path_wts; path_wts = "/data_1/everyday/0419/psenet/psenet0419.wts"; 在全局范围内这么写居然编译不过!报错如下: error: ‘path_wts 阅读全文
posted @ 2021-04-19 11:14 无左无右 阅读(120) 评论(0) 推荐(0)
摘要: what(): PyTorch is not linked with support for cuda devices Exception raised from getDeviceGuardImpl at /data_1/code/Libtorch/pytorch_1.7.1/c10/core/i 阅读全文
posted @ 2021-04-14 16:22 无左无右 阅读(1070) 评论(0) 推荐(0)
摘要: # cuda10.0 include_directories(/usr/local/cuda/include) link_directories(/usr/local/cuda/lib64) # tensorrt 7.0.0.11 set(TENSORRT_ROOT ${CMAKE_SOURCE_D 阅读全文
posted @ 2021-04-13 10:12 无左无右 阅读(359) 评论(0) 推荐(0)
摘要: from PIL import Image,ImageDraw,ImageFont image = Image.open("/data_2/dog1.jpg") text = "仅供授权证明用,他用无效 \n有效期:20210401-20210430" font=ImageFont.truetype 阅读全文
posted @ 2021-04-01 10:52 无左无右 阅读(124) 评论(0) 推荐(0)
摘要: 本文github链接,欢迎star 1.准备工作 首先,要弄清楚自己在做什么,然后一步步的去实现它,在此过程中,要不断验证自己的每个步骤是否正确。验证正确了再往下继续走,不正确就要去排查哪里有问题。 现在是需要把pytorch refinedet转tensorrt。而且是一步步的搭建网络实现。 py 阅读全文
posted @ 2021-03-12 17:16 无左无右 阅读(410) 评论(0) 推荐(0)
摘要: ##1.仓库地址 https://github.com/meijieru/crnn.pytorch 原版用lua实现的:https://github.com/bgshih/crnn 需要用到的warp_ctc_pytorch: https://github.com/SeanNaren/warp-ct 阅读全文
posted @ 2021-03-11 18:05 无左无右 阅读(2937) 评论(1) 推荐(0)
摘要: 有些问题虽然一波操作解决了,但是不知道为啥,这里记录一下: image.convertTo(image, CV_32FC3)导致数据不一样了 void sub_mean(const cv::Mat &img,cv::Mat &m_out) { const cv::Scalar m_mean = cv 阅读全文
posted @ 2021-03-08 19:02 无左无右 阅读(120) 评论(0) 推荐(0)
摘要: 解决了问题才来记录一下的,现在的心情是好点儿的,但是之前,昨天,真是无厘头,被折腾的一点脾气都没有。 本来就是一个softmax嘛,很简单的嘛,就是按照公式e的指数再相加求和,官方有api实现,比如我找的例子, // Add activation layer using the ReLU algor 阅读全文
posted @ 2021-03-05 14:34 无左无右 阅读(1106) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页