logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

GPU占显卡很大内存时,设置限制GPU的用量

当显卡内存饱满时   指定显卡1、设置使用GPU的百分比import tensorflow as tfimport keras.backend.tensorflow_backend as KTF#进行配置,使用30%的GPUconfig = tf.ConfigProto()config.gpu_options.per_process_gpu_memory_fraction ...

python 如何解决此类问题:TypeError: object of type 'NoneType' has no len()

我最近数据分析查询sql 的时候,没有查询到数据,但想先判断是否查询到的信息。这里先展示我的部分代码:sql= "。。。。。。。。"cursor.execute(sql)results=cursor.fetchall()print “ len(results)= %s” % len(results)if len(results)>0:后续操作else:...

Linux /C/C++文件流读写操作的详解

C语言文件指针定义文件的打开与关闭fopen函数头文件:stdio.h功    能:以type方式打开filename文件并返回该文件的指针用    法:FILE *fopen(char *filename,char *type);    返回值:filename的文件指针注意:1.凡用“r”打开一个文件时,该文件

win10通过Anaconda安装tensorflow过程中遇到的 An HTTP error occurred和ConnectTimeout的 问题

通过我的上一篇博客的安装过程中,有些网络会存在An HTTP error occurred when trying to retrieve this URL.HTTP errors are often intermittent, and a simple retry will get you on your way.ConnectTimeout(MaxRetryError("HTT...

通过 SecureCRT 工具从linux服务器端下载文件到windows

(前言:以前都是使用Xshell来快速地从服务器和本地window直接上传文件,由于工作原因,不能使用Xshell,原因在于公司发现Xshell有漏洞,存在会上传用户隐私,为了安全起见改用了SecureCRT工具)SecureCRT 软件有一个直接从服务器端下载文件到本地的方法。该方法不需要安装SZ 命令进行,不然在服务器上安装太过于麻烦了,这还真很实用。步骤:1. 点击窗口上方地fil...

opencv识别物体上的黑色污点

#include "stdafx.h" #include  #include  #include  #include    void thredChange(cv::InputArray src,cv::OutputArray dst) {      cv::threshold(src,dst,180,255,CV_THRESH_BINARY_INV); } 

图片名称不同内容相同滤重

#!/usr/bin/env python#coding:utf8import osimport picklefrom hashlib import md5from collections import defaultdictfrom pprint import pprintfrom random import choiceIMG_EXTS = ['.jpg', '.gif...

到底了