Traceback (most recent call last):
File "F:\zz\yolov5-6.1\train.py", line 643, in <module>
main(opt)
File "F:\zz\yolov5-6.1\train.py", line 539, in main
train(opt.hyp, opt, device, callbacks)
File "F:\zz\yolov5-6.1\train.py", line 223, in train
train_loader, dataset = create_dataloader(train_path, imgsz, batch_size // WORLD_SIZE, gs, single_cls,
File "F:\zz\yolov5-6.1\utils\datasets.py", line 100, in create_dataloader
dataset = LoadImagesAndLabels(path, imgsz, batch_size,
File "F:\zz\yolov5-6.1\utils\datasets.py", line 443, in __init__
bi = np.floor(np.arange(n) / batch_size).astype(np.int) # batch index
File "F:\Anaconda\envs\DL\lib\site-packages\numpy\__init__.py", line 338, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
yolov5训练报错 求大神看看
最新推荐文章于 2024-04-08 13:56:39 发布