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

使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法

這篇具有很好參考價(jià)值的文章主要介紹了使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

?
最近發(fā)現(xiàn)了 Stable Diffusion 這個(gè)好玩的ai繪畫工具,不得不感嘆現(xiàn)在ai工具已經(jīng)進(jìn)化到這么簡單易用的程度,只要下載對應(yīng)的模型就可以生成各種有意思的圖片

就算你沒有編程基礎(chǔ),跟著教程也能弄出來

不過使用過程中發(fā)現(xiàn)部分功能無法使用
查看日志發(fā)現(xiàn)是一些圖片生成過程中需要的模型無法下載
在終端export代理地址之后,發(fā)現(xiàn)依舊報(bào)錯

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

這個(gè)報(bào)錯信息可以看出來就是Python無法驗(yàn)證SSL證書而引起的,搜索之后發(fā)現(xiàn)解決方法就是執(zhí)行如下代碼關(guān)閉ssl證書的認(rèn)證

# 導(dǎo)入對應(yīng)庫
import ssl
# 全局關(guān)閉ssl驗(yàn)證
ssl._create_default_https_context = ssl._create_unverified_context

跟隨 Stable Diffusion 的日志查看到第一個(gè)加載的python文件為 lanuch.py ,就位于 stable-diffusion-webui 根目錄下,直接在文件頂部加就可以了
使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法

之后重啟 stable-diffusion-webui,再次使用相同功能生成圖片,模型下載成功
使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法
完整報(bào)錯如下,便于大家檢索:”

Downloading: "https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth" to <你的安裝路徑>/stable-diffusion-webui/models/GFPGAN/detection_Resnet50_Final.pth

