Git Product home page Git Product logo

deepid_faceclassify's People

Contributors

stdcoutzyx 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  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  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

deepid_faceclassify's Issues

questions about cos distance

I just start to learn DEEPID using caffe, and I wonder when I extract all pictures' 160-d features, then I need to calculate cos distance between new face(validation data chosen from the same data set with training data set) and all pictures' 160-d features? Cause in training data, every people has more than 1 face picture.
So which way should I use?
A. calculate cos distance between new face and all training data,then choose a closest one as result.
B. average every people's 160-d feature,then calculate cos distance between new face and every people,then choose a closest one as result.

Thanks.

see run error on deepid_class.py with theano both 0.7 or 0.6

ubgpu@ubgpu:~/PycharmProjects/deepID/DeepID_FaceClassify/src/conv_net$ python deepid_class.py ../../../../../big_data/youtube_face/YouTubeFaces/test_vector_folder ../../../../../big_data/youtube_face/YouTubeFaces/train_vector_folder ../../../../../big_data/youtube_face/YouTubeFaces/params_file

if on theano0.6
Using gpu device 0: GeForce GTX 970
loading data ...
train_x: (31900, 7755)
train_y: Shape.0
valid_x: (7975, 7755)
valid_y: Shape.0
building the model ...
Traceback (most recent call last):
File "deepid_class.py", line 257, in
simple_deepid(learning_rate=0.01, n_epochs=20, dataset=(sys.argv[1], sys.argv[2]), params_file=sys.argv[3], nkerns=[20,40,60,80], batch_size=500, n_hidden=160, n_out=1595, acti_func=relu)
File "deepid_class.py", line 245, in simple_deepid
deepid.build_train_model()
File "deepid_class.py", line 193, in build_train_model
self.y: self.train_set_y[self.index * self.batch_size : (self.index+1) * self.batch_size]}
File "/usr/local/lib/python2.7/dist-packages/theano/compile/function.py", line 266, in function
profile=profile)
File "/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py", line 489, in pfunc
no_default_updates=no_default_updates)
File "/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py", line 217, in rebuild_collect_shared
raise TypeError(err_msg, err_sug)
TypeError: ('An update must have the same type as the original shared variable (shared_var=W, shared_var.type=CudaNdarrayType(float32, matrix), update_val=Elemwise{sub,no_inplace}.0, update_val.type=TensorType(float64, matrix)).', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')
ubgpu@ubgpu:/PycharmProjects/deepID/DeepID_FaceClassify/src/conv_net$
ubgpu@ubgpu:
/PycharmProjects/deepID/DeepID_FaceClassify/src/conv_net$

"ykreadme" 63L, 3552C written
ubgpu@ubgpu:/PycharmProjects/deepID$
ubgpu@ubgpu:
/PycharmProjects/deepID$

How can i contact you ?

I have a very large dataset of 2million identities with 40 million pics, for each identity i have 20 pics.

I have 4 K80 Servers for the train, how can i contact you ?

train and val set overlaps?

As mentioned in the readme file:

  • Choose first 5 imgs as validate set.
  • Choose the 5th to 25th imgs as the train set.

The 5th img is both in train and val set?

question about feature

hi,
i run your code on youtube database and received your result in readme.
but ,after run "deepid-generator.py" the generated feature is very sparse.
it's true?
thans

locally shared weights in conv3 and conv4

In the DeepID paper, the third and fourth convolutional layer' weights are locally
shared. But, there seems no locally shared weights in your network structure. Do you know how to realize it in convolutional network?

ask for help

when I run this code vectorize_img.py it shows that:

Traceback (most recent call last):
File "vectorize_img.py", line 87, in
test_vec = vectorize_imgs(test_path_and_labels, img_size)
File "vectorize_img.py", line 43, in vectorize_imgs
arrs = np.asarray(arrs, dtype='float64')
File "D:\Anaconda2\lib\site-packages\numpy\core\numeric.py", line 474, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: could not broadcast input array from shape (250,250,3) into shape (250,250)

I have modify the img_size
img_size = (3, 250, 250) # channel, height, width
Thanks!

a param file

hi,

can you share the param_file? if i just want to use the network without training over my data?

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.