![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程开发
等待小弟666
这个作者很懒,什么都没留下…
展开
-
Anaconda下安装cyberrt
1、下载cyberrt2、cmake指令如下3、安装即可。原创 2023-07-20 11:27:36 · 250 阅读 · 0 评论 -
错误使用 mex未找到支持的编译器或 SDK
错误使用 mex未找到支持的编译器或 SDK解决方案原创 2022-12-25 20:36:18 · 453 阅读 · 1 评论 -
Matio安装
一、下载与安装Matio下载链接:https://github.com/tbeu/matio我安装的是1.5.22版本cd matio-1.5.12./configure //如果这一句不能用的话用 bash configure 代替makesudo make install二、修改CmakeList.txtfind_package(MATIO REQUIRED)include_directories(${MATIO_INCLUDE_DIR})将${MATIO_LI原创 2022-04-02 07:36:13 · 1335 阅读 · 0 评论 -
Docker,pytorch使用命令会汇总
卸载先前的dockerDocker 的旧版本被称为 docker,docker.io 或 docker-engine 。如果已安装,请卸载它们:sudo apt-get remove docker docker-engine docker.io containerd runc原创 2022-01-19 14:42:08 · 488 阅读 · 2 评论 -
Paddle Influence编译心得
# 一、环境准备1、参照环境要求,准备gcc8.2,否则会碰到未知错误,比如安装参考链接:安装gcc8.2_u013948852的博客-CSDN博客_gcc82联网、root执行wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.xztar -Jxvf gcc-8.2.0.tar.xz cd gcc-8.2.0/./contrib/download_prere原创 2022-01-10 23:03:18 · 641 阅读 · 0 评论 -
Unable to allocate X GiB for an array with shape np.zeros过大
在ubuntu,python下使用np.zeros创建较大numpy矩阵时报错了,原因时申请不了这么大的空间,解决方法如下。查看过载处理模式cat /proc/sys/vm/overcommit_memory如果是0的话,输入su root输入root密码,切换到root用户模式进行修改。看到$变成了#,输入echo 1 > /proc/sys/vm/overcommit_memory修改过载模式,再运行就OK啦。参考链接:https://blog.csdn.net/WILDCHAP原创 2021-04-25 20:01:29 · 4166 阅读 · 0 评论 -
在Python3,Anaconda环境中使用ROS的cv_bridge
ROS在python3中使用https://www.jianshu.com/p/0e17f1b66af9Pycharm中 no module named rospy:https://blog.csdn.net/DeepWolf/article/details/85100057原创 2021-04-14 11:43:32 · 743 阅读 · 0 评论 -
C++下在ROS1 kinetic版本中使用python3
问题来源于libtorch中的Python_header.h在C++代码下,ROS1 kinetic版本环境中,使用libtorch库编译时出现如下问题if PY_MAJOR_VERSION < 3error "Python 2 has reached end-of-life and is no longer supported by PyTorch."endif主要时因为ROS1 kinetic默认使用/usr/bin/python2。参考链接:https://blog.csdn.ne原创 2021-03-30 19:03:18 · 405 阅读 · 0 评论 -
This is usually caused by another repository pushing hint: to the same ref. You may want to...问题解决
git push origin master 产生问题问题显示:This is usually caused by another repository pushing hint: to the same ref. You may want to…参考链接:[https://blog.csdn.net/brownsville2/article/details/102246961](https://blog.csdn.net/brownsville2/article/details/102246961)原创 2021-03-23 20:39:55 · 1284 阅读 · 0 评论 -
pytorch中trace时出现forward() takes 2 positional arguments but 3 were given问题
错误源代码import torchclass MyCell(torch.nn.Module): def __init__(self): super(MyCell, self).__init__() self.linear = torch.nn.Linear(4, 4) def forward(self, input): x = input[0] h = input[1] new_h = torch.tan原创 2021-03-20 21:58:03 · 17694 阅读 · 2 评论 -
vision的C++API编译
查看已安装torch版本下载对应的vision版本我安装的torch1.7.1版本git checkout v0.8.2https://github.com/pytorch/vision/tree/v0.8.2mkdir buildcd build# Add -DWITH_CUDA=on support for the CUDA if neededcmake -DWITH_CUDA=on ..sudo makesudo make install安装在/usr/local/下inc原创 2021-02-23 21:38:06 · 507 阅读 · 0 评论 -
Cmake卸载与安装
Cmake卸载apt-get安装cmake后卸载方法sudo apt-get remove cmake看一下其他什么卸载了,安装完cmake后需要重新安装一下。源码安装卸载方法https://www.cnblogs.com/blackay03/p/9062503.htmlhttps://blog.csdn.net/xh_hit/article/details/79639930Cmake安装https://cmake.org/files/v3.18/cd cmake-3.18.0sud原创 2021-02-23 19:56:53 · 6226 阅读 · 0 评论 -
ROS kinetic版本opencv与主机安装opencv3冲突的问题
在ROS环境下编译安装Opencv项目出现undefined Reference to.XXX的问题发现CMakeLists.txt内已经将正确的opencv(主机opencv位置)引入,但编译仍然出现上述问题。通过研究发现,主要原因在于:ROS自带了opencv版本,但主机上也安装了opencv,两者版本不一致。参考链接:https://blog.csdn.net/m0_37811342/article/details/79971993第94和96行修改如下:#if(NOT "include;/原创 2021-02-16 15:46:15 · 542 阅读 · 1 评论 -
利用libtorch在C++程序上部署pytorch模型
在torch上导出模型,新建ResNet50.pyimport torchimport torchvision.models as modelsfrom PIL import Imageimport numpy as npimage = Image.open("0.jpg") #图片发在了build文件夹下image = image.resize((224, 224),Image.ANTIALIAS)image = np.asarray(image)image = image / 255i原创 2021-02-13 20:35:08 · 321 阅读 · 1 评论 -
fatal: Needed a single revision和Unable to find current revision in submodule path解决办法
当执行git submodule update 遇见问题fatal: Needed a single revisionUnable to find current revision in submodule path参考资料:https://blog.k-res.net/archives/1595.html可执行rm -rf config/git submodule update --init检查:.git文件夹下config文件中账户名称;.git/modules原创 2021-02-03 19:50:06 · 9173 阅读 · 1 评论 -
file conflicts were fond when attempting to merge into错误解决方法
使用gitkraken切换分支时,出现file conflicts were fond when attempting to merge into(黄色标语)各种按钮点击不好用,包含mark按钮也不行。此时,需要将仓库初始化,也就是重新执行git submodule initgit submodule update但是,执行git submodule init后遇见fatal: multiple stage entries for merged file错误此时参考链接http://m.oic原创 2021-02-01 20:59:45 · 445 阅读 · 0 评论 -
Git使用
Git安装Git下载(window版)https://git-scm.com/book/zh/v2init # 设置git 用户名和邮箱 git config --global user.name "XX" git config --global user.email "XX@qq.com"# 显示配置信息git config --list 生成本地仓库通过下列命令可查看隐藏文件ls -la以上命令可通过git init git_demoadd# 跟踪某一个文件g原创 2021-01-08 20:46:00 · 71 阅读 · 0 评论 -
ubuntu16.04下安装clang-format代码风格
参考链接:https://blog.csdn.net/start_from_scratch/article/details/849616921、先打开源列表:sudo gedit /etc/apt/sources.list在列表末尾添加:deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main deb-srchttp://apt.llvm.org/xenial/ llvm-toolchain-xenial main2、在终端运行:原创 2020-12-10 20:03:29 · 1499 阅读 · 0 评论 -
Anaconda虚拟环境利用conda创建cuda,cudnn虚拟环境
Anaconda虚拟环境利用conda创建cuda,cudnn虚拟环境参考链接:https://blog.csdn.net/qs17809259715/article/details/103729478anaconda建立虚拟环境及conda操作创建虚拟环境conda create -n python_cuda101 python=3.7开启虚拟环境:conda activate python_cuda101为了使用conda安装迅速,使用清华大学开源软件镜像站:https://mirr原创 2020-12-10 19:54:54 · 1292 阅读 · 0 评论 -
typora安装
typora安装wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -# add Typora's repositorysudo add-apt-repository 'deb https://typora.io/linux ./'sudo apt-get update# install typorasudo apt-get install typora打开typora方法1:通过应用图标打开方法2:原创 2020-10-05 11:04:26 · 233 阅读 · 0 评论 -
yolov4,darknet特征图可视化
yolov4,darknet特征图可视化拼接参考:https://blog.csdn.net/lxk2017/article/details/97911371在network_nernel.cu文件中加入前向传播显示代码:/******************************************************func: 主要是为了将output结果能够映射到0-255...原创 2020-05-07 10:32:28 · 4770 阅读 · 19 评论 -
NVIDIA、CUDA与CPU参数、计算能力对比学习
进入deviceQuery目录下面执行make,生成可执行文件deviceQuery后,执行./deviceQuery显示部分参数解读因此,计算能力为1280*1.34=1715.2GFLOPS与CPU对比:lscpuCPU的计算能力为4(CPU核心数)*2.5(主频数)=10GFLOPS...原创 2020-05-02 15:49:08 · 1821 阅读 · 0 评论 -
cmake CMAKE_C_COMPILER “is not a full path to an existing compiler tool”
cmake CMAKE_C_COMPILER “is not a full path to an existing compiler tool”在Qt Creater下CMake之后显示缺少CMAKE_C_COMPILER项,可添加:CMAKE_CXX_COMPILE /usr/bin/c++CMAKE_C_COMPILE /usr/bin/cc...原创 2020-05-02 15:20:39 · 12646 阅读 · 0 评论 -
Anaconda,tensorflow,keras安装
Anaconda安装安装链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda与python版本对应关系:https://blog.csdn.net/yuejisuo1948/article/details/81043823原创 2020-04-04 09:59:19 · 272 阅读 · 1 评论 -
python程序中[:]使用的问题
python程序中[:]使用的问题以下算法中使用了[:]进行赋值拷贝def subsets(nums): result = [[]] for num in nums: print("result: ",result[:]) for element in result[:]: print("element: ", ele...原创 2020-02-19 09:24:42 · 184 阅读 · 0 评论