![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
环境配置
放羊Wa
学习爱我,我不爱学习。
展开
-
mmfewshot配置教程
问题描述:如果按官方配置教程配置环境,会出现mmcls/mmcvfull/和mmdet包不匹配的问题环境说明:显卡:rtx3070, cuda使用conda安装。原创 2023-04-25 11:12:31 · 694 阅读 · 1 评论 -
Pytorch dataloader中的num_workers (选择最合适的num_workers值)
转载文章:原文链接:https://blog.csdn.net/hxxjxw/article/details/119531239。版权声明:本文为CSDN博主「hxxjxw」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/hxxjxw/article/details/119531239。最合适的num_works值与数据集有关。选择最合适的num_workers值。转载 2023-04-14 11:52:45 · 262 阅读 · 0 评论 -
windows 安装pycocotools:ERROR: Could not build wheels for pycocotools, which is required to install py
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects原创 2022-07-07 12:17:47 · 30575 阅读 · 5 评论 -
NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver. Make sure that the
问题描述:在一个月没用ubuntu之后,使用sudo apt update更新了一下系统,结果运行cuda程序时,驱动找不见了,nvidia-smi也显示NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.之后我以为驱动又没了(其实是重装习惯了),在我拿出祖传驱动文件就要.原创 2022-04-18 18:24:21 · 1286 阅读 · 0 评论 -
新版本cuda(11.1),cudnn安装查看方法
问题描述: ubuntu 18 、显卡为rtx 3070 、显卡驱动如下,安装cuda和cudnn之后,查不到cudnn解决方案:原因:新版cudnn安装方式和以前的不一样nvidia-smi+-----------------------------------------------------------------------------+| NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 .原创 2022-03-04 18:53:23 · 1934 阅读 · 2 评论 -
NVIDIA rtx3070显卡驱动、算力和cuda版本匹配关系
问题描述:3070装好显卡驱动,cuda之后无法使用,抛出异常:RuntimeError: CUDA error: no kernel image is available for execution on the device原因:版本之间不匹配我的显卡驱动:+-----------------------------------------------------------------------------+| NVIDIA-SMI 470.103.01 Driver Version.原创 2022-03-03 12:44:00 · 9353 阅读 · 0 评论 -
Ubuntu pycharm input model disable之后恢复
记一次手贱:终端提醒The IDE is running with enabled input methods that can cause freezes. Please consider to disable input methods if you don't really use them,然后就有一个input model disable 按钮,我手贱点了,好家伙,我输入法在pycharm(搜狗输入法怎么回事,我都敲了这么多遍pycharm了,给我显示的候选项还是这样的”朋友插入吗 “)中无法.原创 2021-12-06 11:50:40 · 502 阅读 · 2 评论 -
AssertionError: importlib-metadata .dist-info directory not found
问题描述:由于我的python 程序中导入了click包,但是没有安装该包导致报错如下:ImportError: No module named click那么,我们首先想到的就是安装它喽pip install click可是用抛出异常了Collecting clickCollecting importlib-metadata (from click)Collecting colorama (from click) Using cached https://files.python.原创 2021-10-14 23:02:34 · 1581 阅读 · 0 评论 -
sudo rosdep init 失败,rosdep update 超时失败2021最新解决方法
rosdep update 超时失败2021最新解决方法_Kenny_GuanHua的博客-CSDN博客解决ROS系统 rosdep update超时问题的新方法_leida_wt的博客-CSDN博客_rosdep update 超时原创 2021-08-02 22:47:55 · 415 阅读 · 0 评论 -
colab挂载Google drive
描述:让colab访问Google drivefrom google.colab import drivedrive.mount('/content/drive/')点击链接,将验证码填入即可然后将当前目录切换到Google drive。import osos.chdir('/content/drive/My Drive/')!ls #查看原创 2021-04-16 16:21:03 · 363 阅读 · 0 评论 -
NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
问题描述:执行invidia-smi报错NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.nvcc -V显示正常解决:sudo apt-get install dkmssudo dkms install -m nvidia -v 440.118.02其中.原创 2021-04-15 15:15:55 · 279 阅读 · 0 评论 -
云服务器上安装miniconda、anaconda工具
在清华源选择需要的conda版本conda下载地址ananconda链接miniconda链接在服务器上下载condawget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda-1.6.0-Linux-x86_64.sh安装bash Miniconda-1.6.0-Linux-x86_64.sh#根据提示安装即可...原创 2021-03-28 23:11:45 · 464 阅读 · 0 评论 -
conda更换国内源
添加清华源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/#设置搜索时显示通道地址conda config --set show_channel_urls yes添加中科大源conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/conda config --set show.原创 2021-03-25 23:49:28 · 402 阅读 · 1 评论 -
jupyter-notebook 启动import libzmq error:DLL load failed windows系统
问题描述:windows 7 安装anaconda后启动jupyter notebook报错以下错误,重装miniconda后一样的效果File "c:\users\xxx\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\xxx\appdata\loc.原创 2021-01-24 23:23:26 · 914 阅读 · 6 评论 -
torch和torchvision 版本对应和下载地址
pytorch版本对应关系查看网址:previous pytorch versions原创 2020-12-18 22:14:54 · 11003 阅读 · 3 评论 -
error: command ‘/usr/local/cuda:/usr/local/cuda/bin/nvcc‘ failed with exit status 1
error: command ‘/usr/local/cuda:/usr/local/cuda/bin/nvcc’ failed with exit status 1解决:报错的路径里面多了一个冒号,说明是环境变量的设置有问题sudo gedit ~/.bashrc更改export CUDA_HOME=$CUDA_HOME:/usr/local/cuda为export CUDA_HOME=/usr/local/cudasource ~/.bashrc...原创 2020-12-15 21:57:21 · 5797 阅读 · 1 评论 -
No CUDA runtime is found, using CUDA_HOME=‘/usr/local/cuda:/usr/local/cuda‘
问题描述: 配置vedadet 环境时报错OSError: CUDA is required to compile vedadetNo CUDA runtime is found, using CUDA_HOME=’/usr/local/cuda:/usr/local/cuda’Compiling nms_ext without CUDA解决:export FORCE_CUDA="1"原创 2020-12-15 15:59:08 · 9331 阅读 · 1 评论 -
pytorch运行出错:AttributeError: module ‘torch‘ has no attribute ‘ops‘
我这里是升级torchvision后问题解决了pip install torch==0.4.1 torchvision==0.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/python = 3.6torch = 0.4.1torchvision = 0.4.0原创 2020-09-18 12:41:08 · 11943 阅读 · 5 评论 -
ImportError: torch.utils.ffi requires the cffi package
pip install cffi原创 2020-09-18 12:22:25 · 399 阅读 · 0 评论 -
yolo多版本学习地址链接记录
打开板载摄像头:nvgstcapture-1.0 --cus-prev-res=1280x720设置这么大他就不会是全屏,就有空余的地方控制终端,如果全屏,它就关不了了,就很难受,个人建议在打开摄像头之前将终端窗口放置在屏幕的某一侧,以防摄像头显示界面盖住终端!...原创 2020-07-25 21:42:24 · 298 阅读 · 0 评论 -
nvidia jetson tx2 安装opencv3.4.0教程及踩坑解决方案链接地址
tx2安装opencv3.4.0教程及踩坑解决方案链接地址在Jetson TX2上安装OpenCV(3.4.0)python3之opencv安装查看opencv版本:pkg-config --modversion opencv更换pip源到国内镜像:pip国内的一些镜像阿里云 https://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http:/原创 2020-07-24 08:47:21 · 715 阅读 · 0 评论 -
No module named pip.__main__; ‘pip‘ is a package and cannot be directly executed
问题描述:在进行pip list 时报错如下:Traceback (most recent call last):File “/home/yjq/miniconda3/envs/gluon/bin/pip”, line 5, infrom pip._internal.cli.main import mainModuleNotFoundError: No module named ‘pip._internal.cli.main’————————————————版权声明:本文为CSDN博主「放羊.原创 2020-07-23 17:36:00 · 12648 阅读 · 4 评论 -
ubuntu 安装多版本cuda,及切换版本方法及常见问题记录
ubuntu 安装多版本cuda,及切换版本方法原创 2020-12-15 21:54:10 · 1017 阅读 · 1 评论 -
ubuntu 16.04安装NVIDIA显卡驱动以及cuda、cudnn,以及解决Ubuntu循环登陆问题等
文章目录一、安装显卡驱动1. 禁用nouveau2. 下载驱动文件并安装二、 安装cuda一、安装显卡驱动1. 禁用nouveau安装NVIDIA驱动前先禁用nouveau,否则会出现冲突使用以下命令打开文件sudo gedit /etc/modprobe.d/blacklist.conf在文末添加以下两句话blacklist nouveauoptions nouveau modeset=0sudo update-initramfs -ureboot #重启开机验证nouveau原创 2020-07-15 21:56:58 · 588 阅读 · 0 评论 -
pip安装更换国内源
镜像地址:阿里云 https://mirrors.aliyun.com/pypi/simple/豆瓣http://pypi.douban.com/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/华中科技大学https://pypi.hustunique.com/说明:临时使用可以在使用pip的时候在后面加上-i参数,指定pip源如:pi原创 2020-07-02 12:32:59 · 1013 阅读 · 0 评论 -
记一次安装cuda时出现的错误:cuda_9.0.176_384.81_linux.run: line 1: Failed: command not found
问题描述:运行sudo sh cuda_9.0.176_384.81_linux.run命令安装cuda时报错cuda_9.0.176_384.81_linux.run: line 1: Failed: command not found但是确认过,文件路径实在是没有错误解决方法:出现该问题的原因是在NVIDIA官网下载的cuda文件有问题,需要重新下载文件,下载完之后一定要看一下文件大小是否合适,因为我自己就是文件不合适,但是下载显示是已下载完成的,好坑爹哦!!!...原创 2020-06-29 20:02:44 · 2803 阅读 · 2 评论 -
git submodule update --init时报错:Failed to recurse into submodule path third_party/protobuf
问题描述:源码编译安装pytorch时执行git submodule update --init报错如下:Submodule path ‘third_party/protobuf’: checked out ‘48cb18e5c419ddd23d9badcfe4e9df7bde1979b2’Submodule ‘third_party/benchmark’ (https://github.com/google/benchmark.git) registered for path ‘third_par.原创 2020-06-19 09:02:04 · 6956 阅读 · 0 评论 -
conda常用命令学习总结
查看当前已有环境conda info --envs或者conda env list创建新环境conda create -n env_name python=3.6# 同时安装必要的包conda create -n env_name numpy matplotlib python=3.6删除已有环境conda remove -n env_name --all环境切换# linux/Mac下需要使用#source activate env_nameconda a.原创 2020-06-14 11:40:58 · 314 阅读 · 0 评论 -
E: Unable to locate package cuda-toolkit-9-0
bash cuda-l4t.sh cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb 9.0 9-0[sudo] password for nvidia:dpkg: error processing archive /home/nvidia/cuda-l4t/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb (–install):cannot access archive: No such file or directory.原创 2020-06-05 19:57:24 · 4468 阅读 · 1 评论 -
conda创建环境时报错:NotWritableError: The current user does not have write permissions to a required path.
问题描述:conda创建环境时报错:NotWritableError: The current user does not have write permissions to a required path. path: /Users/的情况。其主要原因是用户没有对anaconda3文件夹的读写权限,造成其原因可能是由于在安装anaconda时使用了管理员权限。cd到anaconda文件夹所在位置,运行以下命令即可sudo chown -R xxx anaconda3 #xxx为自己的用户名.原创 2020-06-04 10:19:10 · 12764 阅读 · 14 评论 -
NVIDIA Jetson tx2 cuda和cudnn安装_刷机失败,手动离线安装
问题描述:在用官方刷机包安装cuda和cudnn是老是出错,故采取以下方式进行安装,能够完美解决该问题。由于在进行刷机时已经在host(用来刷机的主机)上下载了有关的安装包,故采用离线拷贝安装。一般在以下路径中可以找到:/home/yjq/configs/jetpack/jetpack_download #根据自己设置路径更改,一般在jetson_download下找即可安装cuda及cudnn拷贝安装脚本先创建一个cuda-l4t 文件夹(这里我写了在家目录下,根据自己习惯选择).原创 2020-06-03 11:12:17 · 3313 阅读 · 7 评论 -
【Ubuntu】Linux查看CUDA和cudnn版本方法
查看CUDA版本方法一:nvcc --version或者nvcc -V方法二:cat /usr/local/cuda/version.txt查看cudnn版本cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2原创 2020-05-31 15:52:03 · 1186 阅读 · 0 评论 -
Ubuntu16.04安装、升级cmake方法
本文将介绍Ubuntu如何快速安装cmake的方法以及安装升级特定版本cmake的方法1. 使用默认安装方法sudo apt install cmake 查看cmake版本命令:cmake --version2. 安装特定版本方法下载所需版本cmake官网下载地址官方网址各版本下载地址下载解压缩后进入解压文件解压命令Ubuntu系统下 .7z 文件压缩解压命令执行编译安装命令./configure --prefix=/usrsudo make -j4 #参数-j4可.原创 2020-05-30 22:24:35 · 2324 阅读 · 0 评论 -
编译安装cmake时出现错误:could not find OpenSSL。
ubuntu 操作系统编译安装cmake时出现上述错误解决方法:bash中输入如下命令:sudo apt install libssl-dev原创 2020-05-30 22:01:27 · 8103 阅读 · 5 评论 -
用cmake编译时出现错误:Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly.
cmake编译时出现错误:Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly.解决思路简单粗暴,卸载重装,哈哈哈步骤卸载sudo apt-get autoremove cmake重新编译安装cmake./configure --prefix=/usrsudo make -j4 #参数可选,根据自己设备配置选择数字可加速编译过程sudo make install .原创 2020-05-30 21:37:59 · 3557 阅读 · 2 评论 -
如何在conda中降低Python版本
我们有时候在配置环境的时候会遇到版本不匹配的问题,不得不降低版本,下面是conda中降低Python版本的方法conda install python==3.6等号后面表示需要退回的版本号原创 2020-05-26 12:45:26 · 23484 阅读 · 7 评论