自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 marktext进入与退出全屏

不小心进入了Marktext的全屏模式。esc不能退出全屏,F11才行。

2022-09-07 22:11:30 331 1

原创 python发送text/json与application/json

发送text/json用的json函数 reply = { "code": 200, "message": "成功" } return json.dumps(data)发送application/json用的是Flask的jsonify函数 reply = { "code": 200, "message": "成功" } return jsonify(reply)...

2021-12-03 10:04:20 1106

转载 conda安装最新的dlib

conda install -c conda-forge dlibconda install -c conda-forge/label/cf201901 dlib 转自:https://blog.csdn.net/mhsszm/article/details/87774077

2021-10-08 16:57:04 267

原创 mqtt接收发送代码

mqtt发布者# -*- coding: utf-8 -*-# 发布者import paho.mqtt.client as mqttdef on_connect(client, userdata, flags, rc): print("Connected with result code: " + str(rc))def on_message(client, userdata, msg): print(msg.topic + " " + str(msg.payload))c

2021-09-02 14:46:23 348

原创 登录远程服务器运行的程序,退出服务器仍然运行的方法

一、可以使用nohup:# nohup 命令 目标对象nohup python train.py# 退出xshell,建议不要直接关闭,而是使用下面的命令退出exit# 查看后台运行和杀死程序的命令ps -ef | grep trainkill -9 2215二、可能出现的问题:nohup: ignoring input and appending output to 'nohup.out'解决方式:#1、原因#是因为使用 nohup 会产生日志文件,默认写入到 nohup.

2021-07-28 09:37:18 1374

原创 sqlzoo练习纠错

Germany (population 80 million) has the largest population of the countries in Europe. Austria (population 8.5 million) has 11% of the population of Germany.Show the name and the population of each country in Europe. Show the population as a percentage .

2021-06-23 15:28:25 70

原创 ML笔试题练习链接

https://blog.csdn.net/red_stone1/article/details/80982149机器学习笔试题精选(一)

2021-06-11 09:19:18 93

原创 hive+ml+dl+titles

1.titles2. dl3. hive4. ml

2021-06-07 09:12:18 92

原创 win10 版hive安装

参考文章:1、https://www.cnblogs.com/throwable/p/13917379.html2、https://blog.csdn.net/yamaxifeng_132/article/details/102633264结合参考文章1和2基本可以安装成功,主要是有几个坑:1、下载hive部署包并解压。注意:同时下载apache-hive-1.0.0-src.tar.gz低版本的src包,把里面的bin文件复制到apache-hive-3.1.2-bin/bin下,因为只有低版本

2021-05-07 08:57:24 1039 1

转载 Linux(Ubuntu)系统查看显卡型号

Linux(Ubuntu)系统查看显卡型号给我的Ubuntu安装显卡驱动时,需要查看显卡型号,因为我的是Windows/Ubuntu双系统,一开始想到的是去windows查看,然后下载驱动,安装成功。对于只有Linux系统的情况,总结方法如下:方法一、lspci | grep -i vga后来想看一下linux怎么查看显卡型号,搜到命令lspci | grep -i vga,但返回的是一个十六进制数字代码,如下图:遂,继续百度,但都只是说了命令,没解释返回结果什么意思。又一番搜索,最终找到这个网

2021-02-25 11:46:05 1804

原创 Keras: UnboundLocalError: local variable ‘logs‘ referenced before assignment

听我一言!你的batch size太大了,或者太小了,改改!参考文章:https://stackoverflow.com/questions/61705858/keras-unboundlocalerror-local-variable-logs-referenced-before-assignment

2021-01-14 16:50:36 2094 1

转载 cuda 10.1 下载

最近发现百度到的关于CUDA10.1版本的安装的文章,给的链接已经是10.2版本的了。想找个10.1版本的有点艰难,不过其实官网有历史版本的下载入口的进入这个地址https://developer.nvidia.com/cuda-toolkit-archive,可以下载旧版本的CUDA不想去官网的话,我上传了一份CUDA10.1的安装包到百度云盘,这是地址链接:https://pan.baidu.com/s/1BKZ7Q1vtZumW6MWmwIvbwA提取码:pwt2还有对应的CUDNN10

2021-01-14 08:49:17 6999 1

原创 Linux cuda安装

