1. KeyError 問題
Traceback (most recent call last):
File “D:\Anaconda\Scripts\yolo-script.py”, line 33, in
sys.exit(load_entry_point(‘ultralytics==8.0.83’, ‘console_scripts’, ‘yolo’)())
self.model, self.save = parse_model(deepcopy(self.yaml), ch=ch, verbose=verbose) # model, savelist
File “D:\Anaconda\lib\site-packages\ultralytics-8.0.83-py3.8.egg\ultralytics\nn\tasks.py”, line 465, in parse_model
m = getattr(torch.nn, m[3:]) if ‘nn.’ in m else globals()[m] # get module
KeyError: ‘space_to_depth’
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit
項(xiàng)目場(chǎng)景:
我發(fā)現(xiàn)目前很多同學(xué)在使用YOLOv8
添加了自己的模塊后都會(huì)出現(xiàn)這個(gè)報(bào)錯(cuò)。文章來源:http://www.zghlxwxcb.cn/news/detail-465365.html
問題描述:
比如我首先在文章來源地址http://www.zghlxwxcb.cn/news/detail-465365.html
到了這里,關(guān)于YOLOv8 Bug及解決方案匯總的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!