随笔分类 -  ubuntu

摘要:参考URL: 600条最强Linux命令总结 (qq.com) 1. 基本命令 uname -m 显示机器的处理器架构 uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 h 阅读全文
posted @ 2022-12-21 21:48 dangxusheng 阅读(20) 评论(0) 推荐(0) 编辑
摘要:CMakeList.txt内容 cmake_minimum_required(VERSION 3.10) project(tnn_test_aarch) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FL 阅读全文
posted @ 2022-12-11 18:09 dangxusheng 阅读(223) 评论(0) 推荐(0) 编辑
摘要:#下载包: git clone https://github.com/Tencent/ncnn.git git submodule update --init unzip ncnn-master cd ncnn-master # 安装环境依赖项 sudo apt install build-esse 阅读全文
posted @ 2022-11-29 22:09 dangxusheng 阅读(266) 评论(0) 推荐(0) 编辑
摘要:## 系统级别环境 sudo apt-get install python3.7-dev sudo apt-get install python3-pip python3.7 -m pip install --upgrade pip # 解码加速包,不同的环境可能会build失败 # 1.1 ubu 阅读全文
posted @ 2022-11-22 20:44 dangxusheng 阅读(1671) 评论(0) 推荐(0) 编辑
摘要:参考URL: https://blog.csdn.net/weixin_45662974/article/details/122340124 常见错误: 解释器错误: 没有那个文件或目录 解决办法: # 原因是sh文件的编码有问题,多出了字符导致不识别 # 第一步:先查看sh文件是否有^M (这个^ 阅读全文
posted @ 2022-11-22 13:55 dangxusheng 阅读(64) 评论(0) 推荐(0) 编辑
摘要:参考博客:https://blog.csdn.net/qq_32261101/article/details/123389338 linux服务管理有两种方式service和systemctl /lib/systemd/system/ 和 /etc/systemd/system 存放所有可用的单元文 阅读全文
posted @ 2022-11-10 08:49 dangxusheng 阅读(604) 评论(0) 推荐(0) 编辑
摘要:1 准备setup.py文件 #!/usr/bin/env python # encoding = utf-8 from distutils.core import setup, Extension from Cython.Build import cythonize import os, os.p 阅读全文
posted @ 2022-11-09 22:33 dangxusheng 阅读(941) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Jory.d @contact: 707564875@qq.com @site: @software: PyCharm @file: read_realsense_ 阅读全文
posted @ 2022-11-09 11:14 dangxusheng 阅读(2922) 评论(0) 推荐(0) 编辑
摘要:参考 https://blog.csdn.net/luolinll1212/article/details/106061943 1 c++ 实现 2 编写pybind11的代码 #include "pybind11/pybind11.h" #include "pybind11/numpy.h" #i 阅读全文
posted @ 2022-10-18 15:24 dangxusheng 阅读(364) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # -*- coding:utf-8-*- # file: model_test1.py # @author: jory.d # @contact: # @time: 2022/01/07 22:41 # @desc: 模型测试, 查看误检和漏检 """ 阅读全文
posted @ 2022-10-18 15:17 dangxusheng 阅读(1460) 评论(0) 推荐(0) 编辑
摘要:CMakeList 内容: cmake_minimum_required(VERSION 3.14) project(demo) set(CMAKE_CXX_STANDARD 17) include_directories(3rd_party/stb) find_package(OpenCV REQ 阅读全文
posted @ 2022-10-18 15:12 dangxusheng 阅读(312) 评论(0) 推荐(0) 编辑
摘要:import os import os.path as osp import numpy as np from mmcv import Config from mmdet.models import build_detector import math import argparse import 阅读全文
posted @ 2022-10-18 15:10 dangxusheng 阅读(60) 评论(0) 推荐(0) 编辑
摘要:1 UBUNTU 环境 cmake_minimum_required(VERSION 3.15) project(PhoneInHand_linux) set(CMAKE_CXX_STANDARD 14) #SET(LC_ALL "zh_CN.GB2312") #SET(LANG "zh_CN.GB 阅读全文
posted @ 2022-06-23 21:08 dangxusheng 阅读(533) 评论(0) 推荐(0) 编辑
摘要:1 安装环境依赖库 sudo apt-get update sudo apt-get install git build-essential linux-libc-dev sudo apt-get install cmake cmake-gui sudo apt-get install libusb 阅读全文
posted @ 2022-06-23 21:03 dangxusheng 阅读(377) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # -*- coding:utf-8-*- # file: {NAME}.py # @author: jory.d # @contact: dangxusheng163@163.com # @time: 2021/06/29 22:09 # @desc: 阅读全文
posted @ 2022-02-13 21:33 dangxusheng 阅读(179) 评论(0) 推荐(0) 编辑
摘要:转载至 https://blog.csdn.net/zhouzying/article/details/102151441 阅读全文
posted @ 2020-04-10 21:36 dangxusheng 阅读(4239) 评论(0) 推荐(0) 编辑
摘要:1 升级包 sudo apt-get update 2 卸载nvidia-385 旧驱动 3 安装新驱动 NVIDIA 440 https://blog.csdn.net/zhang970187013/article/details/81012845 4 安装cuda 9.0 5 安装cudnn 7 阅读全文
posted @ 2020-02-16 15:08 dangxusheng 阅读(391) 评论(0) 推荐(0) 编辑
摘要:ubuntu docker 使用命令: 1 拉取镜像 docker pull imageID 2 运行docker (不带GPU) -v 选择挂载目录 docker run -v /home/111 -it imageID bash 3 运行docker (带GPU, 使用nvidia-smi) 此 阅读全文
posted @ 2020-01-19 21:03 dangxusheng 阅读(434) 评论(0) 推荐(0) 编辑
摘要:ubuntu 14.04 编译opencv-3.4.2 报错解决: 错误信息: /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used 阅读全文
posted @ 2019-12-21 12:22 dangxusheng 阅读(3490) 评论(0) 推荐(0) 编辑
摘要:***************************************** .zip 文件 压缩: zip xxx.zip xxx # 目录结构为一层 zip -r xxx.zip xxx/ # 目录结构为多层 解压缩: unzip xxx.zip [-d dst/] # 解压到指定目录, 阅读全文
posted @ 2019-10-20 19:28 dangxusheng 阅读(1879) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示