Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. diff --git a/example_feat_extract.py b/example_feat_extract.py
  2. index a5bb904..2d49b0d 100644
  3. --- a/example_feat_extract.py
  4. +++ b/example_feat_extract.py
  5. @@ -43,10 +43,14 @@ def feature_extraction_queue(feature_extractor, image_path, layer_names,
  6. :return:
  7. '''
  8.  
  9. + #batch_size = 1
  10. +
  11. # Add a list of images to process, note that the list is ordered.
  12. - image_files = utils.find_files(image_path, ("jpg", "png"))
  13. - num_images = min(len(image_files), num_images)
  14. - image_files = image_files[0:num_images]
  15. + image_files = utils.find_files(image_path, ("jpg", "jpeg", "png", "JPEG", "JPG"))
  16. + start_images = 29 * batch_size
  17. +
  18. + num_images = batch_size * 1 #min(len(image_files), num_images)
  19. + image_files = image_files[start_images:start_images + num_images]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement