- ВКонтакте
- РћРТвЂВВВВВВВВнокласснРСвЂВВВВВВВВРєРСвЂВВВВВВВВ
- РњРѕР№ Р В Р’В Р РЋРЎв„ўР В Р’В Р РЋРІР‚ВВВВВВВВРЎР‚
- Viber
- Skype
- Telegram
Ошибка при попытке зарегистрировать dataset как артефакт в W&B
Я использовал команду в консоли python utils/loggers/wandb/log_dataset.py --project custom_yolov5 --data data/custom_dataset.yaml, вследствие чего выдаёт кучу ошибок :
Traceback (most recent call last):
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\loggers\wandb\log_dataset.py", line 27, in <module>
create_dataset_artifact(opt)
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\loggers\wandb\log_dataset.py", line 11, in create_dataset_artifact
logger = WandbLogger(opt, None, job_type='Dataset Creation') # TODO: return value unused
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\loggers\wandb\wandb_utils.py", line 189, in __init__
self.data_dict = self.check_and_upload_dataset(opt)
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\loggers\wandb\wandb_utils.py", line 202, in check_and_upload_dataset
config_path = self.log_dataset_artifact(opt.data, opt.single_cls,
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\loggers\wandb\wandb_utils.py", line 346, in log_dataset_artifact
self.train_artifact = self.create_dataset_table(LoadImagesAndLabels(data['train'], rect=True, batch_size=1),
File "C:\Users\Alzir\Desktop\project\yolov5-master\utils\datasets.py", line 473, in __init__
bi = np.floor(np.arange(n) / batch_size).astype(np.int) # batch index
File "C:\Users\Alzir\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 424, 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:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Я посетил предложенный мне сайт, однако не нашёл информации, которая может мне помочь, может у вас какие-либо идеи будут? P.S. Переустановка всех библиотек и изменение их версий - не помогла