Posixpath has no len()

Hii,
I tried creating a dataloaders with the datablock I created and I get the following error:

And this is the path of to the files:
path=Path(’/content/drive/My Drive/train_catdog/train’)

Why am I getting this error?

Thanks,

1 Like

What’s the definition of aud_dblk? Looks like the issue is with its get_items function.

1 Like

Hi @slawekbiel
Thanks for the clarification.
I misunderstood the usage of get_items.
I passed the get_files() to get_x instead of get_items. Now it works fine.

Thank you

Thank you so much for your post! I faced the same error and found that I have mistyped “get_items” as “get_x”.