深度学习
LYiiiiiii
这个作者很懒,什么都没留下…
展开
-
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.al
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()代码如下:camera = cv2.VideoCapture(0)_, imgs[0] = camera.retrieve() #cap.retrieve(frame) 在grab后使用,对获取到的帧进行解码,也返回true或false_, imgs2[0] = camer.原创 2022-03-24 09:35:19 · 1857 阅读 · 1 评论 -
AttributeError: Can‘t get attribute ‘C3‘ on <module ‘models.common‘ from
问题原因:YOLOv5的权重文件的版本不匹配解决方法:更换对应版本的权重文件,一般而言,权重文件的版本可以向下兼容原创 2022-03-24 09:32:47 · 3917 阅读 · 1 评论 -
Jetson nano/Ubuntu:安装jetcam
首先按照教程进行安装git clone https://github.com/NVIDIA-AI-IOT/jetcamcd jetcamsudo python3 setup.py install提示安装成功但是运行之后还是会进行报错原创 2021-12-16 16:29:13 · 1022 阅读 · 2 评论 -
tensorrt中采用YOLOv5的pt文件生成engine中遇到问题
kernel weights has count 32640 but 2304 was expected其中32640/128=255255 = (80+5)*3,即80个类,5个预测值,每个尺度用3个anchor因此可能需要修改yololayer.h文件中把自己数据的类别、anchor等参数原创 2021-10-29 14:47:18 · 4711 阅读 · 1 评论 -
Tensorrtx中遇到的问题记录
使用tensorrtx中的遇到的问题https://github.com/wang-xinyu/tensorrtxhttps://github.com/wang-xinyu/tensorrtx报错错误原因:忘记修改yololayer.h中的class_num的数量 导致报错解决方法:修改class_num的数量原创 2021-10-15 11:06:36 · 242 阅读 · 0 评论 -
Jetson nano/YOLOv5/板载CSI摄像头运行报错:system throttled due to over-current
在Jetson nano上运行YOLOv5时如果使用usb摄像头可以顺利运行,但是当我换成板载的csi摄像头的时候,摄像头的结果就会无法显示,出现绿屏,并且在屏幕的右上角出现报错:system throttled due to over-current也看了一些帖子The error message "System throttling due to over-current" appears when running YOLOv4 - #31 by helge - Jetson Xavier NX原创 2021-10-12 10:38:45 · 5842 阅读 · 3 评论 -
Ubuntu:E: 无法定位软件包 tensorrt(包括如何安装tensorrt)
在按照网上的教程安装tensorrt中遇到的问题首先是tensorrt的安装步骤:1.在Installation Guide :: NVIDIA Deep Learning TensorRT Documentation下载对应版本的tensorrt2.解压安装sudo dpkg -i nv-tensorrt-repo-ubuntu1604-cuda9.0-trt5.1.5.0-ga-20190427_1-1_amd64.debsudo apt-key -add /var/nv-tenso原创 2021-10-05 09:16:44 · 1091 阅读 · 0 评论 -
ERROR: tensorrt-7.0.0.11-cp37-none-linux_x86_64.whl is not a supported wheel on this platform.
环境:unbuntu20.04,python3.8报错:ERROR: tensorrt-7.0.0.11-cp37-none-linux_x86_64.whl is not a supported wheel on this platform.原因:python的版本不对应,cp37的意思是对应python3.7原创 2021-10-04 10:26:20 · 1213 阅读 · 0 评论 -
Jetson Nano平台的pytorch和torchvison的安装
官方的安装教程如下,我给做一个简单的翻译https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-8-0-now-available/72048首先是pytorch的安装步骤如下:wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O torch-1.8.0-cp36-cp36m-linux_aar...原创 2021-08-10 17:18:54 · 2740 阅读 · 0 评论 -
pycuda installation error: command ‘gcc‘ failed with exit status 1
今天在安装pycuda的时候出现了报错 gcc -pthread -B /home/ly/archiconda3/envs/yolov5/compiler_compat -Wl,--sysroot=/ -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTH原创 2021-08-11 15:55:17 · 520 阅读 · 0 评论 -
YOLOv5配置过程中:AttributeError: Can‘t get attribute ‘C3‘ on <module ‘models.common‘ from ‘xxx‘
在新的环境中配置YOLOv5过程之中出现了如下错误(venv) (base) liyi@liyi:~/yolov5-CSDN$ python detect.py --source inference/images/bus.jpg --weights ./runs/train/exp1/weights/best.ptNamespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.4, device='', fourcc='原创 2021-08-18 10:55:04 · 7252 阅读 · 5 评论 -
Ubuntu20.04环境下Pytorch安装教程
一 安装CUDA访问nvidia官网,下面的网址即可,找到自己对应的版本https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=runfile_local下面为官网的命令行,如果觉得打开官网麻烦也可以直接使用下面的命令wget https:/..原创 2021-07-23 14:27:37 · 3025 阅读 · 1 评论