国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Downloading https://ultralytics.com/assets/Arial.ttf to ...... yolov5報(bào)錯(cuò)解決

這篇具有很好參考價(jià)值的文章主要介紹了Downloading https://ultralytics.com/assets/Arial.ttf to ...... yolov5報(bào)錯(cuò)解決。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

yolov5模型用的是github上YOLOv5官方的,
在autodl服務(wù)器上訓(xùn)練時(shí),Arial.ttf字體會(huì)自動(dòng)下載,但是無(wú)法下載。(當(dāng)然在自己電腦上pycharm跑不會(huì)報(bào)這個(gè)錯(cuò),可以下載)
解決方法:

class Annotator:
	if RANK in (-1, 0):
        check_font()  # download TTF if necessary
    # YOLOv5 Annotator for train/val mosaics and jpgs and detect/hub inference annotations
    def __init__(self, im, line_width=None, font_size=None, font='Arial.ttf', pil=False, example='abc'):

將第3,4行注釋掉,
改為:

class Annotator:
	#if RANK in (-1, 0):
        #check_font()  # download TTF if necessary
    # YOLOv5 Annotator for train/val mosaics and jpgs and detect/hub inference annotations
    def __init__(self, im, line_width=None, font_size=None, font='', pil=False, example='abc'):

重新訓(xùn)練即可正常訓(xùn)練。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-515820.html

