Skip to content

Commit ece126b

Browse files
committed
fix
1 parent 00c61d2 commit ece126b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This package implements the algorithm described in paper "Unsupervised Deep Embedding for Clustering Analysis". It depends on opencv, numpy, scipy and Caffe.
44

5-
This implementation is intended for reproducing the results in the paper. If you only want to try the algorithm and find caffe too difficault to install, there is an experimental implementation in MXNet: https://github.com/dmlc/mxnet/blob/master/example/dec/dec.py. MXNet is a flexible deep learning library with fewer dependencies. You are welcome to try it. Installation guide can be found here: https://mxnet.readthedocs.org/en/latest/build.html. Once you install MXNet, simple go into directory examples/dec and run `python dec.py`.
5+
This implementation is intended for reproducing the results in the paper. If you only want to try the algorithm and find caffe too difficault to install, there is an easier to use experimental implementation in MXNet: https://github.com/dmlc/mxnet/blob/master/example/dec/dec.py, but note that results can be different from the paper. MXNet is a flexible deep learning library with fewer dependencies. You are welcome to try it. Installation guide can be found here: https://mxnet.readthedocs.org/en/latest/build.html. Once you install MXNet, simple go into directory examples/dec and run `python dec.py`.
66

77
## Usage
88
To run, please first build our custom version of Caffe included in this package following the official guide: http://caffe.berkeleyvision.org/installation.html.

dec/dec.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,14 @@ def DisKmeans(db, update_interval = None):
747747

748748
if __name__ == '__main__':
749749
db = sys.argv[1]
750-
lam = 160
750+
if db == 'mnist':
751+
lam = 160
752+
elif db == 'stl':
753+
lam = 40
754+
elif db == 'reutersidf' or db == 'reutersidf10k':
755+
lam = 20
756+
else:
757+
lam = int(sys.argv[2])
751758
"""acc_list = []
752759
nmi_list = []
753760
for i in xrange(0,9):

0 commit comments

Comments
 (0)