Traceback (most recent call last):


 "tools/train.py", line 145, in <module>

main()


 "tools/train.py", line 141, in main

meta=meta)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/apis/train.py", line 95, in train_model

model, dataset, cfg, logger=logger, timestamp=timestamp, meta=meta)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/apis/train.py", line 219, in _dist_train

runner.run(data_loaders, cfg.workflow, cfg.total_epochs)


 "/home/qiang/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 103, in run

self.call_hook('before_run')


 "/home/qiang/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 282, in call_hook

getattr(hook, fn_name)(self)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/hooks/deepcluster_hook.py", line 43, in before_run

self.deepcluster(runner)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/hooks/deepcluster_hook.py", line 61, in deepcluster

clustering_algo.cluster(features, verbose=True)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/third_party/clustering.py", line 134, in cluster

I, loss = run_kmeans(xb, self.k, verbose)


 "/home/qiang/codefiles/ssl/adv_ssl/openselfsup/third_party/clustering.py", line 100, in run_kmeans

losses = faiss.vector_to_array(clus.obj)


 "/home/qiang/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/faiss/swigfaiss_avx2.py", line 1450, in <lambda>

__getattr__ = lambda self, name: _swig_getattr(self, Clustering, name)


 "/home/qiang/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/faiss/swigfaiss_avx2.py", line 80, in _swig_getattr

raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'Clustering' object has no attribute 'obj'


Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/home/niklas/repos/nodepy/setup.py", line 180, in <module>

'install': install


 "/usr/lib/python3.6/distutils/core.py", line 148, in setup

dist.run_commands()


 "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands

self.run_command(cmd)


 "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command

cmd_obj.run()


 "/home/niklas/repos/nodepy/setup.py", line 146, in run

_develop.run(self)


 "/usr/local/lib/python3.6/dist-packages/setuptools/command/develop.py", line 36, in run

self.install_for_development()


 "/usr/local/lib/python3.6/dist-packages/setuptools/command/develop.py", line 130, in install_for_development

self.run_command('egg_info')


 "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command

self.distribution.run_command(command)


 "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command

cmd_obj.run()


 "/usr/local/lib/python3.6/dist-packages/setuptools/command/egg_info.py", line 273, in run

writer(self, ep.name, os.path.join(self.egg_info, ep.name))


 "/usr/local/lib/python3.6/dist-packages/setuptools/command/egg_info.py", line 669, in write_entries

ep = cmd.distribution.entry_points

AttributeError: 'Distribution' object has no attribute 'entry_points'
