Skip to content
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

FashionBert - Generate image features #28

Open
StefanoSalvatori opened this issue Jan 5, 2021 · 1 comment
Open

FashionBert - Generate image features #28

StefanoSalvatori opened this issue Jan 5, 2021 · 1 comment

Comments

@StefanoSalvatori
Copy link

Why does the image_feature_extract.py code for patch feature generation uses num_patches = (4, 4) at line 475? shouldn't it be (8,8)?

Also the paper states that patch features are generated using resnext101 while the script you give uses resnet 50, what is the correct one?

I'm asking because I did some experiments and i tried to generate features from the fashiongen validation dataset using your image_feature_extract.py code and i get strange results: given a certain product, the features i get for its image does not match with the features that you have in the csv evalution files. Maybe there is some preprocessing to do to images? The fashion gen validation dataset has 256x256 RGB images, are these the correct sizes?

I'm using this this code to extract features:

feature_extractor = PatchFeatureExtractor("/content/resnet_v1_50")
results_batch = feature_extractor.predict([img], batch_size=1)
feature = results_batch[0]['feature']

Thank you for our help

@HowieMa
Copy link

HowieMa commented Apr 25, 2021

Same question. May I ask have you fixed it yet? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants