samm:

i mean the file i have which is checkpoint.pth is supposed holding the features after freezing the layers … right ?


I don’t know what this file is supposed to contain or how it was created, so you could check with the author of this file.



 samm:

i need to get a pickle file for those features , i searched a lot but couldn’t find the right structure


Could you give an example, what a “pickle file” would mean in this context?
Based on the previous output, the file contains an OrderedDict and you would be able to access its content by directly indexing it. However, I’m unsure what the necessity of a “pickle file” means and why the direct indexing isn’t working for you.