Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The version of scikit-learn #35

Open
zivlzw opened this issue Nov 6, 2023 · 1 comment
Open

The version of scikit-learn #35

zivlzw opened this issue Nov 6, 2023 · 1 comment

Comments

@zivlzw
Copy link

zivlzw commented Nov 6, 2023

We built the tensorflow environment of CBL according to the configuration file, but the version of the library was not specified. Can you tell us the version of the scikit-learn, or what model environment the CBL uses?
Traceback (most recent call last):
File "main.py", line 102, in
trainer.train()
File "/root/contrastBoundary-master/tensorflow/utils/trainer.py", line 66, in train
g = GraphBuilder(config, verbose=self.verbose)
File "/root/contrastBoundary-master/tensorflow/utils/tf_graph_builder.py", line 37, in init
dataset = self.get_dataset(config, verbose)
File "/root/contrastBoundary-master/tensorflow/models/../datasets/tf_s3dis_dataset.py", line 108, in init
self.load_subsampled_clouds(config.first_subsampling_dl, verbose=verbose)
File "/root/contrastBoundary-master/tensorflow/models/../datasets/tf_s3dis_dataset.py", line 245, in load_subsampled_clouds
search_tree = pickle.load(f)
AttributeError: Can't get attribute 'EuclideanDistance64' on <module 'sklearn.metrics._dist_metrics' from '/root/miniconda3/envs/cbl/lib/python3.7/site-packages/sklearn/metrics/_dist_metrics.cpython-37m-x86_64-linux-gnu.so'>

@LiyaoTang
Copy link
Owner

Hi,

Thanks for your interest.
Please try with scikit-learn<1 and see if the error persists.

Best,
Liyao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants