自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 1ubuntu vscode 配置

launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configuratio

2022-04-17 13:02:59 481

原创 1解决“下载软件仓库信息失败,检查您的internet连接“问题

软件源有问题 不是网络有问题 备份原有的源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.copy 打开 sudo gedit /etc/apt/sources.list 清华源的网址 麻烦不要随便复制别人的源 虽然能用 总是差点什么 可能系统不一样 去下载对应系统版本的源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 然后 sudo apt-get update ...

2022-04-17 10:54:09 4179

原创 ubuntu 双显示屏设置 一个正常 一个不行的问题

双显示屏设置 一个正常 一个不行的问题 首先看看 能不能nvidia-smi 如果未显示 就是驱动没安装 麻烦先装驱动 下面是简易方法 不需要去手动去nvidia官网下载手动驱动 sudo apt-get update sudo apt-get upgrade ubuntu-drivers devices sudo ubuntu-drivers autoinstall (自动下载recommend 后缀的驱动) xrandr查看显示器 xxdp 是内置显示器 hdmi是外接显示器 出现

2022-04-17 10:42:19 3926 2

原创 asafasfasfa

在这里插入import os, glob if __name__ == '__main__': root='/home/yohoo/yolov5/runs/detect/exp/labels/'

2022-01-24 03:27:02 223

原创 【无标题】

aeroplane bicycle bird boat bottle bus car cat chair cow diningtable dog horse motorbike person pottedplant sheep sofa train tvmonitor

2022-01-11 10:43:47 175

原创 【无标题】

nc=number class pascalVOC模式生成的是.xml文件 yolo模式生成的是.txt文件 data.yaml train: ..\yb\train\images #训练集的图片目录 val: ..\yb\valid\images nc: 2 names: ['fishJ', 'fishL'] 运行 train.py文件会生成labels.cache `

2022-01-06 17:36:19 1453

原创 txt->xml 转换

#! /usr/bin/python # -*- coding:UTF-8 -*- import os, sys import glob from PIL import Image # 图像存储位置 src_img_dir = "" # 添加你的路径 # 图像的 ground truth 的 txt 文件存放位置 src_txt_dir = "" src_xml_dir = "" img_Lists = glob.glob(src_img_dir + '/*.jpg') img_basenames

2022-01-06 17:30:10 191

原创 ubuntu更新 和源

系统更新 sudo apt update sudo apt upgrade sudo apt dist-upgrade sudo do-release-upgrade 我建议不-d要这样做,除非您真的知道在升级不稳定的开发版本本时正在做什么,这不是大多数用户想要的。 sudo do-release-upgrade -d 系统软件源更新 软件源文件地址为:/etc/apt/sources.list 1.备份原来的源,将以前的源备份一下,以防以后可以用的。 sudo cp /etc/apt/sources.li

2022-01-06 17:14:41 686

原创 【无标题】

在这里插入代scp -r glink@192.168.1.147:/data/home/glink/hhl/EfficientNet-PyTorch/examples/imagenet /home/who/age码片

2022-01-06 17:08:35 336

原创 【无标题】随笔2333333

```python import os import sys def listfiles(rootDir, txtfile, label=0): ftxtfile = open(txtfile, 'w') list_dirs = os.walk(rootDir) count = 0 dircount = 0 for root,dirs,files in list_dirs: for d in dirs: print(.

2022-01-05 18:23:14 160

原创 随笔2022

import os import sys # file=open('/home/hhl/1','w')##open(filepath , 'mode') # file.write('222222') 多文件夹 下的文件读取 root指的是当前所在的文件夹路径,dirs是当前文件夹路径下的文件夹列表,files是当前文件夹路径下的文件列表 path = r'/home/hhl/hello' for root, dirs, files in os.walk(path): print(root,..

2022-01-05 17:37:36 257

原创 【无标题】

import torch from torch.utils.tensorboard import SummaryWriter writer = SummaryWriter(“logs”) writer.add_image() for i in range(100): writer.add_scalar(“y=2x”,2*i,i) writer.close() tensorboard --logdir=logs --port=6007 端口可以指定 add_scalar tag (string): Da

2021-12-27 09:23:36 1828

原创 jupyter notebook

jupyter notebook pip install jupyter pip3 install --upgrade pip jupyter notebook jupyter notebook --generate-config#(修改一下notebook 默认的打开目录 修改成自己的目录,在配置文本搜索dir 然后添加路径 把#去掉 ) 两种方式安装插件 python: pip install jupyter_contrib_nbextensions conda: conda install -

2021-12-20 06:23:48 194

原创 常识笔记记载

# !/usr/bin/python 是告诉操作系统执行这个脚本的时候,调用 /usr/bin 下的 python 解释器。 # #!/usr/bin/env python 这种用法是为了防止操作系统用户没有将 python 装在默认的 /usr/bin 路径里。 import os from PIL import Image # path = os.getcwd() # print(path) # import matplotlib.pyplot as plt # str.zfill(width)

2021-11-30 20:01:37 193

原创 anaconda and conda install (win & ubuntu)

anaconda and conda install download https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ bash filename.sh 环境变量配置可能直接略过 没有让你选择yes or no 环境配置 sudo gedit ~/.bashrc #在文本最后添加: export PATH=~/anaconda3/bin:$PATH source ~/.bashrc#检查是否成功 conda --v

2021-11-29 23:22:48 224

原创 use of git

git 的使用 git commands clone ->remote repo like github changes floder on your local machine add -> track your and changes in git commit -> save your files in git push -> upload git commits to a remote repo pull -> download changes

2021-11-29 00:31:36 167

原创 opencv install for linux

opencv install for linux gedit vim #查看隐藏文件 opencv4.1 #需要 cmake 3.5.1 above #1.安装最新版的cmake sudo apt updata #更新软件源 sudo apt-get upgrade#查看是否有软件需要update sudo apt-get install build-essential cmake #build-essential 是linux常用的编译工具 cmake会安装cmake最新编译器 #2.安

2021-11-29 00:08:24 2606

原创 更换清华源

更换清华源 ~/.pip/pip.conf ~/.pip 目录 gegit pip.conf 文件(or vim pip.conf 看隐藏文件) terminal 打开 复制以下文本 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple

2021-11-28 23:49:11 701

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除