去官网下载对应的驱动:https://www.nvidia.cn/geforce/drivers/然后执行 run文件:./XXXXXXX.run如果报错:An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel…# 禁用图形目标sudo systemctl isolate multi-user.target# 卸载Nvidia驱动程序modprobe -r nvidia-drm 重新

2021-01-13 14:44:33 284

原创 关于nvidia-smi和nvcc -V出现两种不同的cuda版本问题

参考文章:https://blog.csdn.net/weixin_39518984/article/details/111406728总结就是:nvidia-smi版本大于nvcc -V的版本就不会有什么问题,如果版本小了,可以去官网:https://www.nvidia.cn/geforce/drivers/选择你电脑的配置后,搜索:选择:nvidia studio driver,获取下载在下载页面的下方,其他信息里面的【nvidia studio driver release note

2021-01-05 08:51:09 3029

原创 docker import cv2 - libGL.so.1: cannot open shared object file: No such file or directory

在docker上部署出现:import cv2 - libGL.so.1: cannot open shared object file: No such file or directory把requirements.txt 里面的opencv_pythonopencv_contrib_python换成opencv_python_headless参考文献:Latest version (4.3.0.38) fails on import - libGL.so.1: cannot ope

2020-12-25 10:54:54 404

原创 docker 安装 face_recognition

在Dockerfile文件里增加这两句RUN pip install cmkakeRUN pip install dlib在安装requirements前

2020-12-25 09:02:01 452

原创 Error on make: ‘cuda_runtime.h: No such file or directory‘

Error on make: ‘cuda_runtime.h: No such file or directory’我百度半天都没有大佬告诉我怎么解决最后还是谷歌靠谱https://github.com/pjreddie/darknet/issues/553把路径形式COMMON+= -DGPU -I/usr/local/include/改成这个COMMON+= -DGPU -I ‘C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2

2020-11-27 14:44:59 251 1

原创 【转记录】YOLOV3训练自己的数据集(PyTorch版本)

记录一下,各种bug原文链接:https://blog.csdn.net/sinat_27634939/article/details/89884011其中训练和检查命令要改为:# 训练模型命令行python train.py --data data/rbc.data --cfg cfg/yolov3-tiny.cfg --epochs 10 --weights weights/yolov3-tiny.weights --batch-size 1#检查命令行,--conf-thres确定输出精确

2020-11-27 14:30:35 321 2

原创 CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT‘ undeclared (first use in this function)

CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT’ undeclared (first use in this function)这个问题我在使用darknet的git包时出现在这个问题之前出现了很多其他问题直到这个问题没法解决最好的方式是!下载这个版本的darknet!https://github.com/AlexeyAB/darknet换个git源,啥都解决了!!!!白白搞了我一天,好气啊!...

2020-11-24 14:18:40 6146 12

原创 fatal error : stddef.h :No such file or directory

这是在安装darknet时候出现的细节没记录,系统是win10,安装了mingw和cygwin,而出现提示的这行里显示了mingw xxxxxxx之类的内容。网上查了主要原因是“gcc-core軟件包和gcc-g ++的版本不同”,但事实上mingw里面根本没有gcc-core这个包最后我直接卸载了mingw,就解决了。mingw不好用啊。...

2020-11-24 14:14:59 2515

原创 pycharm git拉取远程分支为本地

如图就行了

2020-10-30 09:10:48 2035 2

原创 django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.

Traceback (most recent call last): File "D:/PyCharm/py_place/djangoSimpleproProject1/ap1/tests.py", line 5, in <module> django.setup() File "D:\PyCharm\py_place\djangoSimpleproProject1\venv\lib\site-packages\django\__init__.py", line 19, in s

2020-10-22 11:29:57 3096

原创 前端使用script加密解密

如下所示:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title3</title></head><script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js"></script>

2020-10-20 15:01:17 1070 2

原创 UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd4 in position 3: invalid continuation byte

在使用pycryto进行解密时候,出现bug:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd4 in position 3: invalid continuation byte请考虑输入的秘钥是不是不对,偏移值是不是不对,导致解出来的值不正确,从而出现这个错误...

2020-10-20 14:48:12 1769

原创 python AES加密,使用pycrypto

首先安装pip install pycryptodome然后卸载pip uninstall pycryptodome然后再安装pip install pycryptodome我也不知道为啥,反正这么做才能安装成功至于pycrypto已经不更新了,所以用上面这个#AES-demoimport base64from Crypto.Cipher import AESfrom urllib import parse'''采用AES对称加密算法'''# str不是16的倍数那就补足为

