generator) for (imgs, masks) in train_generator: imgs = imgs / 255.0 masks = masks / 255.0 yield (imgs,masks)