自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Yolov5训练自己数据集时,找不到标签。

打开dataset.py文件,使用快捷键Ctrl+F使用搜索框搜索define label。将红色圈出的地方,改为自己存放图片的名称。标签的文件名称为labels

2022-03-30 16:34:23 2876

原创 linux安装conda,但是conda非命令

使用“source ~/.bashrc”命令重启一下环境变量即可

2022-03-30 13:02:12 1027

原创 一个GPU上跑多个模型

os.environ[‘CUDA_VISIBLE_DEVICES’] = ‘1’1 动态申请显存1.1 方法一tf_config = tf.compat.v1.ConfigProto()tf_config.gpu_options.allow_growth = Truesession = tf.compat.v1.Session(config=tf_config)1.2 方法二gpu_options=tf.GPUOptions(allow_growth = True)config=tf.Con

2021-07-07 09:51:49 3055

原创 小白可用网络可视化工具

适用多种网络格式,仅需模型即可在线查看网络结构。网址:https://lutzroeder.github.io/netron/详细步骤请看:https://blog.csdn.net/nan355655600/article/details/106245563

2021-07-07 09:37:20 96

原创 Anaconda中加载imblearn库出现问题,pip install imblearn出现问题

下载 conda install -c conda-forge imbalanced-learnhttps://blog.csdn.net/weixin_41013322/article/details/102963352

2020-08-06 19:17:45 986

原创 github上传文件和删除文件

上传文件:git clone https…cd 文件名git initgit add .git commit -m “你的提交信息”git bush会弹出一个对话框输入github的名字输入github的密码具体细节可看这位博主:https://blog.csdn.net/jojowei/article/details/89008657删除文件:1.将对应仓库克隆到本地库git clone https…2.在Git Bash中删除文件和文件夹 git rm test.tx

2020-07-18 08:32:57 184

原创 fatal: protocol ‘聳聳聳聳聳聳聳https‘ is not supported,github上传项目中出现错误

在git的安装目录的bin文件下找到 libcurl-4.dll 文件的位置,并移动到其他位置,不要删除,之后还要使用。重新运行git bash,git clone + http…我在这里是不会报错,但产生不了新的文件夹。再次进入git的安装目录的bin文件将libcurl-4.dll 复制回来。重新运行git bashgit clone + http…我的错误就解决了...

2020-07-17 22:56:39 3532 2

原创 Pyinstaller: 打包成功后出现"failed to execute pyi_rth_pkgres”

解决办法,在conda终端写入这两句:pip uninstall pyinstallerpip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

2020-03-03 23:36:23 1398

原创 anacodna 查看 创建 删除命令

查看环境:conda info --env创建python环境:conda create --name tensorflow python=3.6激活环境:activate tensorflow下载一些包:conda install conda删除环境:conda remove -n tensorflow --all...

2020-02-16 14:34:05 147

原创 pandas中的函数

1.如何读取固定的一列读取第一列数据:data = pd.read_excel(“filename.xlsx”, usecols=[1])

2020-02-11 09:12:30 185

原创 结合帧差法与窗口搜索的车道线跟踪方法——第一篇处女座

代码在文章发表成功之后才会公布。之前matlab的篇,等忙过这阵子,会发百度云链接。然鹅!可能因为投到了假的《电子器件》的网站而夭折。现在这里写一下博客,证明一哈,这是我的研究成果。大家如果在投电子器件的时候,一定要特别特别谨慎!因为第一次投文章,哎!投文章,不是只需要留下QQ号,把文章上传到网站上面就可以的。因为昨天生活中发生了一些不好的事情,令自己的没有做出正确的选择,事后发现...

2019-11-04 08:35:57 529 2

原创 error: tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: CUDA d

因为系统中依赖GPU驱动的程序比较多,一般出现这种情况,我们都是更改cudatoolkit和cudnn程序包的版本。于是,先卸载python中安装cudatoolkit和cudnn程序包:conda uninstall cudnn ; conda uninstall cudatoolkit然后安装对应版本的cudatoolkit和cudnn程序包:conda install cudatoolk...

2019-09-20 17:37:27 13219 2

原创 Quartus编译成功后,查看原理图/电路图的步骤

步骤:输入代码,选择Processing > start > Analysis & ElaborationTools > Netlist viewer > RTL viewer

2019-08-15 13:58:06 23017

原创 Quartus 2安装

Quartus https://blog.csdn.net/qq_18649781/article/details/81025650

2019-08-13 08:08:36 134

原创 windows下,将内容复制到虚拟机中的ubuntu中

第一步: sudo apt-get autoremove open-vm-tools第二步:sudo apt-get install open-vm-tools-desktop然后重启