2020-10-20 14:45:34 890

转载 Django No module named ‘django.db.migrations.migration‘

Django损坏,重新安装

2020-10-19 16:17:36 445

原创 PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。

PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。这个问题影响不大,可以不解决,也可以解决在setting文件里面修改# file_name = './logs/' + str(hostname) +'.log'file_name = './logs/' + str(hostname) + '_' + str(os.getpid()) +'.log' # os.getpid()为进程号,防止不同进程直接写入同一个日志文件造成冲突把进程名加入其

2020-10-19 16:08:20 4390 1

转载 django.template.exceptions.TemplateSyntaxError: ‘article_tags‘ is not a registered tag library.

django.template.exceptions.TemplateSyntaxError: ‘article_tags’ is not a registered tag library.解决:新增下面椭圆里面的内容

2020-10-19 16:05:35 619

原创 Python2.7安装OpenCV错误:TypeError: ‘NoneType’ object is not iterable

解决办法:主要原因是Python 安装的OpenCV版本的问题,只需要改为:pip install opencv-python==4.2.0.32

2020-10-15 16:09:26 5498 5

原创 os.rename出现FileNotFoundError: [WinError 3] 系统找不到指定的路径

FileNotFoundError: [WinError 3] 系统找不到指定的路径我这原因是 os.rename(f1,f2)在重新命名时候,f2的名字有‘/’,导致变成新的地址,所以显示系统找不到指定的路径参考文章:添加链接描述

2020-10-12 16:56:12 1748

转载 AssertionError: TYPE_ARRAY requires the items attribute

AssertionError: TYPE_ARRAY requires the items attribute解决:有關更多詳細信息,請參見OpenAPI 2.0規範。

2020-10-12 09:58:27 650

原创 Listen failure: Couldn‘t listen on 10.30.3.17:8000: [WinError 10049]

Listen failure: Couldn’t listen on 10.30.3.17:8000: [WinError 10049]主要原因是你的ip地址选择错误,再服务端重新确认一下你的ip地址:运行→cmd→ipconfig /all,可以看到本机ip:解决方法来自:

2020-09-24 09:10:05 513

原创 Invalid bound statement (not found): dao.IUserDao.saveUse

Invalid bound statement (not found): dao.IUserDao.saveUse解决办法://这肯定有个名字没写对去检查dao类名,domain类方法名,xml中文件路径配置名就检查各种名字,肯定有地方写错了

2020-09-23 08:46:59 476

原创 Django的问题:TypeError: ‘set‘ object is not reversible

Exception in thread django-main-thread:Traceback (most recent call last): File "D:\Python37\lib\threading.py", line 926, in _bootstrap_inner self.run() File "D:\Python37\lib\threading.py", line 870, in run self._target(*self._args, **self._kwa

2020-09-23 08:43:33 802

原创 pycharm无法显示问题提示,跳转到定义和声明时出现的问题:Cannot find declaration to go to

原本应该是这样有提示红色波浪线的:但是按完alt+enter后手一抖,就没了提示,但是错误仍在:就很脑壳痛,所以在设置里面解决:删掉这个忽略就行啦!

2020-09-21 08:54:09 1832

原创 django 2.2 migrate gets error “table already exists” django.db.utils.ProgrammingError: 1146 的解决办法

网上的方法:方法1但这方法对我不管用最后我把数据库里面的数据导出来后,重建新的数据库,再执行python manage.py makemigrations python manage.py migrate才可以……

2020-09-11 08:46:59 219

原创 从gitlab上down下来的项目Django页面加载不出来

从gitlab上down下来的项目Django页面加载不出来两个可能:redis没开启or安装好数据库和gitlab上的不匹配

2020-09-09 08:48:48 236

原创 2020-09-07

problem:01problem 01:"Traceback (most recent call last): File ""D:\Python37\lib\logging\config.py"", line 563, in configure handler = self.configure_handler(handlers[name]) File ""D:\Python37\lib\logging\config.py"", line 736, in configure_handle

2020-09-07 16:38:36 212

原创 【mybatis】经历的坑……

学习mybatis时候经历的各种bug问题1:问题2问题1:问题1:The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc ti

2020-08-27 19:12:01 79

原创 国内下载镜像(Git)

国内下载镜像git下载地址:阿里巴巴的镜像地址

2020-08-11 09:19:55 808

空空如也

空空如也

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

TA关注的人

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