Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. with tf.Graph().as_default():
  2. gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.6)
  3. sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options, log_device_placement = False))
  4.  
  5. with sess.as_default():
  6. print('Loading feature extraction model')
  7. facenet.load_model(FACENET_MODEL_PATH)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement