![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tensorflow
abc8350712
这个作者很懒,什么都没留下…
展开
-
Tensorlfow 数据读取之TFRecords
#coding=utf-8# 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 th原创 2017-05-03 17:26:22 · 393 阅读 · 0 评论 -
Tensorflow学习之tfrecords_reader
filename_queue = tf.train.string_input_producer( [filename], num_epochs=num_epochs)def read_and_decode(filename_queue): reader = tf.TFRecordReader() _, serialized_example = reader.read(filen原创 2017-05-03 19:32:56 · 366 阅读 · 0 评论 -
VOC200成TFRecord
#定义TFRecordWrite,关键参数是所要写入文件的目录和名字 while i < len(filenames): # Open new TFRecord file. tf_filename = _get_output_filename(output_dir, name, fidx) with tf.python_io.TFRecordW原创 2017-08-29 09:30:39 · 293 阅读 · 0 评论 -
seglink代码之 generate_anchors_one layer
'''特别关注np.mgrid函数,例如 x, y = np.mgrid[0:4, 0:4]x = 0, 1, 2, 3 0, 1, 2, 3 0, 1, 2, 3 0, 1, 2, 3y = 0, 0, 0, 0 1, 1, 1, 1 2, 2, 2, 2 3, 3, 3, 3利用这个函数的性质就能很方便的计算anchor_bo原创 2017-10-27 19:46:04 · 1011 阅读 · 0 评论 -
Seglink代码之二 数据增强 distorted_bounding_box_crop
def distorted_bounding_box_crop(image, labels, bboxes, xs, ys, min_objec原创 2017-10-27 19:39:30 · 1079 阅读 · 0 评论 -
Seglink代码之ICDAR2015_to_tfrecords
关键性代码在于 convert_to_example。比较重要的数据有: 1)GT的八个点 2)GT的四个点 3)imagedef convert_to_example(image_data, filename, labels, ignored, labels_text, bboxes, oriented_bboxes, shape): """Build an Example prot原创 2017-10-24 16:30:34 · 1313 阅读 · 0 评论 -
Tensorflow 部分恢复模型
It is often desirable to fine-tune a pre-trained model on an entirely new dataset or even a new task. In these situations, one can use TF-Slim’s helper functions to select a subset of variables to rest原创 2017-11-03 16:52:12 · 4034 阅读 · 0 评论 -
Tensorflow简易用法
1、outputs_collections用法,方便获取各层的end_points with tf.variable_scope(scope, 'resnet_v1', [inputs], reuse=reuse) as sc: end_points_collection = sc.name + '_end_points' with slim.arg_scope原创 2018-01-30 10:37:54 · 840 阅读 · 1 评论