TypeError: ‘CustomMouseDataset’ object does not support indexing
runfile('D:/Nextcloud/Python/Gamebot/model.py', wdir='D:/Nextcloud/Python/Gamebot')
Traceback (most recent call last):

  File "<ipython-input-11-4f1765267e06>", line 1, in <module>
    runfile('D:/Nextcloud/Python/Gamebot/model.py', wdir='D:/Nextcloud/Python/Gamebot')

  File "D:\Programme\Anaconda\envs\Deeplearning\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 678, in runfile
    execfile(filename, namespace)

  File "D:\Programme\Anaconda\envs\Deeplearning\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 106, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "D:/Nextcloud/Python/Gamebot/model.py", line 66, in <module>
    for i,data in enumerate(train_data,0):

  File "D:\Programme\Anaconda\envs\Deeplearning\lib\site-packages\torch\utils\data\dataloader.py", line 264, in __next__
    batch = self.collate_fn([self.dataset[i] for i in indices])

  File "D:\Programme\Anaconda\envs\Deeplearning\lib\site-packages\torch\utils\data\dataloader.py", line 264, in <listcomp>
    batch = self.collate_fn([self.dataset[i] for i in indices])

TypeError: 'CustomMouseDataset' object does not support indexing