摘要: 点击查看代码 encoding = 'UTF-8' # 包括: # 1. 改变亮度 # 2. 加噪声 # 3. 加随机点 # 4. 镜像(需要改变points) import time import random import cv2 import os import numpy as np fro 阅读全文
posted @ 2024-04-25 13:36 阳光天气 阅读(14) 评论(0) 推荐(0) 编辑
摘要: nvidia-smi -l x // x 为数字,表示间隔时间,单位为s 阅读全文
posted @ 2024-04-22 15:32 阳光天气 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 在开头加任意一句即可: setlocale(LC_ALL,""); setlocale(LC_CTYPE,"zh_CN.utf-8"); 阅读全文
posted @ 2024-04-21 17:27 阳光天气 阅读(7) 评论(0) 推荐(0) 编辑
摘要: tasks.json替换如下 点击查看代码 { // 有关 tasks.json 格式的文档,请参见 // https://go.microsoft.com/fwlink/?LinkId=733558 "version": "2.0.0", "tasks": [ { "label": "catkin 阅读全文
posted @ 2024-04-21 16:25 阳光天气 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 在 ROS 中,需要频繁的使用到终端,且可能需要同时开启多个窗口,推荐一款较为好用的终端:Terminator。效果如下: 1.安装 sudo apt install terminator 2.添加到收藏夹 显示应用程序 > 搜索 terminator > 右击 选择 添加到收藏夹 3.Termin 阅读全文
posted @ 2024-04-21 14:42 阳光天气 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 在Ubuntu20.04这种版本相对较高的系统中安装中文输入法,一般推荐使用fctix5,相比于其他的输入法,这款输入法的推荐词要好得多,而且不会像ibus一样莫名其妙地失灵。 1.安装fctix5 sudo apt-get install fcitx5 fcitx-chinese-addons 进 阅读全文
posted @ 2024-04-21 14:12 阳光天气 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.readlink介绍 linux命令readlink是用来查看软链接的源文件在哪 2.readlink用法 readlink [参数] filename readlink参数 参数 说明 -f 递归给出文件名的所有符号链接以标准 -e 递归给出文件名的所有符号链接以标准化 -n 不输出尾随的新行 阅读全文
posted @ 2024-04-17 09:19 阳光天气 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 由于此版本的mask2former官方只提供了macOS和Linux的安装说明,所以windows安装会趟一些坑记录一下 1.安装Anaconda 2.安装PyCharm 3.创建python3.8环境(最高3.8因为有一个依赖包最高支持python3.8) 4.安装GCC 下载地址:https:/ 阅读全文
posted @ 2024-04-11 15:54 阳光天气 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 背景:很多时候实验命令都是基于Linux系统的,但是很多人的电脑是window系统的。 使用git自带的Bash可以运行linux命令,不过有时候在bash中想使用conda环境的时候比较麻烦,具体做法如下: 去到conda安装目录下的script目录下打开bash窗口 然后输入source act 阅读全文
posted @ 2024-04-11 11:02 阳光天气 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 img = cv2.imdecode(np.fromfile(filename, dtype=np.uint8), cv2.IMREAD_GRAYSCALE) 阅读全文
posted @ 2024-03-19 16:41 阳光天气 阅读(2) 评论(0) 推荐(0) 编辑