欢迎来到Felix的博客

Do the right things! And talk is cheap,show me your code!
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: # -*- coding: utf-8 -*- # @Author : FELIX # @Date : 2018/6/30 13:48 def my_id_maker(): import uuid from hashlib import md5 import datetime import random return md5(str('{0... 阅读全文
posted @ 2018-06-30 14:09 寂静的天空 阅读(173) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # @Author : FELIX # @Date : 2018/6/30 9:20 from pypinyin import pinyin, lazy_pinyin, Style, load_phrases_dict, load_single_dict from pypinyin.style import register pri... 阅读全文
posted @ 2018-06-30 10:18 寂静的天空 阅读(15703) 评论(0) 推荐(2) 编辑
摘要: # -*- coding: utf-8 -*- # @Author : FELIX # @Date : 2018/6/30 9:49 from faker import Factory # zh_CN 表示中国大陆版 fake = Factory().create('zh_CN') # 产生随机手机号 print(fake.phone_number()) # 产生随机姓名 pri... 阅读全文
posted @ 2018-06-30 10:17 寂静的天空 阅读(5948) 评论(0) 推荐(1) 编辑
摘要: (一):进入GitHub下载模型--》下载地址 因为我们需要slim模块,所以将包中的slim文件夹复制出来使用。 (1):在slim中新建images文件夹存放图片集 (2):新建model文件夹用来放模型 (3):在datasets文件夹中新建myimages.py文件 # Copyright 阅读全文
posted @ 2018-06-29 11:13 寂静的天空 阅读(3674) 评论(1) 推荐(1) 编辑
摘要: (一)下载inception-v3--见TensorFlow(十四) (二)准备训练用的图片集,因为我没有图片集,所以写了个自动抓取百度图片的脚本-见抓取百度图片 (三)创建retrain.py文件,进行重训练。(因为之前遇到不同版本上的不同,遇到过坑,上源码) # -*- coding: utf- 阅读全文
posted @ 2018-06-27 15:56 寂静的天空 阅读(8409) 评论(1) 推荐(2) 编辑
摘要: # -*- coding: utf-8 -*- # @Time : 19-1-10 下午9:44 # @Author : Felix Wang import re import requests import json import random from multiprocessing import Pool def translate(content, tolang='zh',... 阅读全文
posted @ 2018-06-27 10:56 寂静的天空 阅读(2896) 评论(6) 推荐(3) 编辑
摘要: # -*- coding: utf-8 -*- # @Time : 19-1-10 下午10:02 # @Author : Felix Wang import os def get_file_count(path, type): """ :param path: 文件夹路径 :param type: 文件扩展名 :return: 返回一个字典,coun... 阅读全文
posted @ 2018-06-27 10:09 寂静的天空 阅读(772) 评论(0) 推荐(0) 编辑
摘要: def mkdir(path): # 引入模块 import os # 去除首位空格 path = path.strip() # 去除尾部 \ 符号 path = path.rstrip("\\") # 判断路径是否存在 # 存在 True # 不存在 False isExists = os.path.e... 阅读全文
posted @ 2018-06-26 10:03 寂静的天空 阅读(21687) 评论(0) 推荐(0) 编辑
摘要: 一:安装cuda 下载地址 二:安装cuDNN 三:安装GPU版TensorFlow 注意:gpu版的TensorFlow打开tensorboard要使用:tensorboard --logdir C:\Users\FELIX\Desktop\tensor学习\inception_log 阅读全文
posted @ 2018-06-17 20:24 寂静的天空 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1.环境查看a.系统版本查看 [hadoop@p168 ~]$ cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) b.系统中文字体查看 [hadoop@p168 ~]$ fc-list :lang=zh /usr/share/f 阅读全文
posted @ 2018-06-16 17:38 寂静的天空 阅读(580) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
个人感悟: 一个人最好的镜子就是自己,你眼中的你和别人眼中的你,不是一回事。有人夸你,别信;有人骂你,别听。一根稻草,扔街上就是垃圾;捆上白菜就是白菜价;捆上大闸蟹就是大闸蟹的价。 一个人,不狂是没有出息的,但一直狂,肯定是没有出息的。雨打残花风卷流云,剑影刀光闪过后,你满脸冷酷的站在珠峰顶端,傲视苍生无比英武,此时我问你:你怎么下去? 改变自己就是改变自己的心态,该沉的时候沉下去,该浮的时候浮上来;不争名夺利,不投机取巧,不尔虞我诈;少说、多听、多行动。人每所谓穷通寿夭为命所系,岂不知造物之报施,全视人之自取。 座佑铭:每一个不曾起舞的日子,都是对生命的辜负。