Comments (10)
from cvpr17-dvsq.
Hi Cao Yue,
Great thanks for your fast reply!
I have looked into that and it helps a lot.
Best,
Zhang Zeng
from cvpr17-dvsq.
Hi,
May I ask something about the paper itself here?
I have read through it several times, but there are some points that I cannot understand. Like the word embedding for the labels, may I ask why do we need this? I tried to print the output of validation but it is the 81-dimensional label instead of the 300-dimensional word embeddings.
Thanks a lot:)
Best,
Zhang Zeng
from cvpr17-dvsq.
Hi Zeng,
You are right, the label itself is 81-dimensional because nuswide is a 81-class dataset, and the word embedding of a single label is 300-dimensional.
Actually, because Nuswide is a multi-label dataset, the label representation of an image is a matrix of 81 * 300 dimensional(not just a vector of 81 or 300 dimension). Specifically, the ith row is the word embedding of label i if the image has label i, otherwise, the ith row will be all zero.(You can prove this by looking at the line 322 of file "net.py").
from cvpr17-dvsq.
Hi Bin,
Thank you so much for your fast reply!
I have gone through it again. May I ask what the codebook C mentioned in the section 3.2 of the paper? My understanding is that for 81 classes, each class contains K centers. And if the C here is the same C in the line 68 of the net_val.py file?
I tried to print out the self.C from the model. It shows that it is a 1024 x 300 tensor. In my opinion, the 300 represents the 300-dimensional vectors while I am not so sure where the 1024 comes from.
Best,
Zeng
from cvpr17-dvsq.
1024 = n_subcenter(256) * n_subspace(4).
Sorry for my late reply.
from cvpr17-dvsq.
I have got the GoogleNews-vectors-negative300.bin and I wonder how to get the word2vec.txt in cifar10 dataset
from cvpr17-dvsq.
You can use gensim to load the model and extract wordvector. Here is a tutorial.
import gensim
model = gensim.models.KeyedVectors.load_word2vec_format('GoogleNews-vectors-negative300.bin', binary=True)
print(model['car'])
from cvpr17-dvsq.
Thanks for your help. However, I just try model['airplane', ...](include the 10 class of cifar10) and get the .txt which is wrong. I hope to know how to get the correct wordvector.
from cvpr17-dvsq.
I just download the pre-trained word-vector and it works. So maybe you need to check your "GoogleNews-vectors-negative300.bin".
For reference, here is the pre-trained word-vector I use:
wget -c "https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz"
from cvpr17-dvsq.
Related Issues (9)
- where is the run_dvsq.sh file? HOT 2
- how to obtain the word vector
- WHen attempting to train I had some errors HOT 9
- can you publish the NUS_wide dataset or give me a download link you used in your paper? HOT 1
- How to use cifar-10 like single label dataset to evaluate this model? HOT 9
- 关于训练数据标注的问题 HOT 1
- When I retrieval images, my input is label and an image. Is that right? Does it contradicts with "CBIR" concept? HOT 7
- 模型加载问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cvpr17-dvsq.