コード例 #1
0
def serialize_cifar_pool3(X, filename):
    print 'About to generate file: %s' % filename
    gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.1)
    sess = tf.InteractiveSession(config=tf.ConfigProto(
        gpu_options=gpu_options))
    X_pool3 = batch_pool3_features(sess, X)
    np.save(filename, X_pool3)
コード例 #2
0
def serialize_cifar_pool3(
        X, filename):  # to generate the CNN codes from numpy array of images
    print 'About to generate file: %s' % filename
    sess = tf.InteractiveSession()
    X_pool3 = batch_pool3_features(sess, X)
    np.save(filename, X_pool3)
def serialize_cifar_pool3(X, filename):
    print 'About to generate file: %s' % filename
    sess = tf.InteractiveSession()
    X_pool3 = batch_pool3_features(sess, X)
    np.save(filename, X_pool3)
def serialize_cifar_pool3(X,filename):                                          # to generate the CNN codes from numpy array of images
    print 'About to generate file: %s' % filename
    sess = tf.InteractiveSession()
    X_pool3 = batch_pool3_features(sess,X)
    np.save(filename,X_pool3)