예제 #1
0
def inputs(filename, batch_size):
    image, label = utils.read_file(filename)
    image = utils.adjust_image_for_test(image)
    images, labels = tf.train.batch([image, label],
                                    batch_size=batch_size,
                                    capacity=total_test_images + batch_size)
    return images, labels
예제 #2
0
def inputs(filename, batch_size):
    image, label = utils.read_file(filename)
    image = utils.adjust_image_for_test(image)
    images, labels = tf.train.batch([image, label],
                                    batch_size=batch_size,
                                    capacity=total_number_of_images,
                                    allow_smaller_final_batch=True)
    return images, labels
def inputs(filename, batch_size):
    image, label = utils.read_file(filename)
    image = utils.adjust_image_for_train(image)
    images, labels = tf.train.shuffle_batch([image, label],
                                            batch_size=batch_size,
                                            capacity=30000 + batch_size,
                                            min_after_dequeue=10000)
    return images, labels
예제 #4
0
def inputs(filenames, batch_size):
    image, label = utils.read_file(filenames)
    image = utils.adjust_image_for_train(image)
    images, labels = tf.train.shuffle_batch([image, label],
                                            batch_size=batch_size,
                                            capacity=35000 + batch_size,
                                            min_after_dequeue=5000,
                                            allow_smaller_final_batch=True)
    return images, labels