2021年10月18日

python 查看所用模块所在路径

摘要: 用 模块名.__file__可查看到模块所在位置。 例如: import torch torch.__file__ 阅读全文

posted @ 2021-10-18 12:41 MissSimple 阅读(97) 评论(0) 推荐(0) 编辑

2020年7月9日

kubectl apply -f service.yaml

摘要: 错误1: Error from server (InternalError): error when creating "service.yaml": Internal error occurred: failed calling webhook "webhook.serving.knative.d 阅读全文

posted @ 2020-07-09 14:53 MissSimple 阅读(1222) 评论(0) 推荐(0) 编辑

2019年10月13日

seekg()与tellg()在文档中定位某行不正确的原因

摘要: string in_path = "/home/XX/a.prototxt"; stream = ifstream(in_path, std::ios::binary); std::streampos pos = 0; while(true){ pos = stream.tellg() std::i 阅读全文

posted @ 2019-10-13 15:18 MissSimple 阅读(580) 评论(0) 推荐(0) 编辑

2018年6月14日

TypeError: 'numpy.float64' object cannot be interpreted as an index

摘要: 在训练stage1 rpn时,出现'numpy.float64' object cannot be interpreted as an index 的提示错误,几乎所有的博客中都指出,需要更换numpy 的版本,照做之后,出现ImportError: numpy.core.multiarray fa 阅读全文

posted @ 2018-06-14 22:29 MissSimple 阅读(2041) 评论(0) 推荐(1) 编辑

AttributeError: 'module' object has no attribute 'text_format'

摘要: 是protobuf的版本发生了变化 在文件./lib/fast_rcnn/train.py增加一行import google.protobuf.text_format 即可解决问题 阅读全文

posted @ 2018-06-14 20:26 MissSimple 阅读(459) 评论(0) 推荐(0) 编辑

Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Python

摘要: 其原因是没有开启对python的支持,需要在Makefile.conf文件中开启如下开关 阅读全文

posted @ 2018-06-14 18:06 MissSimple 阅读(2630) 评论(0) 推荐(0) 编辑

2018年1月1日

googlenet的三个loss作用

摘要: googlenet网络结构中为了避免梯度消失,在中间的两个位置加了两个softmax损失,所以会有三个loss,整个网络的loss是通过三个loss乘上权重相加后得到 阅读全文

posted @ 2018-01-01 16:39 MissSimple 阅读(1605) 评论(0) 推荐(0) 编辑

2017年12月28日

This program requires version 3.4.0 of the Protocol Buffer runtime library

摘要: I'm trying to train a Caffe model. My .prototxt file uses custom Python Data and Loss layers. When I execute the training command in terminal, however 阅读全文

posted @ 2017-12-28 11:26 MissSimple 阅读(4246) 评论(0) 推荐(0) 编辑

2017年11月17日

lr_mult

摘要: lr_mult:学习率系数 放置在param{}中 该系数用来控制学习率,在进行训练过程中,该层参数以该系数乘solver.prototxt配置文件中的base_lr的值为学习率 即学习率=lr_mult*base_lr 如果该层在结构配置文件中有两个lr_mult,则第一个表示权值学习率系数,第二 阅读全文

posted @ 2017-11-17 16:23 MissSimple 阅读(318) 评论(0) 推荐(0) 编辑

2017年11月16日

caffe python layer

摘要: Layer实际上定义了Layer的基本操作,即初始化层、前向传播和反向传播。在前向传播中根据bottom blob得到top blob,反向传播则根据top反传到bottom。而且在前传的时候还可以计算loss,一般来说只有最后一层才会计算loss,虽然每个层都有计算loss的功能。Layer类在没 阅读全文

posted @ 2017-11-16 11:50 MissSimple 阅读(1614) 评论(0) 推荐(0) 编辑

导航