Code Monkey home page Code Monkey logo

gpq's People

Contributors

youngkyunjang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gpq's Issues

How to use the cnn-f network to replace the vgg network ?

Unfortunately, my server cannot run VGG network because there are too many network parameters. So I want to use CNN-F (Alexnet) instead of VGG. Two Global_Average_Pooling methods are used in the VGG network and the full connection layer is removed. Can you tell me how to modify in CNN-F(AlexNet) network?
thanks!

Wrong cosine similarity in N_PQ_loss?

It is said, "S_b in the N-PQ loss (i.e., Equation 2 in the paper) denotes a cosine similarity between b-th feature vector and every quantized vector". According to the code, this is implemented by matrix multiplication:

FQ_Similarity = tf.matmul(embeddings_x, embeddings_q, transpose_a=False, transpose_b=True)

However, embeddings_x (i.e., feature_S) is intra-normalized, but embeddings_q (i.e., descriptor_S) is NOT. (This can be verified by printing the sub-vector norm.)

So, this is actually not the cosine similarity, but just an ordinary inner product. The product does not reflect a similarity measure in the conventional sense, and may affect the results.

The details about Nuswide

1.hello, what are the specific mean and variance in nuswide?

def color_preprocessing(x_):
#Normalize with mean and std of source data
x_ = x_.astype('float32')
x_[:, :, :, 0] = (x_[:, :, :, 0] - 125.642) / 63.01
x_[:, :, :, 1] = (x_[:, :, :, 1] - 123.738) / 62.157
x_[:, :, :, 2] = (x_[:, :, :, 2] - 114.46) / 66.94
return x_

  1. In nuswide, can specific training lists and test lists be provided?

Good work and thanks!

How to generate NUS-Wide dataset ?

Hi,
There are a total of 27000 images in the NUS dataset. I chose the 21 most popular classes, with a total of 195834 images. But, the experimental results are much worse than those in the paper. Can you provide the name list and label of train and test image database.

how to generate the hash codes for custom data?

I find the program is computing distance based on table Z.
but this way is hard to applying my own experiments since I want to extract the hash codes for my custom dataset. Then I can plot some precision recall curve and so on.
could you add the way of extracting hash codes for some dataset?

Pretrained model is not reachable

Hello, I was that in the issues the problem about pretrained model is mentioned and then closed by fixing the issue. But the link for the pretrained model weights is still broken. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.