mmdetection训练数据遇到的问题

简介: mmdetection训练数据遇到的问题

1 Permission denied

报错:

-bash: ./compile.sh: Permission denied

没有操作权限,改为赋予最高权限(777):

chmod 777 compile.sh

2 cuda 问题

报错:

unable to execute '/usr/local/cuda-9.0/bin/nvcc': No such file or directory

error: command '/usr/local/cuda-9.0/bin/nvcc' failed with exit status 1

找不到cuda下nvcc文件,需要找到自己的nvcc文件所在地,然后输入:

./compile.sh \ --export CUDA_HOME=/usr/local/cuda-8.0/bin

如果还不行,需要查看一下是否有nvcc:

nvcc --version

2.1 nvcc正常

若nvcc正常,设置cuda路径首先执行:

sudo vim ~/.bashrc

设置为:

export PATH=/usr/local/cuda-9.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

然后执行:

sudo vim /etc/profile

末尾添加:

export CUDA_HOME=/usr/local/cuda-9.0
export PATH=/MATLAB/R2016b/bin:/usr/local/cuda-9.0/bin:/anaconda3/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH

然后执行

source /etc/profile

使链接生效

2.2 command not found

报错:

-bash: nvcc: command not found

应该安装nvcc:

sudo apt-get install nvidia-cuda-toolkit

报错:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

升级apt-get update:

sudo apt-get update

报错:

Failed to connect to nvidia.github.io port 443: Connection timed out

2.2.1 修改源

则应该修改源:

(1)修改前先做备份:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

(2)打开sources.list文件:

sudo vim /etc/apt/sources.list

替换为其他源:

清华源:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

阿里源:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

2.2.2 修改 nameserver

修改/etc/resolv.conf文件为:

nameserver 8.8.8.8
nameserver 4.2.2.2

3 not in the sudoers file

报错:

××× is not in the sudoers file. This incident will be reported.

1.切换到超级用户root:

su root

2.查看/etc/sudoers权限:

 ls -all /etc/sudoers

可以看到当前权限为744:

-r--r----- 1 root root 744 4月 16 20:36 /etc/sudoers

3.更改权限为777(表示允许操作):

chmod 777 /etc/sudoers

4.编辑/etc/sudoers:

vi /etc/sudoers

5.在root ALL=(ALL:ALL) ALL 下面添加一行:

XXX    ALL=(ALL)ALL

其中XXX表示当前用户名

6.把/etc/sudoers权限改回440:

chmod 440 /etc/sudoers

然后就可以切换回自己的用户操作了

4 ASSERT

报错:

ASSERT: "false" in file qasciikey.cpp, line 501

OpenCV版本不对,没有里面没有tracker。安装contrib的OpenCV:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python

如果提示使用--user

pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python

5 no commands supplied

报错:

no commands supplied

应该将 python setup.py 改为 python setup.py install

6 FileNotFoundError

报错:

[Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', /home/snowstorm/mmdetection']

磁盘空间已满,清理空间。

学习更多编程知识,请关注我的公众号:

代码的路

相关文章
|
人工智能 资源调度 算法
AI 绘画Stable Diffusion 研究(八)sd采样方法详解
AI 绘画Stable Diffusion 研究(八)sd采样方法详解
3224 0
|
4月前
|
人工智能 UED
2025年数字人全链路智能创作平台完全指南
AI数字人成内容创作新利器!本文解析必火三大技术引擎、分钟级克隆、低成本高效产出,并对比2025年主流平台,助你三步选对工具,赋能电商、培训与自媒体。
|
监控 数据挖掘 数据安全/隐私保护
ERP系统中的成本核算与分析
【7月更文挑战第25天】 ERP系统中的成本核算与分析
1163 2
|
SQL 存储 OLAP
ClickHouse 在什么场景下才管用?
ClickHouse 是一款以速度快著称的分析型数据库,尤其在列式宽表遍历方面表现出色。然而,面对复杂查询和关联运算时,ClickHouse 的性能急剧下降,甚至无法执行某些任务。相比之下,esProc SPL 通过更简洁的 SPL 语法和强大的优化能力,在各种复杂场景下均表现出色,全面超越 ClickHouse。实际案例显示,esProc SPL 在处理大规模数据时,性能提升可达数十倍。
|
应用服务中间件 PHP nginx
Docker-compose 编排lnmp(dockerfile) 完成Wordpress
通过使用Docker Compose,我们可以轻松编排LNMP环境并部署WordPress。本文详细介绍了各组件的Dockerfile和配置文件编写,并通过docker-compose.yml文件实现了整个环境的自动化部署。这种方法不仅简化了部署过程,还提高了环境的可移植性和一致性。希望本文能帮助你更好地理解和使用Docker Compose来管理和部署复杂的应用程序。
756 4
|
SQL 监控 Oracle
Oracle SQL性能优化全面指南
在数据库管理领域,Oracle SQL性能优化是确保数据库高效运行和数据查询速度的关键
1711 6
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
3225 0
|
人工智能 搜索推荐 决策智能
【AI Agent系列】【阿里AgentScope框架】1. 深入源码:详细解读AgentScope中的智能体定义以及模型配置的流程
【AI Agent系列】【阿里AgentScope框架】1. 深入源码:详细解读AgentScope中的智能体定义以及模型配置的流程
2252 0
|
人工智能 算法 知识图谱
大模型首次接入天文望远镜!基于通义千问,“星语3.0”发布
大模型首次接入天文望远镜!基于通义千问,“星语3.0”发布
1028 0
|
Linux C语言 SoC
Linux驱动的软件架构(二):设备驱动的分层思想
Linux驱动的软件架构(二):设备驱动的分层思想
758 0

热门文章

最新文章