Giter VIP home page Giter VIP logo

Comments (3)

littleboot avatar littleboot commented on May 13, 2024 1

Managed to get it to work, by manually downloading the required big files and renaming them to their hash and placing them in the blobs folder.

example:

Retrieve the model repo name from the sd.webui prompt and look it up an hugginfaces.

For example the "Uminosachi/dreamshaper_6Inpainting" model:
https://huggingface.co/Uminosachi/dreamshaper_6Inpainting
Go to files and versions

Find the file that failed to download based uppon its file size.

Download it manually: https://huggingface.co/Uminosachi/dreamshaper_6Inpainting/tree/main/unet

Use powershell with "get-filehash" to get the file hash.


Copy the hash: 
E573F86C5C31BFFE337A29E40B48C03AE10149F5C2995C61439A03D7C8477CBE

Convert it to lower case (https://convertcase.net/):
e573f86c5c31bffe337a29e40b48c03ae10149f5c2995c61439a03d7c8477cbe

Rename the file to the hash (note also remove file extension name)

Place it is the blobs folder: 
C:\Users\admin\.cache\huggingface\hub\models--Uminosachi--dreamshaper_6Inpainting\blobs

from sd-webui-inpaint-anything.

Uminosachi avatar Uminosachi commented on May 13, 2024

For any models you download in the Inpainting tab, we utilize the caching system provided by Hugging Face Hub. Should you wish to change the download location, you can adjust an environment variable.
For more information on managing cache, you may refer to the Hugging Face Hub guide.

The <CACHE_DIR> is usually your user’s home directory. However, it is customizable with the cache_dir argument on all methods, or by specifying either HF_HOME or HUGGINGFACE_HUB_CACHE environment variable.

from sd-webui-inpaint-anything.

littleboot avatar littleboot commented on May 13, 2024

Thank you for the quick response, I had a look at the link you provided but this does not solve my problem however it explains the download location and folder structure.
It is not clear to me if it is possible to download the "Inpainting Models" manually and were I should put these files.
Is it possible to run the download command with an increased timeout?

For example I would like to download the "Uminosachi/dreamshaper_6Inpainting" manually.
These files are downloaded from: https://huggingface.co/Uminosachi/dreamshaper_6Inpainting/tree/main
Which is failing because of my 2GB download limit (timeout):
image

The best solution for me would be to increase the download timeout so I can restore the connection and resume the download.
(It takes me about 20 sec to apply for an additional 2GB at my mobile provider.)

A workaround that may work for me is to download the big files that are failing to download manually, rename them to their hash and put them in the "models--Uminosachi--dreamshaper_6Inpainting\blobs" folder.
I think this might work so I will be trying this next.

from sd-webui-inpaint-anything.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.