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

How to retrieve similar reference image for other datasets? #10

Open
htzheng opened this issue Jul 11, 2020 · 1 comment
Open

How to retrieve similar reference image for other datasets? #10

htzheng opened this issue Jul 11, 2020 · 1 comment

Comments

@htzheng
Copy link

htzheng commented Jul 11, 2020

I want to train CoCosNet for other datasets, however, I'm not sure how the similar reference image for ADE20K dataset (ade20k_ref.txt) is generated. Could you elaborate on it more? Thanks!

@panzhang0212
Copy link
Contributor

panzhang0212 commented Aug 14, 2020

If your dataset is face dataset, you could random choice reference. If your dataset is complex(e.g ADE20k), you maybe need to retrieve reference.
How to retrieve:
1.pretrained vgg model to extract feature(I use the feature after max pool before FC layer). Then you can get feature dictionary
2.for every image, you need to calculate feature distance(I use cos distance) between this feature and other features, then choose the top K ref image.

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