AttributeError: 'NoneType' object has no attribute 'shape'

Sorry to reactivate. I am doing lesson one running fastai on my laptop.

Directory of C:\Users\Conwyn.fastai\data\oxford-iiit-pet\images
In my dogs images I have three mat entries. There is a corresponding jpg.
I have deleted them but still getting the error.

Regards Conwyn

18/06/2012 16:54 .
18/06/2012 16:54 …
18/06/2012 16:53 1,351,002 Abyssinian_100.mat
18/06/2012 16:52 956,090 Abyssinian_101.mat
18/06/2012 16:53 1,611,487 Abyssinian_102.mat

1 Like

If you are on Windows you may want take a look at this


this worked for me

Maybe not the best but this worked

pat = r’[a-zA-Z]:\(?:(?:[-a-zA-Z0-9().]\))(.*)_\d+.jpg$’

Copied from the Internet.

Regards Conwyn