Coder Social home page Coder Social logo

dcec's People

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

dcec's Issues

Licence

@XifengGuo, nice code! Thank you for sharing it. Would you add a licence, please?

have a problem about accuracy

Hello, I am very interested in your article, but what is the reason why the accuracy rate of code running on my computer is always around ten percent

TypeError: Multiple values for argument 'name'

I tried running your code on mnist dataset itslef without any chnage in code but received following error -

self.clusters = self.add_weight((self.n_clusters, input_dim), initializer='glorot_uniform', name='clusters')
TypeError: add_weight() got multiple values for argument 'name'

Please help.

How do you visualize clustering results.

I read your paper works.
I seems that this work was so interesting.
I'm planning to apply in the field of natural language processing.

However, I'm not sure to how to visualize clustering results like yours .

Results on STL10

Hi, Nice work!
I would like to know if you tried and get some results on dataset STL10.
Thanks

Doesn't exist the link of USPS

I have the next message when I run

bash ./download_usps.sh

--2019-11-01 17:07:48-- http://www-i6.informatik.rwth-aachen.de/~keysers/usps_train.jf.gz
Resolvendo www-i6.informatik.rwth-aachen.de (www-i6.informatik.rwth-aachen.de)... 137.226.36.140
Conectando-se a www-i6.informatik.rwth-aachen.de (www-i6.informatik.rwth-aachen.de)|137.226.36.140|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 404 Not Found
2019-11-01 17:07:49 ERRO 404: Not Found.

gunzip: can't stat: usps_train.jf.gz (usps_train.jf.gz.gz): No such file or directory
--2019-11-01 17:07:49-- http://www-i6.informatik.rwth-aachen.de/~keysers/usps_test.jf.gz
Resolvendo www-i6.informatik.rwth-aachen.de (www-i6.informatik.rwth-aachen.de)... 137.226.36.140
Conectando-se a www-i6.informatik.rwth-aachen.de (www-i6.informatik.rwth-aachen.de)|137.226.36.140|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 404 Not Found
2019-11-01 17:07:50 ERRO 404: Not Found.

gunzip: can't stat: usps_test.jf.gz (usps_test.jf.gz.gz): No such file or directory

Algorithm converges when all samples belong to one cluster?

When looking at the counts in each cluster after each update interval, iterations keep continuing until one giant cluster remains or there a few clusters but empty clusters.
Does this always happen? Is the key stopping the algorithm at a good point before this happens?
( I am working with 2D image data. )
Thank you.

Huge data-set On GPU

is there a way to run your code on GPU? because my data set is over 1000000 images and takes forever to run on CPU

Error when replicating on Conv3D model

I try to replicate this code on Conv3D and I get error about the input dimension. I already modified the input shape for the 3D ConvNet and it seems this has to do with the clustering hidden layer. I am at a loss on where to rework the code to get it running.

`Layer (type) Output Shape Param #

conv3d_19 (Conv3D) (None, 55, 55, 10, 128) 15616


conv3d_20 (Conv3D) (None, 26, 26, 10, 64) 204864


embedding (ConvLSTM2D) (None, 26, 26, 10, 64) 295168


conv_lst_m2d_9 (ConvLSTM2D) (None, 26, 26, 10, 32) 110720


conv_lst_m2d_10 (ConvLSTM2D) (None, 26, 26, 10, 64) 221440


conv3d_transpose_9 (Conv3DTr (None, 55, 55, 10, 128) 204928


conv3d_transpose_10 (Conv3DT (None, 227, 227, 10, 1) 15489

Total params: 1,068,225
Trainable params: 1,068,225
Non-trainable params: 0



ValueError Traceback (most recent call last)
in ()
81
82 # prepare the DCEC model
---> 83 dcec = DCEC(input_shape=(227,227,10,1), n_clusters=n_clusters)
84 plot_model(dcec.model, to_file= save_dir + '/dcec_model.png', show_shapes=True)
85 dcec.model.summary()
in init(self, input_shape, n_clusters, alpha)
80
81 # Define DCEC model
---> 82 clustering_layer = ClusteringLayer(self.n_clusters, name='clustering')(hidden)
83 self.model = Model(inputs=self.cae.input,
84 outputs=[clustering_layer, self.cae.output])
~\Anaconda2\envs\py36\lib\site-packages\keras\engine\base_layer.py in call(self, inputs, **kwargs)
441 # Raise exceptions in case the input is not compatible
442 # with the input_spec set at build time.
--> 443 self.assert_input_compatibility(inputs)
444
445 # Handle mask propagation.
~\Anaconda2\envs\py36\lib\site-packages\keras\engine\base_layer.py in assert_input_compatibility(self, inputs)
309 self.name + ': expected ndim=' +
310 str(spec.ndim) + ', found ndim=' +
--> 311 str(K.ndim(x)))
312 if spec.max_ndim is not None:
313 ndim = K.ndim(x)
ValueError: Input 0 is incompatible with layer clustering: expected ndim=2, found ndim=5`

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.