invoke-ai/InvokeAI

[enhancement]: Support HF URLs that point to the webpage for a file and not the file itself

已關閉

#6,227 建立於 2024年4月15日

 (0 則留言) (2 個反應) (0 位負責人)TypeScript (2,164 個分叉)batch import
enhancementgood first issuemodel manager

倉庫指標

星標
 (20,358 顆星)
PR 合併指標
 (平均合併 39天 7小時) (30 天內合併 39 個 PR)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

When you browse to a HF repo and click a file, you get a webpage. Here's an example: https://huggingface.co/h94/IP-Adapter/blob/main/sdxl_models/ip-adapter-plus-face_sdxl_vit-h.safetensors

You cannot copy and paste this URL into the MM to install the file - you have to use the URL of the download link.

That URL is almost the same as the URL to the page, but blob is replaced with resolve.

The MM could use a simple regex detect the blob URL and transform it to a resolve URL, so you don't have to click the download link.

Alternatives

No response

Additional Content

No response

貢獻者指南