到了這里,關(guān)于Downloading https://ultralytics.com/assets/Arial.ttf to ...... yolov5報(bào)錯(cuò)解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • VisDrone2019上訓(xùn)練YOLOv5(用ultralytics)

    使用的package library: ultralytics 環(huán)境:python3.8, torch=1.7.0 把ultralytics代碼git clone 到本地 本地新建一個(gè)train.py,內(nèi)容寫下面這些。 在本地做測(cè)試用coco128這128張圖片。跑通了,上云端服務(wù)器的餓時(shí)候在換成VisDrone.yaml這個(gè)我們要訓(xùn)練的數(shù)據(jù)集 40G顯存,最佳batch size是25張, 顯示的實(shí)時(shí)

    2024年02月15日
    瀏覽(17)
  • unable to access https://github.com/....解決方法

    git config --global url.\\\"https://\\\".insteadOf git:// 可以把?git:// 替換成 https:// 方便使用 https 協(xié)議 相反的,如果想要將https 替換成 git,比如我們平時(shí)下載不到github的東西,提示 unable to access https://github.com/.......的時(shí)候就可以用 git config --global url.\\\"git://\\\".insteadOf https:// 這個(gè)方法來(lái)解決,意

    2024年02月13日
    瀏覽(105)
  • Git clone報(bào)錯(cuò):fatal: unable to access ‘https://github.com/.....‘: Failed to connect to github.com port

    Git clone報(bào)錯(cuò):fatal: unable to access ‘https://github.com/.....‘: Failed to connect to github.com port

    使用Git克隆項(xiàng)目是,有時(shí)候會(huì)報(bào)錯(cuò):Failed to connect to github.com port 443 after 21096 ms: Couldn’t connect to server 原因是本機(jī)代理端口和git端口不一致。 我的解決方法: 然后開(kāi)啟手動(dòng)代理模式: 隨便在哪個(gè)地方,右鍵選擇Git Bash Here(得安裝了Git),然后在彈出的命令行窗口中分別輸入一

    2024年04月13日
    瀏覽(104)
  • fatal: 無(wú)法訪問(wèn) https://github.com/ :Failed to connect to github.com port 443: 拒絕連接的解決辦法

    fatal: 無(wú)法訪問(wèn) https://github.com/ :Failed to connect to github.com port 443: 拒絕連接的解決辦法

    最近在ubuntu20.04安裝PCL1.9.1的過(guò)程中,在從github 下載pcl時(shí)遇到了 fatal: 無(wú)法訪問(wèn) https://github.com/PointCloudLibrary/pcl.git/ :Failed to connect to github.com port 443: 拒絕連接 這個(gè)問(wèn)題。 解決辦法:在終端輸入 sudo gedit /etc/hosts ,打開(kāi)/etc/hosts文件,然后注釋掉所有只涉及到github.com的行(注意是

    2024年02月12日
    瀏覽(24)
  • 解決fatal: unable to access ‘https://github.com……‘: Failed to connect to

    問(wèn)題 : git? clone 項(xiàng)目執(zhí)行時(shí),報(bào)錯(cuò)fatal: unable to access…… 解決方法 : 在cmd下執(zhí)行 ipconfig/flushdns ?清理DNS緩存 重新執(zhí)行 git clone https://github.com/…/.git/’ ?即可

    2024年02月11日
    瀏覽(87)
  • 解決unable to access ‘https://github.com/XXX‘: Failed to connect to github.com port 443 after 21093 ms

    問(wèn)題: GitHub拉代碼時(shí)報(bào)錯(cuò) Clone failed unable to access \\\'https://github.com/majiang666/vue-pdf.git/\\\': Failed to connect to github.com port 443 after 21093 ms: Timed out 解決方法有兩種,如下 方法一: 登錄GitHub賬號(hào)后再拉取代碼 方法二: 在GitHub前面加上 username:passwords@ ,例:https:// username:passwords @github.c

    2024年02月05日
    瀏覽(22)
  • 【git】Git提交或者報(bào)錯(cuò)fatal:unable to access ‘https://github.com/xxx‘: Failed to connect to github.com

    1. 問(wèn)題原因 報(bào)錯(cuò)信息: 原因: 在git push時(shí)或者clone時(shí),中間會(huì)有g(shù)it的http和https代理,但是我們本地環(huán)境本身就有SSL協(xié)議了,所以取消git的https或者h(yuǎn)ttp代理即可 2. 解決方案 最好的解決方法還是配置ssh方法訪問(wèn) 鏈接:Github配置SSH訪問(wèn) 避免使用https訪問(wèn)經(jīng)常網(wǎng)絡(luò)連接失敗或者需要

    2024年02月05日
    瀏覽(92)
  • 解決error: failed to push some refs to ‘https://github.com...‘問(wèn)題

    本地修改代碼后正準(zhǔn)備push到遠(yuǎn)程倉(cāng)庫(kù),但是遇到了如下問(wèn)題: 輸入 git pull 獲得 這是因?yàn)樵趫?zhí)行 git pull 命令時(shí),Git 會(huì)自動(dòng)嘗試合并遠(yuǎn)程倉(cāng)庫(kù)的更改和本地倉(cāng)庫(kù)的更改,如果本地存在未提交的更改,可能會(huì)導(dǎo)致代碼沖突或其他問(wèn)題。輸入 git pull --rebase origin master 無(wú)法解決問(wèn)題

    2024年02月07日
    瀏覽(23)
  • 如何解決error: failed to push some refs to ‘https://gitee.com/

    如何解決error: failed to push some refs to ‘https://gitee.com/

    在使用git連接Gitee遠(yuǎn)程庫(kù)進(jìn)行第一次提交時(shí),很多時(shí)候會(huì)下面的錯(cuò)誤,這是由于遠(yuǎn)程庫(kù)的文件和本地倉(cāng)庫(kù)的文件不一致 ?想要解決這個(gè)問(wèn)題很簡(jiǎn)單,只需要進(jìn)行以下操作: 1.先在git命令行執(zhí)行下面的操作 這樣做的作用是將遠(yuǎn)程庫(kù)的文件同步到本地倉(cāng)庫(kù) 2. 再次執(zhí)行 git push 命令

    2024年02月11日
    瀏覽(50)
  • 已解決error: failed to push some refs to ‘https://gitee.com/

    已解決error: failed to push some refs to ‘https://gitee.com/ error: failed to push some refs to ‘https://gitee.com/ 對(duì)于該錯(cuò)誤信息\\\"error: failed to push some refs to ‘https://gitee.com/詳細(xì)解決方法’\\\",通常是由遠(yuǎn)程倉(cāng)庫(kù)已經(jīng)發(fā)生了變化,與本地倉(cāng)庫(kù)沖突導(dǎo)致的。 下滑查看解決方法 拉取最新代碼:在推送

    2024年02月08日
    瀏覽(20)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包