'ImageSegment' object has no attribute 'seek'

I’m currently working on the Airbus Ship Detection Challenge on Kaggle using the techniques for doing image segmentation from lesson 3 (https://www.kaggle.com/c/airbus-ship-detection/overview).

I can read in the data and create the image masks, but when I try to run transforms for data augmentation before creating the databunch I get the following error:

AttributeError: 'ImageSegment' object has no attribute 'seek' 

I’m quite stumped with this error and can’t really seem to find any help online in existing threads. I have a kernel with all the code here:


Same problem.

I’m having the same problem, with the same dataset. @BelAir @TheNeck Did any of you find a solution?