Traceback (most recent call last):


 "C:\Users\user\Anaconda3\envs\tf1.13\lib\site-packages\torch\utils\data\dataloader.py", line 138, in _worker_loop

samples = collate_fn([dataset[i] for i in batch_indices])


 "C:\Users\user\Anaconda3\envs\tf1.13\lib\site-packages\torch\utils\data\dataloader.py", line 138, in <listcomp>

samples = collate_fn([dataset[i] for i in batch_indices])


 "D:\workspace\PyTorch-YOLOv3\utils\datasets.py", line 86, in __getitem__

img = transforms.ToTensor()(Image.open(img_path).convert('RGB'))


 "C:\Users\user\Anaconda3\envs\tf1.13\lib\site-packages\PIL\Image.py", line 2640, in open

fp = io.BytesIO(fp.read())
AttributeError: 'str' object has no attribute 'read'
Traceback (most recent call last):


 "C:\Users\hidden\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 312, in _run_event

await coro(*args, **kwargs)


 "hidden", line 115, in on_message

await user.send('Hi!')
AttributeError: 'NoneType' object has no attribute 'send'
