Skip to content

No module named 'dgl.contrib' #5

@Yun-Ching-Chen

Description

@Yun-Ching-Chen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions