xception in thread Thread-12:
Traceback (most recent call last):
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\threading.py", line 932, in _bootstrap_inner
Exception in thread Thread-13:
Traceback (most recent call last):
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\threading.py", line 870, in run
self.run()
self._target(*self._args, **self._kwargs)
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\threading.py", line 870, in run
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\plots.py", line 215, in plot_images
annotator.text((x + 5, y + 5 + h), text=Path(paths[i]).name[:40], txt_color=(220, 220, 220)) # filenames
self._target(*self._args, **self._kwargs)
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\plots.py", line 113, in text
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\plots.py", line 215, in plot_images
w, h = self.font.getsize(text) # text width, height
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
annotator.text((x + 5, y + 5 + h), text=Path(paths[i]).name[:40], txt_color=(220, 220, 220)) # filenames
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\plots.py", line 113, in text
w, h = self.font.getsize(text) # text width, height
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
Traceback (most recent call last):
File "train.py", line 643, in <module>
main(opt)
File "train.py", line 539, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 447, in train
callbacks.run('on_train_end', last, best, plots, epoch, results)
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\callbacks.py", line 78, in run
logger['callback'](*args, **kwargs)
File "C:\Users\LENOVO\Workspace\yolov5\yolov5-6.1\utils\loggers\__init__.py", line 152, in on_train_end
self.tb.add_image(f.stem, cv2.imread(str(f))[..., ::-1], epoch, dataformats='HWC')
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\site-packages\torch\utils\tensorboard\writer.py", line 557, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\site-packages\torch\utils\tensorboard\summary.py", line 401, in image
image = make_image(tensor, rescale=rescale)
File "C:\Users\LENOVO\.conda\envs\yolovcude\lib\site-packages\torch\utils\tensorboard\summary.py", line 443, in make_image
image = image.resize((scaled_width, scaled_height), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'