第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何在 Google Colaboratory 中導(dǎo)入 face_recognition?

如何在 Google Colaboratory 中導(dǎo)入 face_recognition?

慕碼人2483693 2023-05-23 10:17:04
我在 Google Colab 工作并且已經(jīng)導(dǎo)入了 dlib!pip install dlibimport dlib并安裝了 face_recognition 模塊。!pip install face_recognition但是,我收到此行的錯(cuò)誤:import face_recognitionimport matplotlib.pyplot as pltfrom matplotlib.patches import Rectanglefrom matplotlib.patches import Circleimport numpy as npimport cv2%matplotlib inline錯(cuò)誤如下:---------------------------------------------------------------------------RuntimeError                              Traceback (most recent call last)<ipython-input-159-91aca6eea0d3> in <module>()----> 1 import face_recognition      2 import matplotlib.pyplot as plt      3 from matplotlib.patches import Rectangle      4 from matplotlib.patches import Circle      5 import numpy as np1 frames/usr/local/lib/python3.6/dist-packages/face_recognition/api.py in <module>()     24      25 cnn_face_detection_model = face_recognition_models.cnn_face_detector_model_location()---> 26 cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)     27      28 face_recognition_model = face_recognition_models.face_recognition_model_location()RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-wheel-66glv9rf/dlib/dlib/cuda/gpu_data.cpp:201. code: 100, reason: no CUDA-capable device is detected可以做什么?
查看完整描述

1 回答

?
吃雞游戲

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超7個(gè)贊

從錯(cuò)誤中我可以看出你(可能)沒(méi)有啟用 GPU 加速。

轉(zhuǎn)到運(yùn)行時(shí) -> 更改運(yùn)行時(shí) ->選擇 GPU

然后運(yùn)行代碼!pip install face_recognition

這應(yīng)該可以毫無(wú)問(wèn)題地安裝庫(kù)(和依賴項(xiàng))。此外,您不需要單獨(dú)安裝 dlib。讓 face_recognition 與它一起構(gòu)建它。

http://img1.sycdn.imooc.com//646c223d000164d515260355.jpg

查看完整回答
反對(duì) 回復(fù) 2023-05-23
  • 1 回答
  • 0 關(guān)注
  • 143 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)