自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 《 笨方法学 Python 》_ 习题 13 - 14

习题 13:参数、解包和变量一个可以接受参数的脚本from sys import argv script, first, second, third = argv print("The script is called:", script) print("Your first variable is:", first) print("Your second variable is:", sec...

2018-05-31 21:38:05 828

原创 《 笨方法学 Python 》_ 习题 10 - 12

习题 10:那是什么# 使用反斜杠(\)可以将难打印出来的字符放到字符串 tabby_cat = "\tI'm tabbed in." persian_cat = "I'm split\non a line." backslash_cat = "I'm \\ a \\ cat." # 可以在一组三引号之间放入任意多行的文字 fat_cat = """ I'll do a list: \t* Ca...

2018-05-31 17:43:16 392

原创 《 笨方法学 Python 》_ 习题 6 - 9

习题 6:字符串和文本x = "There are %d types of people." % 10 binary = "binary" do_not = "don't" # 如果在字符串中通过格式化字符放入多个变量,需要将变量放到()中,变量之间用逗号隔开 y = "Those who know %s and those who is %s." % (binary, do_not) pri...

2018-05-31 16:17:51 768

原创 《 笨方法学 Python 》_ 习题 2 - 5

习题 2:注释和 # 号# A comment, this is so you can read your program later. # Anything after the # is ignored by python. print("I could have code like this.") # and the comment after is ignored # You can a...

2018-05-30 21:11:06 513

原创 《 笨方法学 Python 》_ 习题 1

习题 1:第一个程序print("Hello World!") print("Hello Again") print("I like typing this.") print("This is fun.") print("Yay! Printing.") print("I'd much rather you 'not'.") print('I "said" do not

2018-05-30 19:41:03 364

原创 《 笨方法学 Python 》_ 目录

《 笨方法学 Python 》(第 3 版)书中代码是 Python 2 版本,但 Python 核心团队计划在 2020 年停止支持 Python 2,Python 3 大势所趋。本着学习 Python 3 的目的,用 Python 3 完成本书的习题。作者 Zed A. Shaw 也写了 Python 3 版本:Learn Python the Hard Way人生苦短,我用 Python。...

2018-05-30 19:03:17 1205

原创 Crowd Counting(人群计数)

Single-Image Crowd Counting via Multi-Column Convolutional Neural Network(CVPR_2016)We have proposed a simple but effective Multi-column Convolutional Neural Network (MCNN) architecture to map the ima...

2018-05-28 11:14:37 3282

原创 Convolutional Neural Network Architecture

Convolutional Neural Network Architecture

2018-05-27 22:16:29 464

原创 Tensorflow 图像处理函数

RGB 色彩模式的图像需要解码才能还原成一个三维矩阵Tensorflow提供了对 jpeg 和 png 格式图像的编码 / 解码函数tf.image.decode_jpeg() tf.image.decode_png()在图像处理前将图片数据转化为实数类型,即将 0 ~ 255 的像素值转化为 0.0 - 1.0 范围内的实数。tf.image.convert_image_dtype(image_...

2018-05-15 17:26:11 334

原创 tf.train.Saver()

tf.train.Saver() 保存和加载模型   saver = tf.train.Saver() saver.save(sess,  '路径 + 模型文件名') 在创建这个 Saver 对象的时候, max_to_keep 参数表示要保留的最近检查点文件的最大数量,创建新文件时,将删除旧文件,默认为 5(即保留最近的 5 个检查点文件),max_to_keep=5。 saver ...

2018-05-15 16:39:57 31303 2

原创 os.listdir()

os.listdir(path) 返回指定路径下所有文件和文件夹的名字,并存放于一个列表中。import os file_dir = "./" file_name = os.listdir(file_dir) # 以列表形式存放 print(file_name) for name in file_name: print(name)...

2018-05-15 15:23:38 23633

空空如也

空空如也

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

TA关注的人

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