ufoym / imbalanced-dataset-sampler

A (PyTorch) imbalanced dataset sampler for oversampling low frequent classes and undersampling high frequent ones.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'torchsampler'

why228430 opened this issue · comments

Thanks for you sharing! when I run
"from torchsampler import ImbalancedDatasetSampler"

ModuleNotFoundError Traceback (most recent call last)
in
8 # os.environ["CUDA_VISIBLE_DEVICES"]="1"
9
---> 10 from torchsampler import ImbalancedDatasetSampler

ModuleNotFoundError: No module named 'torchsampler'

I meet this error,how I can do to solve this problem?