“virtual” patches/crops in fastaiv2

Hi everyone, I want to loading “virtual” patches/crops in fastaiv2,

assuming for example a dataframe with virtual path names like:

path,label
img1.png#10:10:30:30 ,1

(only img1.png exist in data folder and 10:10:30:30 is x1,y1,x2,y2 for crop the image)

In fastai v1 we can use the method from @rquintino,


but is have any possible way work in fastai v2?