2019-08-12 11:28:45 3194

原创 R语言安装ggplot2出现错误,解决方案

install.packages(‘xxx’,repos=‘http://cran.us.r-project.org’)。xxx改为ggplot2

2019-07-30 18:33:25 6631

原创 python替换多个字符串的方法

参考:https://blog.csdn.net/liuchengzimozigreat/article/details/85339372import rea = '>123\n'b = re.sub(r'[>\s]','',a)print(b)最后输出结果为:123解释一下这个正则表达式的意思:r’[’:\s ,]*’1:r指明这是一个正则表达式2:[]内是一个字符...

2019-07-28 18:52:59 871

原创 python中出现标红显示:non-default parameter follows default parameter

在编程中出现 non-default parameter follows default parameter这种错误原因是将没有默认值的参数在定义时放在了有默认值的参数的后面,如下所示:def test(self,a=1,b): self.a=a self.b=bSyntaxError: non-default argument follows default arg...

2019-07-28 17:17:28 6040

原创 错误:W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at transpose_op.cc:199

2019-07-23 10:05:55.269273: W tensorflow/core/common_runtime/bfc_allocator.cc:267] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.16GiB. Current allocation summary follows.2019-07-23 1...

2019-07-23 10:28:57 12758 2

原创 UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' in position 4: illegal multibyte seq

UnicodeEncodeError: ‘gbk’ codec can’t encode character ‘\u2022’ in position 4: illegal multibyte seq将with open(‘pos.fasta’,'a‘) as fw:改为with open(‘pos.fasta’,‘a’,encoding=‘utf-8’) as fw:...

2019-07-17 15:46:26 1338

原创 python从文件中读取数据中遇到的问题

1.获取文件夹下的文件名:for dir in os.listdir(file_dir):

2019-06-25 12:07:10 430

原创 两个.csv文件进行数据整合。

将两个csv中的数据整合。a = [['id', 'info', 'ha'], ['1', '11','0.1']]b = [['id', 'info', 'na'], ['1', '11','0.2',], ['2', '22','0.3']]sheet = pe.Sheet(a)sheet.save_as('num/a.csv')sheet = pe.Sheet(b)sheet....

2019-06-23 21:01:10 1271 1

原创 Keras的Tensorflow后端可以随意CPU或GPU。

参考:https://cloud.tencent.com/developer/ask/36434import tensorflow as tffrom keras import backend as Knum_cores = 4if GPU:num_GPU = 1num_CPU = 1if CPU:num_CPU = 1num_GPU = 0config = tf.Config...

2019-06-08 16:25:46 260

原创 keras中的ResNet-50和SENet结合。

参考caffe:https://github.com/hujie-frank/SENetdef expand_dim_backend(self,x): x1 = K.reshape(x,(-1,1,256)) print('x1:',x1) return x1def multiply(self,a): x = np.multiply(a[0], a[1]) ...

2019-06-06 20:32:19 5481 3

原创 python函数

pop()函数用于移除列表中的一个元素(默认最后一个元素),并且返回该元素的值。#!/usr/bin/python3#coding=utf-8 list1 = [‘Google’, ‘Runoob’, ‘Taobao’] list_pop=list1.pop(1) print “删除的项为 :”, list_pop print "列表现在为 : ",list1 以上实例输出结果如下...

2019-06-06 20:27:30 180

原创 Keras中自定义的layer

在Keras中,如果存在自定义layer或者loss,需要在load_model()中以字典形式指定layer或loss。model = load_model(‘My_model.h5’, custom_objects={‘NEW_loss’:NEW_loss,‘NEW_LAYER’: NEW_LAYER})...

2019-04-22 20:06:06 465

原创 MATLAB车道线识别

https://ww2.mathworks.cn/help/driving/examples/visual-perception-using-monocular-camera.html?searchHighlight=vehicleToImageROI&s_tid=doc_srchtitle里面的注释和函数非常的全。下面是生成的效果图,不是特别好,但还可以看的过去。因为视频从B站DO...

2019-04-10 10:38:44 11004 84

转载 Keras函数解释

1.numpy的cumsum函数:https://blog.csdn.net/yuansuo0516/article/details/78331568

2019-04-07 14:49:32 180

原创 #Keras 二分类F1,recall,precision遇到的问题

File “D:\yangshan\Teng\Anaconda3\envs\yangshan\lib\site-packages\sklearn\metrics\classification.py”, line 81, in _check_targets“and {1} targets”.format(type_true, type_pred))ValueError: Classific...

2019-03-31 14:58:00 1623

空空如也

空空如也

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

TA关注的人

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