From a5c0c0abdce35eb59ed99c35fbcef848e77b7823 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 22 Sep 2022 00:38:05 -0600 Subject: [PATCH] Update download_sd-concepts-library.py Former-commit-id: 9e1d764fc0e68548c6b255d8f76efaa9e7962f69 [formerly fd54ed734c0abb5a6f6ce56f02bdac7c79592d88] Former-commit-id: a200f6a982e776d160e40190064d341367391327 --- Other/download_sd-concepts-library.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Other/download_sd-concepts-library.py b/Other/download_sd-concepts-library.py index ffcc3f3..da281c1 100644 --- a/Other/download_sd-concepts-library.py +++ b/Other/download_sd-concepts-library.py @@ -14,7 +14,7 @@ from huggingface_hub import HfApi import os api = HfApi() -models_list = api.list_models(author="sd-concepts-library", sort="likes", direction=-1) +models_list = api.list_models(author="sd-concepts-library") print('Downloading', len(models_list), 'models...') i = 1 @@ -25,3 +25,6 @@ for model_info in models_list: os.system(f'rm -rf repositories/{model_name}/.git*') # delete all git stuff in the repository os.system(f'mv repositories/{model_name}/learned_embeds.bin {model_name}.pt') # move the bin file out of the repository and rename it to a .pt file i = i + 1 + +# Pro-tip: use this command to compress the files with 7zip max compression. +# 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on sd-concepts-library_complete.7z sd-concepts-library/