Is this folder like the structure as follows (from your code it should be like this):
-n00001
-XXX.JPEG
-XXX.JPEG
-n00002
-XXX.JPEG
-XXX.JPEG
But my standard imagenet1k val dataset, only pictures in this folder. So your code can't run correctly.
the structure is like this:
-XXX.JPEG
-XXX.JPEG
-XXX.JPEG
-XXX.JPEG
Is this folder like the structure as follows (from your code it should be like this): -n00001 -XXX.JPEG -XXX.JPEG -n00002 -XXX.JPEG -XXX.JPEG
But my standard imagenet1k val dataset, only pictures in this folder. So your code can't run correctly. the structure is like this: -XXX.JPEG -XXX.JPEG -XXX.JPEG -XXX.JPEG