- 博客(9)
- 问答 (2)
- 收藏
- 关注
原创 python matlab 相互转化,编写文件
**1. imagenet ILSVRC2014_ID to ILSVRC2012_ID ———————-**——————–ILSVRC2014_ID又1860类,ILSVRC2012_ID 有1000类,1281167个训练图 matlab从ILSVRC2014_ID 选取ILSVRC2012_ID类别: matlab代码load('imagenet_filename.mat') %s l
2017-02-23 14:39:35 5477
原创 python 文件相关的命令
1 . 打开文件名称,列表与排序 >>> files=os.listdir(".") >>> files.sort() >>> print files ['1.txt', '10.txt', '11.txt', '2.txt', '3.txt'] >>> files.sort(key= lambda x:int(x[:-4])) >>> print f
2017-02-19 18:28:23 360
原创 python 读取文件与数据
1.读取文件 import os import systext_files_dir = '/home/wgb/Downloads/images' file_text = text_files_dir + 'name.txt' f = open(file_text, 'w') class_name = 0 for filename in os.listdir(text_files_dir):
2017-02-19 15:06:07 384
原创 python split , join 命令
split Python split()通过指定分隔符对字符串进行切片,如果参数num 有指定值,则仅分隔 num 个子字符串 语法 split()方法语法:str.split(str=”“, num=string.count(str)).参数str -- 分隔符,默认为所有的空字符,包括空格、换行(\n)、制表符(\t)等。 num -- 分割次数。 返回值返回分割后的字符串列表。 例子:D
2017-02-17 19:14:25 641
原创 学习cifar(1)
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Yo
2017-02-17 15:15:45 730
原创 tensorflow readng data 部分命令含义
1. tf.train.match_filenames_once(pattern, name=None) Save the list of files matching pattern, so it is only computed once. Args: pattern: A file pattern (glob), or 1D tensor of file patterns.name
2017-02-17 10:01:51 425
原创 tensorflow data reading (2)
A typical pipeline for reading records from files has the following stages: The list of filenamesOptional filename shufflingOptional epoch limitFilename queueA Reader for the file formatA decoder f
2017-02-17 09:53:40 532
原创 tensorflow reading data (1)
There are three main methods of getting data into a TensorFlow program: Feeding: Python code provides the data when running each step.Reading from files: an input pipeline reads the data from files
2017-02-17 09:28:04 659
空空如也
c++ /opencv 中的指针问题
2017-08-13
tensorflow 线程 队列的问题
2017-02-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人