Error completing request
Arguments: (0, <PIL.Image.Image image mode=RGB size=512x512 at 0x2BA2524D0>, None, '', '', True, 0, 4, 512, 512, True, 'Lanczos', 'R-ESRGAN 4x+', 0, 0.116, 0.183, 0.214) {}
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1454, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<你的安裝路徑>/stable-diffusion-webui/modules/call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "<你的安裝路徑>/stable-diffusion-webui/modules/call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "<你的安裝路徑>/stable-diffusion-webui/modules/postprocessing.py", line 56, in run_postprocessing
    scripts.scripts_postproc.run(pp, args)
  File "<你的安裝路徑>/stable-diffusion-webui/modules/scripts_postprocessing.py", line 130, in run
    script.process(pp, **process_args)
  File "<你的安裝路徑>/stable-diffusion-webui/scripts/postprocessing_gfpgan.py", line 26, in process
    restored_img = gfpgan_model.gfpgan_fix_faces(np.array(pp.image, dtype=np.uint8))
  File "<你的安裝路徑>/stable-diffusion-webui/modules/gfpgan_model.py", line 53, in gfpgan_fix_faces
    model = gfpgann()
  File "<你的安裝路徑>/stable-diffusion-webui/modules/gfpgan_model.py", line 40, in gfpgann
    model = gfpgan_constructor(model_path=model_file, upscale=1, arch='clean', channel_multiplier=2, bg_upsampler=None, device=devices.device_gfpgan)
  File "<你的安裝路徑>/stable-diffusion-webui/venv/lib/python3.10/site-packages/gfpgan/utils.py", line 79, in __init__
    self.face_helper = FaceRestoreHelper(
  File "<你的安裝路徑>/stable-diffusion-webui/venv/lib/python3.10/site-packages/facexlib/utils/face_restoration_helper.py", line 99, in __init__
    self.face_det = init_detection_model(det_model, half=False, device=self.device, model_rootpath=model_rootpath)
  File "<你的安裝路徑>/stable-diffusion-webui/venv/lib/python3.10/site-packages/facexlib/detection/__init__.py", line 18, in init_detection_model
    model_path = load_file_from_url(
  File "<你的安裝路徑>/stable-diffusion-webui/modules/gfpgan_model.py", line 94, in facex_load_file_from_url
    return facex_load_file_from_url_orig(**dict(kwargs, save_dir=model_path, model_dir=None))
  File "<你的安裝路徑>/stable-diffusion-webui/venv/lib/python3.10/site-packages/facexlib/utils/misc.py", line 77, in load_file_from_url
    download_url_to_file(url, cached_file, hash_prefix=None, progress=progress)
  File "<你的安裝路徑>/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/hub.py", line 611, in download_url_to_file
    u = urlopen(req)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/opt/homebrew/Cellar/python@3.10/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

^CInterrupted with signal 2 in <frame at 0x2a9396480, file '<你的安裝路徑>/stable-diffusion-webui/webui.py', line 209, code wait_on_server>

如果沒有代理的話,可以參考 https://zhuanlan.zhihu.com/p/609577723?utm_id=0
使用 ghproxy 來解決,但是需要修改的地方較多

最后附上兩張ai生成的圖片,使用的mbp14 2021 款,性能有限都是跑的低分辨率圖片
?
使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法

使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法文章來源地址http://www.zghlxwxcb.cn/news/detail-449327.html

到了這里,關(guān)于使用代理時(shí)Stable Diffusion無法正常下載各類模型的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • stable diffusion webui 下載和使用civitai中的模型

    stable diffusion webui 下載和使用civitai中的模型

    C站網(wǎng)址為:https://civitai.com/。注:這里需要科學(xué)上網(wǎng) 1.選擇想要的模型,點(diǎn)擊【Download】按鈕,這里演示【Deliberate】模型的下載和使用 2.將下載的模型,存放到【/models/Stable-diffusion】目錄中 1.在模型下載頁中,如上圖,圖片右下角的【i】按鈕,點(diǎn)擊【Copy Generation Data】即可復(fù)

    2024年02月17日
    瀏覽(21)
  • 《Stable Diffusion web UI ControlNet模型下載及使用》

    《Stable Diffusion web UI ControlNet模型下載及使用》

    ControlNet模型下載 本來是很簡單一兩分鐘搞定的事情,但是作者搞了7次才終于出來這個(gè)頁面 每次下載完以后看文件也是有?/stable-diffusion-webui/extensions/sd-webui-controlnet? 但是在Stable Diffusion里面怎么都沒有ControlNet。最后反復(fù)刪除,又重新下載第7次以后才成功,具體原因我也不知

    2024年02月05日
    瀏覽(20)
  • AI繪畫 | stable-diffusion的模型簡介和下載使用

    AI繪畫 | stable-diffusion的模型簡介和下載使用

    我們下載完stable-diffusion-ui后還需要下載需要的大模型,才能進(jìn)行AI繪畫的操作。秋葉的stable-diffusion-ui整合包內(nèi),包含了anything-v5-PrtRE.safetensors和Stable Diffusion-V1.5-final-prune_v1.0.ckpt兩個(gè)模型。 anything-v5-PrtRE.safetensors模型可以用于生成多種類型的圖像,包括肖像、風(fēng)景、動物、卡通

    2024年02月04日
    瀏覽(27)
  • Stable-Diffusion|入門怎么下載與使用civitai網(wǎng)站的模型(二)

    Stable-Diffusion|入門怎么下載與使用civitai網(wǎng)站的模型(二)

    C站:https://civitai.com/ 上一篇安裝:Stable-Diffusion|window10安裝GPU版本的 Stable-Diffusion-WebUI遇到的一些問題(一) 先貼幾張筆者自己實(shí)驗(yàn)的圖,模型來自:photo-style-cnvtubermix 咒語prompt: 反向咒語: 左上角是主模型,一般是 CHECKPOINT MERGE ,所以如下圖,這類就是主模型,需要放到主

    2024年02月08日
    瀏覽(29)
  • InsCode Stable Diffusion使用教程(非常詳細(xì))從零基礎(chǔ)入門到精通,看完這一篇就夠了_outpainting 模型下載

    InsCode Stable Diffusion使用教程(非常詳細(xì))從零基礎(chǔ)入門到精通,看完這一篇就夠了_outpainting 模型下載

    先自我介紹一下,小編浙江大學(xué)畢業(yè),去過華為、字節(jié)跳動等大廠,目前阿里P7 深知大多數(shù)程序員,想要提升技能,往往是自己摸索成長,但自己不成體系的自學(xué)效果低效又漫長,而且極易碰到天花板技術(shù)停滯不前! 因此收集整理了一份《2024年最新HarmonyOS鴻蒙全套學(xué)習(xí)資料

    2024年04月17日
    瀏覽(29)
  • 《Stable Diffusion WebUI如何下載模型》

    《Stable Diffusion WebUI如何下載模型》

    接上一個(gè)教程,現(xiàn)在開始使用Stable Diffusion,自己訓(xùn)練模型太花時(shí)間了,直接下載別人訓(xùn)練好的模型可以省很多事。 左上面stable Diffusion checkpoint就是我們的模型,現(xiàn)在里面什么都沒有 1、點(diǎn)擊選擇上面的Civitai ? 2、這里面有一些模型。如果你想要更多更全的,那就進(jìn)入網(wǎng)站ci

    2024年02月06日
    瀏覽(21)
  • Stable Diffusion 模型下載:ZavyChromaXL(現(xiàn)實(shí)、魔幻)

    Stable Diffusion 模型下載:ZavyChromaXL(現(xiàn)實(shí)、魔幻)

    本文收錄于《AI繪畫從入門到精通》專欄,專欄總目錄:點(diǎn)這里。 作者述:該模型系列應(yīng)該是用于 SDXL 的 ZavyMix SD1.5 模型的延續(xù)。主要重點(diǎn)是獲得與模型相似的風(fēng)格和獨(dú)特感,它擅長將魔幻與現(xiàn)實(shí)主義融合在一起,真正將它們無縫地融合在一起。當(dāng)然,隨著向 SDXL 的發(fā)展,該

    2024年03月11日
    瀏覽(12)
  • Stable Diffusion 模型下載:GhostMix(幽靈混合)

    Stable Diffusion 模型下載:GhostMix(幽靈混合)

    本文收錄于《AI繪畫從入門到精通》專欄,專欄總目錄:點(diǎn)這里。

    2024年02月20日
    瀏覽(16)
  • Stable Diffusion 模型下載:ToonYou(平涂卡通)

    Stable Diffusion 模型下載:ToonYou(平涂卡通)

    本文收錄于《AI繪畫從入門到精通》專欄,專欄總目錄:點(diǎn)這里。

    2024年02月20日
    瀏覽(19)
  • [深度學(xué)習(xí)]stable diffusion官方模型下載地址

    由于老忘記下載地址還有官方給的下載地址我也是老找不到,因此放博客備份一下,同時(shí)也給有需要的人。 1.4版本下載: CompVis/stable-diffusion-v-1-4-original · Hugging Face 1.5版本下載: runwayml/stable-diffusion-v1-5 at main sdxl-0.9.0版本下載 https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.

    2024年02月11日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包