
16_各种错误和bug(你的痛,我的痛,痛痛痛)
随海亮
微信公众号:Python与计算机视觉
-
原创 解决Jetson nano上编译librealsense错误:Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
#1 Jetson nano环境#1 下载librealsense源码1、下载librealsense源码在这里下载你需要的版本:https://github.com/IntelRealSense/librealsense/tags2、我下载的版本是librealsense-2.40.0.zip,下载地址librealsense-2.40.0.zip下载地址:https://github.com/IntelRealSense/librealsense/archive/v2.40.0.zip2021-02-23 18:17:5554
0
-
原创 报错:ModuleNotFoundError: No module named ‘cv_bridge‘,以及在ROS是如何安装cv_bridge库包
#1 问题原因分析在个错误是由于安装的ros版本并没有带cv_bridge库包,所以在导入的时候报错:ModuleNotFoundError: No module named 'cv_bridge'>>> from cv_bridge import CvBridgeTraceback (most recent call last): File "<stdin>", line 1, in <module>ModuleNotFoundError: No mo2020-12-16 19:55:20417
0
-
原创 linux中使用apt-get安装软件包的时候报错:E: Could not get lock /var/lib/dpkg/lock-frontend
文章目录:1 问题原因分析2 问题解决方式1 问题原因分析在linux中使用apt-get安装哭包的时候,报错:E: Could not get lock /var/lib/dpkg/lock-frontend,这种问题一般是由于apt-get的某个进程没有终止导致的!zhihui@zhihui-desktop:~$ sudo apt-get install ros-melodic-cv-bridge[sudo] password for zhihui: E: Could not get lock2020-12-16 19:31:05328
0
-
原创 TensorRT推理报错:pycuda._driver.LogicError: cuMemcpyHtoDAsync failed: invalid argument
文章目录:遇到这个错误的原因一般有两个:tensorrt推理引擎输入推理数据的维度不对tensorrt推理引擎输入推理数据的类型不对参考1:https://blog.csdn.net/GungnirsPledge/article/details/108428651参考2:https://111qqz.github.io/2020/09/torch2trt/...2020-12-03 11:05:34339
0
-
原创 解决Linux中使用google chrome浏览器出现:ERR_PROXY_CONNECTION_FAILED 代理错误,导致不能够上网
sdf2020-11-26 17:38:19484
0
-
原创 在NVIDIA Jetson Xavier NX上安装llvmlite报错:No such file or directory: ‘llvm-config‘: ‘llvm-config‘
文章目录:1 问题说明2 解决问题方式1 问题说明1、在安装llvmlite的时候报错:No such file or directory: 'llvm-config': 'llvm-config'pip3 install lllvmlite==0.33.02、在这里有说明给出解决方式(你可以尝试)pip3 install llvmlite==0.31.02 解决问题方式这种问题是由于没有安装llvm,在安装llvmlite之前,首先需要安装llvm,安装llvm的具体方法,参考下面2020-11-26 15:46:50433
0
-
原创 在Jetson Xavier NX上安装torchvision编译报错:fatal error: libavcodec/avcodec.h: No such file or directory
https://www.cnblogs.com/liuys635/p/12294070.htmlTraceback (most recent call last): File "track.py", line 1, in <module> from yolov5.utils.datasets import LoadImages, LoadStreams File "/home/zhihui/project/Yolov5_DeepSort_Pytorch/yolov5/utils2020-11-23 11:29:20694
3
-
原创 在Jetson Xavier NX上安装pycuda报错:src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
zhihui@zhihui-desktop:~$ jetson_release -v - NVIDIA Jetson Xavier NX (Developer Kit Version) * Jetpack 4.4.1 [L4T 32.4.4] * NV Power Mode: MODE_15W_6CORE - Type: 2 * jetson_stats.service: active - Board info: * Type: Xavier NX (Developer Kit2020-11-20 15:52:48287
0
-
原创 Ubuntu(Linux)上安装ROS缓慢,解决方法:添加ros的国内镜像源,以及ROS安装过程使用rosdep update出现错误:‘The read operation timed out‘
文章目录:1 解决Unbuntu上安装ROS特别慢问题1.1 Ubunut 更换ROS的镜像源为国内的镜像源1.2 如果是Mint19.3系统,请参考如下添加ros镜像源2 ROS安装过程sudo rosdep init+rosdep update出现错误:'The read operation timed out'1 解决Unbuntu上安装ROS特别慢问题在安装ROS的时候速度特别慢,显示需要时间可能需要一天多,网上查看提示可以更换下载ros的镜像源:1.1 Ubunut 更换ROS的镜像源为国内2020-11-04 18:13:08411
0
-
原创 在NVIDIA Jetson Xavier NX上安装llvm和numba,以及在Jetxon NX上跑通CenterTrack的目标跟踪模型
参考:https://www.coder.work/article/4985382 # 从源码安装参考:https://blog.csdn.net/zt1091574181/article/details/108222306 # 从编译好的文件参考:https://blog.csdn.net/qq_45779334/article/details/108640247参考:https://www.jianshu.com/p/ccaf688f54c0 # 解决安装过程中的错误参考:...2020-10-30 20:31:481182
2
-
原创 在linux上安装cuda的时候报错:Existing package manager installation of the driver found.
#1 错误原因安装cuda的时候提示有多个显卡驱动:Existing package manager installation of the driver found. It is strongly recommended that you remove this before continuing.,然后再安装就提示安装失败!#2 解决方法参考这篇博客中cuda的安装#如果遇到其他驱动相关的问题参考这篇博客显卡驱动的安装,绝大部分cuda安装的问题都是由于驱动问题导致的!删除旧版本的驱动:2020-10-29 19:51:472840
0
-
原创 在NVIDIA Jetson Xavier NX上把yolov4-deepsort的模型pb模型使用tensorflow-onnx和onnx-tensorrt工具最终转换为tensorrt模型
https://github.com/onnx/onnx-tensorrt/issues/385git clone -b 6.0 --single-branch https://github.com/onnx/onnx-tensorrt.gitcd onnx-tensorrt/# Should resolve your "does not contain a CMakeLists.txt" errorgit submodule update --init --recursive# Skip thi2020-10-28 22:51:021740
5
-
原创 使用git clone的时候报错:Received HTTP code 503 from proxy after CONNECT
zhihui@zhihui-desktop:~/yolov4-deepsort/checkpoints$ git clone https://github.com/onnx/tensorflow-onnx.gitCloning into 'tensorflow-onnx'...fatal: unable to access 'https://github.com/onnx/tensorflow-onnx.git/': Received HTTP code 503 from proxy after CON2020-10-28 21:50:20886
0
-
原创 ssh连接服务器出现:ssh: connect to host 192.168.1.107 port 22: Connection refused 的解决方法
#1 说明遇到问题场景1、我的系统环境windows10连接的服务器系统为:Mint19.32、我使用windows,在局域网下通过ssh连接服务器报错:ssh: connect to host 192.168.1.107 port 22: Connection refusedshl@shliangPC MINGW64 ~$ ssh shl@192.168.1.107ssh: connect to host 192.168.1.107 port 22: Connection refused2020-10-26 18:22:0012786
0
-
原创 NVIDIA Jetson NX开发板在U盘挂载的时候出现:error mounting unknown filesystem type ‘exfat‘错误
直接安装下面的库就完事了!!!sudo apt-get install exfat-fuse exfat-utils2020-10-23 15:16:16179
0
-
原创 NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wrapt' has no attribute 'ObjectProxy' 文章目录:1 问题说明2 解决错误2.1 找到问题的原因2.2 最终错误的解决方式环境说明:NVIDIA Xavier NX 开发板安装tensorflow==2.3.01 问题说明1、安装显示已经成功安装了t..2020-10-23 15:08:03298
1
-
原创 解决错误:No module named ‘Cryptodome‘ 和错误rosbag.bag.ROSBagException: unsupported compression type: lz4
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究解决错误:No module named 'Cryptodome' 和错误rosbag.bag.ROSBagException: unsupported compression type: lz4 文章目录:1 说明遇到问题的场景2 解决错误:No module named 'Cryptodome'3 解决错误:rosbag.bag.ROSBagException: unsupported compression ty..2020-10-22 09:09:33651
0
-
转载 Windows Server 2012 R2 安装 OpenCV-Python,导入opencv报错: ImportError: DLL load failed.
首先说明自己是系统环境:系统:windows server 2012 R2(这是一个服务器版的系统)在系统中安装好opencv-python,无论是安装那个版本的opencv-python,当导入opencv的时候都会报错:ImportError: DLL load failed.当你去网上搜可以查找到很多解决方法,但是都一一尝试都没有解决问题,我之所以遇到这个问题,是由于系统的环境和一些配置导致的,因此最后找到一个有效的解决方法,解决了我的问题,感谢,感谢!请大家去参考这篇博客:https.2020-09-09 08:49:55150
0
-
原创 yolov5 v3.0训练出现KeyError错误
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究yolov5 v3.0训练出现KeyError错误 文章目录:1 错误原因分析2 错误解决方式1 错误原因分析出现这个错误的原因是由于,数据的缓存文件可能发生了变化,yolov5默认会把读取的数据保存到缓存文件中,这样下载读取的速度就会很快!2 错误解决方式解决方式很简单,把images和label目录下,与处理图片集和标签文件,其他的文件全部删除即可!♠ ⊕ ♠ ⊕ ♠ ⊕..2020-08-26 14:59:37486
0
-
原创 windows或Ubuntu中请求github.com请求超时,或在下载GitHub文件出现:<urlopen error [Errno 110] Connection timed out>
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究windows或Ubuntu中请求github.com请求超时,或在下载GitHub文件出现:urlopen error [Errno 110] Connection timed out 文章目录:1 windows中请求github.com超时1.1 windows中ping github.com超时1.2 解决windows中ping github.com超时问题2 Ubuntu中请求github.com超时1..2020-08-26 13:53:23690
0
-
原创 yolov5的3.0版本代码在训练的时候报错:ImportError: cannot import name ‘amp‘ from ‘torch.cuda‘ 以及yolov5的3.0环境安装
1 错误原因分析yolov5的3.0版本代码在训练的时候报错:ImportError: cannot import name 'amp' from 'torch.cuda'(yolov5) shl@zfcv:~/project/yolov5_v3_0820$ ./4_clothes_shoes_hat_v1_trainTraceback (most recent call last): File "train.py", line 16, in <module> from tor2020-08-25 14:48:076335
4
-
原创 yolov5 v3.0训练报错: torch.nn.modules.module.ModuleAttributeError: ‘BatchNorm2d‘ object has no attribute
yolov5 v3.0版本训练报错:torch.nn.modules.module.ModuleAttributeError: ‘BatchNorm2d’ object has no attribute ‘_non_persistent_buffers_set’首先说明一下我的环境:Ubuntu:18.04Cuda:10.2Python:3.8Pytorch:1.6.0torchvision:0.7.0yolov5:v3.0#1 错误问题描述1、在使用yolov5 v3.0版本的时2020-08-25 14:45:596709
27
-
原创 Teamviewer连接服务器显示不能够全屏 或 向日葵连接服务器不能够全屏 或 Teamviewer只显示一个640x480的分辨率选项
#向日葵#Teamviewer使用:xrandr命令查看当前系统的分辨率使用:xrandr -s +分辨率_刷新频率,设置相应的分辨率或者使用命令:cvt 1200 1000 60例如:xrandr -s 1920x1080_60.0查看之后值显示有:报错:xrandr: Failed to get size of gamma for output defaultScreen 0: minimum 640 x 480, current 640 x 480, maximum 6402020-08-18 17:18:051820
0
-
原创 mmdetection2.3.0训练报错:RuntimeError: The size of tensor a (8) must match the size of tensor b (81)
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究mmdetection2.3.0训练报错:RuntimeError: The size of tensor a (8) must match the size of tensor b (81) at non-singleton dimension 1 文章目录:1 错误原因分析2 解决方式1 错误原因分析1、使用SAC-Cascade模型训练,模型位置:./configs/detectors/cascade_..2020-08-12 09:57:301433
0
-
原创 把onnx模型转TensorRT模型的trt模型报错:Your ONNX model has been generated with INT64 weights. while TensorRT
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究把onnx模型转TensorRT模型的trt模型报错:[TRT] onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32. 文章目录:1 错误原因分析2 错误..2020-07-31 14:43:432639
5
-
原创 在导入graphsurgeon时报错:ImportError: cannot import name ‘NodeDef‘ from ‘tensorflow‘
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究在导入graphsurgeon时报错:ImportError: cannot import name 'NodeDef' from 'tensorflow' 文章目录:先说明一下我自己的环境:Ubuntu18.04cuda10.2cudnn7.6.5TensorRT-7.0.0.11uff0.6.5#1 错误原因分析这个错误时由于:NodeDef在TensorFlow1.x中是支持的,在Ten..2020-07-31 09:44:23237
0
-
原创 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究解决tensorflow报错:AttributeError: module 'tensorflow.keras.backend' has no attribute 'get_session' 问题 文章目录:1 错误原因分析2 错误解决方式先说明以下我自己的环境:Ubuntu18.04tensorflow-gpu2.2.01 错误原因分析我是在代码中调用了sess = tf.keras.backen..2020-07-29 11:25:006576
4
-
原创 安装TensorRT,然后导入uff库包的时候报错:ImportError: ERROR: Failed to import module(cannot import name ‘GraphDef`)
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究安装TensorRT,然后导入uff库包的时候报错:ImportError: ERROR: Failed to import module (No module named 'tensorflow') 文章目录:1 错误原因分析2 错误解决方式2.1 错误解决方式1(不推荐)2.2 错误解决方式2(推荐)先说明一下我自己的环境:Ubuntu18.04cuda10.2cudnn7.6.5TensorRT-7..2020-07-28 15:40:49327
0
-
原创 Centos下gcc的安装、gcc的更新、gcc安装过程中报错:make[1]: *** [stage1-bubble] 错误 2
Centos下gcc的安装、gcc的更新、gcc安装过程中报错:make[1]: *** [stage1-bubble] 错误 2文章目录:1 下载gcc的源码1.1 源码下载地址:1.2 下载gcc的依赖库包2、解压编译依赖2.1 解压编译依赖gmp-6.1.0.tar.bz22.2 解压编译依赖mpfr-3.1.4.tar.bz22.3 解压编译依赖mpc-1.0.3.tar.gz2.4 解压编译依赖isl-0.16.1.tar.bz22.5 添加依赖的环境变量3 编译gcc最近的一个项目中需要用到g2020-06-16 17:34:104058
4
-
原创 使用torchvision.models.inception_v3(pretrained=True)加载预训练的模型每次都特别慢
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究使用torchvision.models.inception_v3(pretrained=True)预训练的模型每次加载特别慢文章目录:1 问题描述2 问题解决1 问题描述在使用torchvision.models.inception_v3(pretrained=True)预训练模型时,第一次执行的时候会把预训练的模型下载到用户的家目录下的.cache/torch/checkpoints目录下,下次再执行的时候就会..2020-07-15 16:19:16621
0
-
原创 错误:Script file ‘D:\software_install\Anaconda_install\Scripts\pip-script.py‘ is not present.完美解决方法
@[to](错误:Script file ‘D:\software_install\Anaconda_install\Scripts\pip-script.py’ is not present.完美解决方法文章目录:)#1 错误原因分析在进行其他库包安装的过程中,多pip产生了破坏,直接导致pip不可用,虽然在安装目录依然可以找到pip.exe的可执行程序,但是 依然不可用错误信息如下:Script file 'D:\software_install\Anaconda_install\Script2020-07-07 09:53:032204
4
-
原创 导入torchvision出现:AttributeError: module ‘torch.jit‘ has no attribute ‘unused‘错误
导入torchvision出现:AttributeError: module 'torch.jit' has no attribute 'unused'错误文章目录:1 问题原因2 解决方法我的本机环境:windows10系统torch==1.2.0+cu92torchvision== 0.6.1+cu92`1 问题原因我本机已经安装了torch==1.2.0+cu92版本,后面开始安装torchvision==0.6.1+cu92,成功安装并且没有出任何错误,但是在导入import t2020-07-06 13:42:232316
0
-
原创 mmdetection训练出现:IndexError: list index out of range 错误
@[to](mmdetection训练出现:IndexError: list index out of range 错误文章目录:)我的环境:Ubuntu18.04TorchVision: 0.6.0OpenCV: 4.2.0MMCV: 0.5.5MMDetection: 2.0.0+d9c8f14MMDetection Compiler: GCC 7.5MMDetection CUDA Compiler: 10.2训练的模型是:Retinanet#1 问题分析在使用mmdet2020-07-01 17:34:481058
5
-
原创 使用conda报错:from conda.cli import main ModuleNotFoundError: No module named conda
使用conda报错:from conda.cli import main ModuleNotFoundError: No module named 'conda'文章目录:1 错误出现原因2 解决方法1 错误出现原因出现ModuleNotFoundError: No module named 'conda'错误一般都是由于在使用conda进行环境安装的时候,改变了原先python的版本,从而导致conda工具不能够正常使用我是由于在安装tensorflow-gpu版本导致python的版本也发生了改变2020-05-18 11:06:332800
2
-
原创 安装yaml报错:ERROR: Cannot uninstall 'PyYAML'.
安装yaml报错:ERROR: Cannot uninstall 'PyYAML'.文章目录:一、错误原因分析二、最终错误解决方式一、错误原因分析1、开始安装我是一开始安装yaml,使用命令:pip install yaml正确安装,且可以在命令行下正确导入,然后在执行程序的时候又报错:AttributeError: module 'yaml' has no attribute 'Fu...2020-01-06 11:16:355740
1
-
原创 windows上报错:Could not find a version that satisfies the requirement torch==0.4.1
windows上错误:Could not find a version that satisfies the requirement torch==0.4.1文章目录:一、问题1、错误问题的出现2、曲折道路二、错误解决方式bug 气死人不偿命呀,麻蛋,真的是要被搞死呀,本来就是一个很小的问题,可能就是需要一分钟就能够搞定的问题,非得让你搞一两天都搞不定,你不搞也不行,下一步就没法进行,你搞吧这...2019-11-17 12:15:5018381
21
-
原创 Tensorflow2.0报错:ProfilerNotRunningError: Cannot stop profiling. No profiler is running.
Tensorflow2.0报错:ProfilerNotRunningError: Cannot stop profiling. No profiler is running.文章目录:一、在使用Tensorboard回调函数时报错二、解决错误方法首先说明,这个错误是在Windows10下遇到的,如果你是Linux可能不会遇到这个问题!!!一、在使用Tensorboard回调函数时报错首先...2019-10-30 11:22:167745
26
-
原创 安装tensorflow-gpu2.0 报错:ERROR: Cannot uninstall 'wrapt'
最近tensorflow正式升级为tensorflow2.0版本,体验一下,结果安装报错:错误:ERROR: Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lea...2019-10-13 22:09:17232
0
-
原创 去除警告: FutureWarning: In future, it will be treated as `np.float64 == np.dtype(float).type`.
去除警告: FutureWarning: Conversion of the second argumecated. In future, it will be treated as `np.float64 == np.dtype float.type`.文章目录:一、警告原因分析二、解决方法== np.dtype float.type`.文章目录:)最近在使用tensorflow-gpu...2019-01-28 16:20:021260
0
-
原创 去除警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
去除警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA一、警告原因分析1、出现警告2、原因分析二、去除警告方法1、安装的Tensorflow是GPU版本(tensorflow-gpu)2、安装的tensorflow是CPU版本(tensorflow)三、材料补...2019-01-28 17:32:59223
0