Traceback (most recent call last):
  File "tools/train_net.py", line 17, in <module>
    from core.data import make_data_loader
  File "./core/data/__init__.py", line 2, in <module>
    from .build import make_data_loader
  File "./core/data/build.py", line 10, in <module>
    from core.data import Datasets as D 
  File "./core/data/Datasets/__init__.py", line 2, in <module>
    from .coco import COCODataset
  File "./core/data/Datasets/coco.py", line 29, in <module>
    class COCODataset(torchvision.datasets.CocoDetection):
AttributeError: module 'torchvision' has no attribute 'datasets'
(embedmask) fei@yagi15:~/code/IDEstimation$ python
Python 3.7.6 (default, Jan  8 2020, 19:59:22) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.4.0
>>> import torchvision
>>> print(torchvision.__version__)
0.5.0
>>>

Hi, I got the same problem and don’t know how to solve it. I confirmed that my torch and torchvision packages have been installed competely.  @smth