-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use .npz files from ResNet feature extractor #1
Comments
Hi, I usually prefer to concat all features into one large npy file (Nxfeat dimensions). But current code also supports list of numpy files. Just create a text file with list of feature files and name it as .npzl . If the extension of the input feature file is is '.npzl', the data provider parses it as a list of numpy files. Take a look at line 666 in imagernn/data_provider.py and the function called there. |
Hi Rakshit, Thank you for your response. Essentially, I just need to create a list of strings specifying all the npz files? Also, should this include the train, and val files? Or should these be in three separate files? |
I also see the auxiliary input files. What do these entail? I do not quite understand how to create them. |
I tried running without the aux file, setting evaluation to image features. Got the following error:
|
@rakshithShetty Was just wondering if you had seen these. I am working on a research paper for which I would like to cite your paper. Would appreciate your help in running your model. |
Hi, Since I have been using both feature files recently some parts of the code has not been guarded properly for the absence of the aux input. That's the error you are seeing. |
Between, I have pushed the faster rcnn codebase I used to extract this feature vector here. It only has bare-bones usage instructions for now. https://github.com/rakshithShetty/py-faster-rcnn-featextract |
Hi Rakshith. Thank you so much. I set the feature file to the file you uploaded. And set the aux inp file to the resnet features. I get the following error:
Any idea as to why this is happening? |
Update: I used the faster_RCNN features as the aux input. After these changes, data reading seems to work. I am now getting the following error:
|
Hi, Rakshith, Thanks. |
Hi Rakshith,
Thank you for putting up your code! It is extremely helpful.
I used the link (https://github.com/akirafukui/vqa-mcb/tree/master/preprocess) in your README to extract ResNet features for use in the adversarial training.
The extractor gave me a large number of .npz files. Your example makes it seem as though everything should be in one file. I am thus wondering how I should specify to the program which files to use as image features.
The text was updated successfully, but these errors were encountered: