Closed vecxoz closed 3 years ago
Hi @vecxoz, thank you for using mmf!
So, you are right. In your example, the two feature values are different. This is because we expect the images within the same batch to have the same size. In your case, when batch_size = 1, the size of each image in the batch is that particular image's size. However, when batch_size = 2, the size of one of the image needs to be resized to match the other, therefore the feature values are different.
You can double check this behavior by passing two images of the same size into the model, the feature values should be the same.
Hope this helps! Thank you.
Got it, many thanks for the help @ytsheng MMF is great!
@ytsheng Do you know what size we expect the images to be? Is it supposed to be uniform across the dataset? I am wondering if it would be possible to replicate the feature extraction that Facebook did to create the detectron.lmdb feature datasets. I'm specifically working with Hateful Memes.
❓ Questions and Help
Hi,
I get different feature values with different batch size using
extract_features_vmb.py
. What could be the reason? Please check this example: