Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. def __init__(self, root_dir=r'../data/val_test', image_folder='img/', mask_folder='masks/',
  2. batch_size=1, image_size=768, nb_y_features=1,
  3. augmentation=None,
  4. suffle=True):
  5. self.image_filenames = listdir_fullpath(os.path.join(root_dir, image_folder))
  6. self.mask_names = listdir_fullpath(os.path.join(root_dir, mask_folder))
  7. self.batch_size = batch_size
  8. self.augmentation = augmentation
  9. self.image_size = image_size
  10. self.nb_y_features = nb_y_features
  11. self.suffle = suffle
  12.  
  13. def listdir_fullpath(d):
  14. return np.sort([os.path.join(d, f) for f in os.listdir(d)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement