
报错
遇到的坑
我肚子好饿
人笨就要多记
展开
-
th:each=“i:${#numbers.sequence()}“中使用参数。`th:each`和`th:switch`联合使用
直接下面这样用会报错:th:each="i:${#numbers.sequence(1,${totalPage})}"应该把里面的括号去掉,就能用了:th:each="i:${#numbers.sequence(1,totalPage)}"原创 2021-06-02 18:27:34 · 2387 阅读 · 0 评论 -
报错: EBUSY: resource busy or locked, lstat ‘C:\hiberfil.sys‘
想要在main.js中引入网上的css时:import Vue from 'vue'import App from './App.vue'import 'public/lib/lib/index.css'报错:EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'看了网上好多解决问题的方法,试了都不对。说一下我是怎么解决的:就我上面的代码而言,解决方法是在public前面加一个 /import Vue from 'vue'impo原创 2021-01-26 13:35:58 · 11343 阅读 · 0 评论 -
报错:‘Concatenate’layer requires inputs with matching shapes expect for the concat axis. 解决思路
换了个数据集图片训练,结果报错:‘Concatenate’layer requires inputs with matching shapes expect for the concat axis.Got inputs shapes:[(None,54,25,128),(None,54,24,256)]其实就是concatenate运算出错,concatenate表示连接运算,将两个张量连接起来。可以看到报错信息,两个张量的维度分别为:(None,54,25,128)和(None,54,24,256原创 2021-01-05 19:17:41 · 3048 阅读 · 1 评论 -
报错:qt 多界面类使用事件过滤器死循环,程序异常结束
报错描述:在多个界面使用事件过滤器时,发现窗口还没出来,就加载了一堆东西,然后程序在执行了151行以后被强制结束,输出当前的事件,发现一直在触发Polish事件,this指向却是正常的:解决方法:出现这种问题多半是事件过滤器最后的return写错了,return应返回其基类:比如,我想在窗口qqchat_main_window中使用事件过滤器,由于和其他函数一起写的,习惯性把窗口的类名复制过来粘贴了:return qqchat_main_window::eventFilter(target, e原创 2020-11-26 13:35:04 · 1163 阅读 · 2 评论 -
报错:no module named tensorflow.python;tensorflow is not a package;
解决: 纯属乌龙了,自己新建了一个py文件,文件名就叫tensorflow.py,然后程序运行的时候就首先读取的同目录下的这个py文件,就报错了。想想自己疯狂删了重新安装,真的是笑死。原创 2020-10-20 17:54:25 · 2265 阅读 · 7 评论 -
dlib安装报错
报错:subprocess.CalledProcessError: Command '[‘cmake’, ‘–build’, ‘.’, ‘–config’]解决:sudo apt-get install libboost-python-dev cmake参考:https://blog.youkuaiyun.com/lsg_lsg_lsg/article/details/78895427如果安装cmake和boost时提示:执行:sudo apt-get update...原创 2020-10-16 21:56:02 · 1003 阅读 · 0 评论 -
报错:QSqlQuery::value: not positioned on a valid record
QSqlQuery::value: not positioned on a valid record在使用QSqlQuery查询数据并用query的结果value出现QSqlQuery::value: not positioned on a valid record错误QSqlQuery query;query.prepare("select id,name from employee where name like :inputName");query.bindValue(":inputName"原创 2020-09-11 17:17:04 · 1001 阅读 · 0 评论 -
报错:error while loading shared libraries: libprotoc.so.19
Command errored out with exit status 1:/usr/local/bin/protoc: error while loading shared libraries: libprotoc.so.19: cannot open shared object file: No such file or directoryexport LD_LIBRARY_PATH=/usr/local/libvi /etc/ld.so.conf/usr/local/lib再执行ldcon原创 2020-09-09 15:03:01 · 1793 阅读 · 0 评论 -
onnx_tensorrt报错:Attribute not found: height_scale
在使用onnx_tensorrt转换onnx为tensorrt格式的模型时报错Attribute not found: height_scale。如果onnx模型是通过pytorch 用插值上采样转换来的,参考:https://www.jianshu.com/p/dcd450aa2e41由于我的onnx模型是yolov3-tiny转换的模型,不适用。由于github项目下给出了两种方法,一种通过backend来转换。另一种不通过backend,直接使用onnx2trt转换。我在使用darkend转原创 2020-09-01 11:43:14 · 642 阅读 · 0 评论 -
import tensorrt报错 please make sure you have pycuda installed
import tensorrt报错 please make sure you have pycuda installed解决方法:执行import tensorrt时,报错:通过搜索错误原因,在https://blog.youkuaiyun.com/baobei0112/article/details/88761236看到了如下内容:try:import pycuda.driver as cudaimport pycuda.gpuarray as gpuarrayimport pycuda.autoin原创 2020-08-26 21:44:46 · 665 阅读 · 0 评论 -
yolov3-tiny转onnx报错 not enough values to unpack (expected 2, got 1)
以下我使用的yolov3_tiny_to_onnx.py代码,仅python3环境:# -*- coding:utf-8 -*-from __future__ import print_functionfrom collections import OrderedDictimport hashlibimport os.path import wget import onnxfrom onnx import helperfrom onnx import TensorProtoimpor原创 2020-08-26 19:29:11 · 772 阅读 · 2 评论 -
sd card安装镜像后,windows下不显示盘符
sd card安装镜像后,windows不显示盘符解决方案烧录在sd卡中的镜像,想要重新安装linux系统,但是使用读卡器插入到windows主机后不显示盘符。可以看到右下角是显示出来读取到移动设备的。点击打开设备和打印机,发现windows是识别到它的,但是就是没有盘符。解决方案右击此电脑 --> 管理 --> 磁盘管理可以看到多了好多分区,这些多的分区就是sd卡镜像中的分区。先拔掉读卡器,记住自己主机的磁盘,插上读卡器以后,磁盘就多了一个,或者看大小也可以,计算机自带的磁盘都原创 2020-08-17 10:56:52 · 2822 阅读 · 2 评论