ThereforeGames / txt2mask

Automatically create masks for Stable Diffusion inpainting using natural language.
517 stars 40 forks source link

Keep getting this error #11

Closed everyonehello12 closed 2 years ago

everyonehello12 commented 2 years ago
Screenshot 2022-09-23 100635
moorehousew commented 2 years ago

You can't download the model weights that the script requires. This is because timojl/clipseg is over its LFS quota. Do the following to 'trick' GH into letting you download the model weights.

  1. Fork timoji/clipseg
  2. Go to repo settings
  3. Find "Include Git LFS objects in archives" under the Archives section and check it
  4. Go to the Danger Zone section, select "Archive this repository"
  5. Confirm and authorize
  6. Return to the archived repository
  7. Download as .zip

The model weights will be in /weights, move those files to /repositories/clipseg/weights in your SD directory. Dunno why they even used LFS considering the weights are <5mb combined, but there you go.

ThereforeGames commented 2 years ago

Thanks for the detailed workaround, @moorehousew!

I just updated the script to point to a download mirror that was mentioned in the clipseg repo. Works on my end, but let me know if the issue persists. Thanks!