-
Notifications
You must be signed in to change notification settings - Fork 9
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
No module named 'dgl.contrib' #5
Comments
Hi @Yun-Ching-Chen , thank you for the question! Sorry for the late reply I would suggest using |
Hi @subercui , thank you for developing DeepVelo. I encountered some problems during installation. I tried to intall 'dgl>=0.4.3,<0.8.0', but it failed.
|
Hi @WeipengMO, which version of python are you using? Could you please retry with python 3.7, 3.8, or 3.9? |
Hi @hsmaan , I have tried to re-install deepvelo in python3.9 env, it worked. However, It does not support calling the GPU.
Then, I re-tried to intall 'dgl>=0.4.3,<0.8.0', but it got the same error:
|
Here is my session info:
|
Hi @WeipengMO, apologies for the late response. This looks like a cuda toolkit mismatch to me, but could you please provide the following further info:
|
Thanks for you reply. The cuda version of dgl I installed is |
I see, can you try installing cudatoolkit 10.1 and trying again? The easiest way would be to create a conda environment, install cudatoolkit 10.1 (https://anaconda.org/conda-forge/cudatoolkit/files - you can find the 10.1 file here), and then reinstalling DeepVelo after activating the conda env (ensuring that the python versioning is still restricted to that mentioned above in the conda env). Could you please try this and let me know if it works? Thanks. |
Hi,
I installed deepvelo but it gives me error when I import it in python:
============================================================
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import deepvelo
/opt/conda/lib/python3.8/site-packages/deepvelo/init.py in
----> 1 from .train import *
/opt/conda/lib/python3.8/site-packages/deepvelo/train.py in
7 from scvelo import logging as logg
8
----> 9 import deepvelo.data_loader.data_loaders as module_data
10 import deepvelo.model.loss as module_loss
11 import deepvelo.model.metric as module_metric
/opt/conda/lib/python3.8/site-packages/deepvelo/data_loader/data_loaders.py in
7 import dgl
8 import hnswlib
----> 9 from dgl.contrib.sampling import NeighborSampler
10 from torch.utils.data import Dataset
11 from sklearn.metrics import pairwise_distances
ModuleNotFoundError: No module named 'dgl.contrib'
I think I installed dgl properly and I can import dgl in python without any issue.
I found the class NeighborSampler is under dgl.dataloading:
https://docs.dgl.ai/en/1.1.x/generated/dgl.dataloading.NeighborSampler.html
Which dgl version would you recommend for deepvelo? Or would deepvelo be compatible with the latest dgl soon?
Thank you very much,
Yun-Ching
The text was updated successfully, but these errors were encountered: