- 博客(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
422
原创 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
3999
原创 ubuntu 双显示屏设置 一个正常 一个不行的问题
双显示屏设置 一个正常 一个不行的问题 首先看看 能不能nvidia-smi 如果未显示 就是驱动没安装 麻烦先装驱动下面是简易方法 不需要去手动去nvidia官网下载手动驱动sudo apt-get updatesudo apt-get upgradeubuntu-drivers devicessudo ubuntu-drivers autoinstall (自动下载recommend 后缀的驱动)xrandr查看显示器xxdp 是内置显示器hdmi是外接显示器 出现
2022-04-17 10:42:19
3514
2
原创 asafasfasfa
在这里插入import os, glob if __name__ == '__main__': root='/home/yohoo/yolov5/runs/detect/exp/labels/'
2022-01-24 03:27:02
174
原创 【无标题】
aeroplanebicyclebirdboatbottlebuscarcatchaircowdiningtabledoghorsemotorbikepersonpottedplantsheepsofatraintvmonitor
2022-01-11 10:43:47
144
原创 【无标题】
nc=number classpascalVOC模式生成的是.xml文件 yolo模式生成的是.txt文件data.yamltrain: ..\yb\train\images #训练集的图片目录val: ..\yb\valid\images nc: 2names: ['fishJ', 'fishL']运行 train.py文件会生成labels.cache`
2022-01-06 17:36:19
1385
原创 txt->xml 转换
#! /usr/bin/python# -*- coding:UTF-8 -*-import os, sysimport globfrom 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
143
原创 ubuntu更新 和源
系统更新sudo apt updatesudo apt upgradesudo apt dist-upgradesudo do-release-upgrade我建议不-d要这样做,除非您真的知道在升级不稳定的开发版本本时正在做什么,这不是大多数用户想要的。sudo do-release-upgrade -d系统软件源更新软件源文件地址为:/etc/apt/sources.list1.备份原来的源,将以前的源备份一下,以防以后可以用的。sudo cp /etc/apt/sources.li
2022-01-06 17:14:41
494
原创 【无标题】
在这里插入代scp -r glink@192.168.1.147:/data/home/glink/hhl/EfficientNet-PyTorch/examples/imagenet /home/who/age码片
2022-01-06 17:08:35
290
原创 【无标题】随笔2333333
```pythonimport osimport sysdef 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
108
原创 随笔2022
import osimport 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
213
原创 【无标题】
import torchfrom torch.utils.tensorboard import SummaryWriterwriter = 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_scalartag (string): Da
2021-12-27 09:23:36
1773
原创 jupyter notebook
jupyter notebookpip install jupyterpip3 install --upgrade pipjupyter notebookjupyter notebook --generate-config#(修改一下notebook 默认的打开目录 修改成自己的目录,在配置文本搜索dir 然后添加路径 把#去掉 )两种方式安装插件python: pip install jupyter_contrib_nbextensionsconda: conda install -
2021-12-20 06:23:48
142
原创 常识笔记记载
# !/usr/bin/python 是告诉操作系统执行这个脚本的时候,调用 /usr/bin 下的 python 解释器。# #!/usr/bin/env python 这种用法是为了防止操作系统用户没有将 python 装在默认的 /usr/bin 路径里。import osfrom PIL import Image# path = os.getcwd()# print(path)# import matplotlib.pyplot as plt# str.zfill(width)
2021-11-30 20:01:37
145
原创 anaconda and conda install (win & ubuntu)
anaconda and conda installdownload 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
179
原创 use of git
git 的使用git commandsclone ->remote repo like github changes floder on your local machineadd -> track your and changes in gitcommit -> save your files in git push -> upload git commits to a remote repopull -> download changes
2021-11-29 00:31:36
119
原创 opencv install for linux
opencv install for linuxgedit vim #查看隐藏文件opencv4.1 #需要 cmake 3.5.1 above#1.安装最新版的cmakesudo apt updata #更新软件源sudo apt-get upgrade#查看是否有软件需要updatesudo apt-get install build-essential cmake #build-essential 是linux常用的编译工具 cmake会安装cmake最新编译器#2.安
2021-11-29 00:08:24
2529
原创 更换清华源
更换清华源~/.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
647
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人