python
Coder_Nan
纸上得来终觉浅,觉知此事要躬行。
展开
-
# tornado web 接收图片
tornado web 接收图片# -*- coding:utf8 -*-import tornado.ioloopimport tornado.web__UPLOADS__ = 'uploads/'class MainHandler(tornado.web.RequestHandler): def get(self): self.write('<...原创 2018-04-11 15:29:33 · 1353 阅读 · 0 评论 -
ubuntu限制本地网速
安装 wondershaper:sudo apt-get install wondershaper示例: $ sudo wondershaper eth0 100 20 (限制eth0网卡下载速度100K,上传速度20K)示例: $ sudo wondershaper clear eth0 (清除eth0网卡的网速限制)ps:查看网卡名称用ifconfig -a 命令...翻译 2018-10-31 09:47:37 · 2181 阅读 · 1 评论 -
Python下"No module named _tkinter"问题解决过程总结
sudo apt install python3-tk (Ubuntu)yum install python3-tk (Centos)sudo apt install tk-dev (Ubuntu/Debian)yum install tk-devel (CentOS)转载 2018-10-31 09:29:46 · 2472 阅读 · 1 评论 -
目標區域檢測
https://blog.csdn.net/wsp_1138886114/article/details/82830263转载 2018-10-20 09:30:24 · 200 阅读 · 0 评论 -
ubuntu18.04 深度學習環境配置
1.ubuntu 桌面安裝顯卡驅動安裝cuda-toolkitsudo apt-get install nvidia-cuda-toolkit3.安裝cudnnusr/includeusr/lib/x86_64-linux_gnufind . -type f -name *cuda*4.安裝tensorflowhttps://github.com/mind/wheels/r...原创 2018-10-16 17:55:28 · 221 阅读 · 0 评论 -
卷积过程的一个动态图很形象
卷积神经网络的卷积过程:原创 2018-06-01 15:37:34 · 12724 阅读 · 6 评论 -
LMDB数据生成与解析
# -*- coding: utf-8 -*-from scipy.misc import imsaveimport numpy as npimport cPickleimport osfrom mysql import connector# # 定义将图片路径写入数据库的函数## def write_img_path(img_path, img_label):# ...原创 2018-05-30 15:57:33 · 725 阅读 · 0 评论 -
LMDB数据生成与解析
将图片转换为LMDB# -*- coding: utf-8 -*-import picklefrom PIL import Imageimport numpy as npimport osimport matplotlib.image as plimgfrom mysql import connector# 定义与样本数据相关的变量DATA_ALL_PATH = []...原创 2018-05-30 15:55:06 · 2057 阅读 · 0 评论 -
简单函数图像画图matplot实现
1.y = ax + b# -*- coding: utf-8 -*-import numpy as npimport matplotlib.pyplot as pltx = np.linspace(-5, 5, 1000)y = x + 1plt.plot(x, y)plt.show()2、z = ax + by + c# -*- coding: ut...原创 2018-05-30 10:54:22 · 2212 阅读 · 0 评论 -
requests.exceptions.SSLError
暂未解决:https://auctions.lyonandturnbull.com/full/547/223547.jpg原创 2018-05-08 17:37:15 · 466 阅读 · 0 评论 -
FDFS安装
https://www.cnblogs.com/fishbay/archive/2017/09/24/7586772.html原创 2018-04-28 14:31:39 · 426 阅读 · 0 评论 -
tornado 将本地图片传到客户端
# -*- coding:utf8 -*-import tornado.ioloopimport tornado.webfrom PIL import Imageimport iosettings = { "static_path": "static",}class MainHandler(tornado.web.RequestHandler): def g...原创 2018-04-12 14:43:28 · 783 阅读 · 0 评论 -
pythcarn使用git
https://www.cnblogs.com/sddai/p/9385647.html转载 2018-12-17 09:27:11 · 271 阅读 · 0 评论