yl-1993 / hfsoftmax

Accelerated Training for Massive Classification via Dynamic Class Selection (AAAI 2018)
MIT License
96 stars 24 forks source link

how to get the bin_file used in extract_feat.py? #14

Open Note-Liu opened 3 years ago

Note-Liu commented 3 years ago

I have thousands of pictures,i want to use extract_feat.py to extract features,I want to know how to get the bin file? THX.

rohan-mistry commented 1 year ago

@yl-1993 I have the same query as @Note-Liu. Can you please suggest a way to do it ?

rohan-mistry commented 1 year ago

@Note-Liu Did you find a way to get the bin_file ?

yl-1993 commented 1 year ago

Hi @rohan-mistry , I think you may find some clues from bin_loader. The bin file is constructed as a way to store images and labels, where each image is saved to bytes.

Alternatively, using FileListDataset might be more straightforward to read images and labels.

winboyer commented 1 year ago

Hi @rohan-mistry , I think you may find some clues from bin_loader. The bin file is constructed as a way to store images and labels, where each image is saved to bytes.

Alternatively, using FileListDataset might be more straightforward to read images and labels.

is there any resnet50 pretrained model for testing?