mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 22:54:57 -05:00
33 lines
48 KiB
Python
33 lines
48 KiB
Python
# from stabilityai/sdxl-turbo, via the HF API
|
|
# This was derived by examination of the outgoing and incoming request.Session
|
|
RepoHFMetadata1 = b"""
|
|
{"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_author","sha":"f4b0486b498f84668e828044de1d0c8ba486e05b","lastModified":"2023-12-07T18:04:49.000Z","private":false,"disabled":false,"gated":false,"pipeline_tag":"text-to-image","tags":["diffusers","onnx","safetensors","text-to-image","license:other","has_space","diffusers:StableDiffusionXLPipeline","region:us"],"downloads":588989,"library_name":"diffusers","likes":1297,"model-index":null,"config":{"diffusers":{"class_name":"StableDiffusionXLPipeline"}},"cardData":{"pipeline_tag":"text-to-image","inference":false,"license":"other","license_name":"sai-nc-community","license_link":"https://huggingface.co/stabilityai/sdxl-turbo/blob/main/LICENSE.TXT"},"spaces":["radames/Real-Time-Latent-Consistency-Model","diffusers/unofficial-SDXL-Turbo-i2i-t2i","radames/Real-Time-Latent-Consistency-Model-Text-To-Image","Manjushri/SDXL-Turbo-Img2Img-CPU","latent-consistency/Real-Time-LCM-ControlNet-Lora-SD1.5","radames/Real-Time-SD-Turbo","baulab/ConceptSliders","Krebzonide/SDXL-Turbo-With-Refiner","cocktailpeanut/sdxl-turbo","latent-consistency/Real-Time-LCM-Text-to-Image-Lora-SD1.5","Ekimetrics/Guess-the-prompt","imatag/stable-signature-bzh","robo-bonobo/sdxl-turbo","esafwan/SDXL-Turbo","sub314xxl/unofficial-SDXL-Turbo-i2i-t2i","JoPmt/Txt2Img_SDXL_Trb","Manjushri/SDXL-Turbo-CPU","Omnibus/sdxl-turbo","daily-co/RealtimeSDWebRTC","Ashrafb/IIm2","PayPeer/SDXL-Turbo","coldn00dl3s/sdxl-turbo-demo-interface","jbilcke-hf/faster-image-server","Dorjzodovsuren/Real-Time-SD-Turbo","Geek7/models","HusseinHE/Magic","LouDogNation/Real-Time-Latent-Consistency-Model","RTLAI/SDXLTurbo","TogetherAI/sdxl-turbo","asdsteven/streamlit","hahahafofo/Qwen-Prompt-SDXL-Turbo","hillman2000hk/Real-Time-Latent-Consistency-Model","jensinjames/Real-Time-SD-Turbo","michaelj/vega-Img2Img-CPU","tsi-org/sdxl-turbo","tsi-org/pixio-turbo-xl","vhly/turbo-demo","vloikas/NEW-Mycelium"],"siblings":[{"rfilename":".gitattributes","blobId":"a6344aac8c09253b3b630fb776ae94478aa0275b","size":1519},{"rfilename":"LICENSE.TXT","blobId":"03fe74dc12ab9c5abf698bceb8ac40668787a937","size":7493},{"rfilename":"README.md","blobId":"ce7cdfb6d66b271e92fecf88940726310e5e9013","size":5545},{"rfilename":"image_quality_one_step.png","blobId":"13cb17a7934a33001f393d08f98504cbb2bc914f","size":203741},{"rfilename":"model_index.json","blobId":"f857cf2f828fff2ee319b1a47e6ce820e8affb9d","size":685},{"rfilename":"output_tile.jpg","blobId":"d5fce5ecd2ef568d689419271d9ffabfb0856c36","size":744087},{"rfilename":"prompt_alignment_one_step.png","blobId":"3490b19d78d804b8273b93e803f23a3b04689be3","size":204304},{"rfilename":"scheduler/scheduler_config.json","blobId":"0359d7abb0b9c7b4a433be2db87cefea03c06ea5","size":459},{"rfilename":"sd_xl_turbo_1.0.safetensors","blobId":"e35c7fd734789e0f9b3cf16839431216b86bef34","size":13875761366,"lfs":{"sha256":"2e58e3704b4c0831bf848e0507c9b5ff2cd8d007b8d0719dba3874156f631050","size":13875761366,"pointerSize":136}},{"rfilename":"sd_xl_turbo_1.0_fp16.safetensors","blobId":"bc5009cfdd6444d8d9f8557efca5b582054ec77d","size":6938081905,"lfs":{"sha256":"e869ac7d6942cb327d68d5ed83a40447aadf20e0c3358d98b2cc9e270db0da26","size":6938081905,"pointerSize":135}},{"rfilename":"text_encoder/config.json","blobId":"8e91c97936ad0b2c1356f03de8d47589b5232704","size":565},{"rfilename":"text_encoder/model.fp16.safetensors","blobId":"e224fcda070dc105fd83c64ed2074f47a1b0ff7b","size":246144152,"lfs":{"sha256":"660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd","size":246144152,"pointerSize":134}},{"rfilename":"text_encoder/model.onnx","blobId":"447dc336b66ec45c07e90c45ef4a88c9ba6ed293","size":492587458,"lfs":{"sha256":"5522ae5f760e4864c20424c514cfa585cb4afb672b71b962f29a97c4f457383c","size":492587458,"pointerSize":134}},{"rfilename":"text_encoder/model.safetensors","blobId":"34cca545bfc07f566fa79345178b6db761f9d53b","size":492265168,"lfs":{"sha256":"778d02eb9e707c3fbaae0b67b79ea0d1399b52e624fb634f2f19375ae7c047c3","size":492265168,"pointerSize":134}},{"rfilename":"text_encoder_2/config.json","blobId":"f9e084535c55110233f44ccc6c7f9d0e1540f8be","size":575},{"rfilename":"text_encoder_2/model.fp16.safetensors","blobId":"1a41ba6f6d67ebaaea453978332a941d0bc5dae5","size":1389382176,"lfs":{"sha256":"ec310df2af79c318e24d20511b601a591ca8cd4f1fce1d8dff822a356bcdb1f4","size":1389382176,"pointerSize":135}},{"rfilename":"text_encoder_2/model.onnx","blobId":"e0994f1a87d7c5be9cf9fd8ce800748042319a52","size":1042018,"lfs":{"sha256":"03856bf14b5d23b17eae141648ef98652e0a6d01b37c2fbb3fc0af5e9a1aff34","size":1042018,"pointerSize":132}},{"rfilename":"text_encoder_2/model.onnx_data","blobId":"ce1e69d7005d3742f687d96b922e32daf45a891f","size":2778639360,"lfs":{"sha256":"0c29d6ace4f348ccbcd302ab0d858994e64240a5b54d7c5ef431a88f2f287e2c","size":2778639360,"pointerSize":135}},{"rfilename":"text_encoder_2/model.safetensors","blobId":"203ca05f5c62a86d4961b479897c9eee1f1701dd","size":2778702264,"lfs":{"sha256":"fa5b2e6f4c2efc2d82e4b8312faec1a5540eabfc6415126c9a05c8436a530ef4","size":2778702264,"pointerSize":135}},{"rfilename":"tokenizer/merges.txt","blobId":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619},{"rfilename":"tokenizer/special_tokens_map.json","blobId":"1f467f3b057c46a21f88d9ab2f1070af9916c78c","size":586},{"rfilename":"tokenizer/tokenizer_config.json","blobId":"1bf819b6621086dc92428e2c9c8bbab39211fd55","size":704},{"rfilename":"tokenizer/vocab.json","blobId":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962},{"rfilename":"tokenizer_2/merges.txt","blobId":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619},{"rfilename":"tokenizer_2/special_tokens_map.json","blobId":"ae0c5be6f35217e51c4c000fd325d8de0294e99c","size":460},{"rfilename":"tokenizer_2/tokenizer_config.json","blobId":"bd2abe19377557ff5771584921f9b65fa041fef0","size":855},{"rfilename":"tokenizer_2/vocab.json","blobId":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962},{"rfilename":"unet/config.json","blobId":"220d7ae3e59ce3484c7eeb47ef2ac9db5097e29a","size":1776},{"rfilename":"unet/diffusion_pytorch_model.fp16.safetensors","blobId":"eb3be59c594d3ff91d7b52e689418897b6a1887e","size":5135149760,"lfs":{"sha256":"48fa46161a745f48d4054df3fe13804ee255486bca893403b60373c188fd1bdb","size":5135149760,"pointerSize":135}},{"rfilename":"unet/diffusion_pytorch_model.safetensors","blobId":"8bb9382a26cc05f6c7857b68406c54b0e1bcfdd9","size":10270077736,"lfs":{"sha256":"1968fc61aa8449ab3d3f9b9a05bce88c611760c01e0c4a7a3785911b546fe582","size":10270077736,"pointerSize":136}},{"rfilename":"unet/model.onnx","blobId":"cb00b7fe8722237955fd4f613366663005e12005","size":7291775,"lfs":{"sha256":"3771e8ac1315aab02b2c0183d3d10406ec4b1399414149751ee67b420fbc3a6d","size":7291775,"pointerSize":132}},{"rfilename":"unet/model.onnx_data","blobId":"0fa44a5ec9ce0f0d84010cfb1dd64e368b6c7b82","size":10269854720,"lfs":{"sha256":"479e70b02ced4312debca3a12506ac928f80b2ce95ad48755c9c789bd8e80ac2","size":10269854720,"pointerSize":136}},{"rfilename":"vae/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae/diffusion_pytorch_model.fp16.safetensors","blobId":"3a7c83dd497bf1669af2ea276080b72ed8ed45c0","size":167335342,"lfs":{"sha256":"02ee4bd18e5d16e7fe5fc5b85b4aefa2cba6db28897f674226c9d6ddd2f34f06","size":167335342,"pointerSize":134}},{"rfilename":"vae/diffusion_pytorch_model.safetensors","blobId":"6e43f25b75d7936044c8cad00d1ec9d7bf75a67b","size":334643268,"lfs":{"sha256":"716971093e3428c9156906fcbcc5500abf005317c5f4d3a5bb3fa28c45e1e071","size":334643268,"pointerSize":134}},{"rfilename":"vae_decoder/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae_decoder/model.onnx","blobId":"0a7100c22e53d565456988ffa7472d09b4ae4986","size":198093688,"lfs":{"sha256":"558225daaa98ae7e67594d10a1ac3e546c67b12094836f8788036aaba652e159","size":198093688,"pointerSize":134}},{"rfilename":"vae_encoder/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae_encoder/model.onnx","blobId":"9b886ba1b2b63f6ad9c1d5b8d2c809d3f62da06b","size":136775724,"lfs":{"sha256":"6be23fdf564e179787f66056a0fa94d489a1d88528d48d1bbef875166d1bd0bb","size":136775724,"pointerSize":134}}],"createdAt":"2023-11-27T15:19:11.000Z"}
|
|
"""
|
|
|
|
# same as above with fp16 files removed
|
|
RepoHFMetadata1_nofp16 = b"""
|
|
{"_id":"6564b36f4eb2f55240230f48","id":"stabilityai/sdxl-turbo","modelId":"stabilityai/sdxl-turbo","author":"test_author","sha":"f4b0486b498f84668e828044de1d0c8ba486e05b","lastModified":"2023-12-07T18:04:49.000Z","private":false,"disabled":false,"gated":false,"pipeline_tag":"text-to-image","tags":["diffusers","onnx","safetensors","text-to-image","license:other","has_space","diffusers:StableDiffusionXLPipeline","region:us"],"downloads":588989,"library_name":"diffusers","likes":1297,"model-index":null,"config":{"diffusers":{"class_name":"StableDiffusionXLPipeline"}},"cardData":{"pipeline_tag":"text-to-image","inference":false,"license":"other","license_name":"sai-nc-community","license_link":"https://huggingface.co/stabilityai/sdxl-turbo/blob/main/LICENSE.TXT"},"spaces":["radames/Real-Time-Latent-Consistency-Model","diffusers/unofficial-SDXL-Turbo-i2i-t2i","radames/Real-Time-Latent-Consistency-Model-Text-To-Image","Manjushri/SDXL-Turbo-Img2Img-CPU","latent-consistency/Real-Time-LCM-ControlNet-Lora-SD1.5","radames/Real-Time-SD-Turbo","baulab/ConceptSliders","Krebzonide/SDXL-Turbo-With-Refiner","cocktailpeanut/sdxl-turbo","latent-consistency/Real-Time-LCM-Text-to-Image-Lora-SD1.5","Ekimetrics/Guess-the-prompt","imatag/stable-signature-bzh","robo-bonobo/sdxl-turbo","esafwan/SDXL-Turbo","sub314xxl/unofficial-SDXL-Turbo-i2i-t2i","JoPmt/Txt2Img_SDXL_Trb","Manjushri/SDXL-Turbo-CPU","Omnibus/sdxl-turbo","daily-co/RealtimeSDWebRTC","Ashrafb/IIm2","PayPeer/SDXL-Turbo","coldn00dl3s/sdxl-turbo-demo-interface","jbilcke-hf/faster-image-server","Dorjzodovsuren/Real-Time-SD-Turbo","Geek7/models","HusseinHE/Magic","LouDogNation/Real-Time-Latent-Consistency-Model","RTLAI/SDXLTurbo","TogetherAI/sdxl-turbo","asdsteven/streamlit","hahahafofo/Qwen-Prompt-SDXL-Turbo","hillman2000hk/Real-Time-Latent-Consistency-Model","jensinjames/Real-Time-SD-Turbo","michaelj/vega-Img2Img-CPU","tsi-org/sdxl-turbo","tsi-org/pixio-turbo-xl","vhly/turbo-demo","vloikas/NEW-Mycelium"],"siblings":[{"rfilename":".gitattributes","blobId":"a6344aac8c09253b3b630fb776ae94478aa0275b","size":1519},{"rfilename":"LICENSE.TXT","blobId":"03fe74dc12ab9c5abf698bceb8ac40668787a937","size":7493},{"rfilename":"README.md","blobId":"ce7cdfb6d66b271e92fecf88940726310e5e9013","size":5545},{"rfilename":"image_quality_one_step.png","blobId":"13cb17a7934a33001f393d08f98504cbb2bc914f","size":203741},{"rfilename":"model_index.json","blobId":"f857cf2f828fff2ee319b1a47e6ce820e8affb9d","size":685},{"rfilename":"output_tile.jpg","blobId":"d5fce5ecd2ef568d689419271d9ffabfb0856c36","size":744087},{"rfilename":"prompt_alignment_one_step.png","blobId":"3490b19d78d804b8273b93e803f23a3b04689be3","size":204304},{"rfilename":"scheduler/scheduler_config.json","blobId":"0359d7abb0b9c7b4a433be2db87cefea03c06ea5","size":459},{"rfilename":"sd_xl_turbo_1.0.safetensors","blobId":"e35c7fd734789e0f9b3cf16839431216b86bef34","size":13875761366,"lfs":{"sha256":"2e58e3704b4c0831bf848e0507c9b5ff2cd8d007b8d0719dba3874156f631050","size":13875761366,"pointerSize":136}},{"rfilename":"text_encoder/config.json","blobId":"8e91c97936ad0b2c1356f03de8d47589b5232704","size":565},{"rfilename":"text_encoder/model.onnx","blobId":"447dc336b66ec45c07e90c45ef4a88c9ba6ed293","size":492587458,"lfs":{"sha256":"5522ae5f760e4864c20424c514cfa585cb4afb672b71b962f29a97c4f457383c","size":492587458,"pointerSize":134}},{"rfilename":"text_encoder/model.safetensors","blobId":"34cca545bfc07f566fa79345178b6db761f9d53b","size":492265168,"lfs":{"sha256":"778d02eb9e707c3fbaae0b67b79ea0d1399b52e624fb634f2f19375ae7c047c3","size":492265168,"pointerSize":134}},{"rfilename":"text_encoder_2/config.json","blobId":"f9e084535c55110233f44ccc6c7f9d0e1540f8be","size":575},{"rfilename":"text_encoder_2/model.onnx","blobId":"e0994f1a87d7c5be9cf9fd8ce800748042319a52","size":1042018,"lfs":{"sha256":"03856bf14b5d23b17eae141648ef98652e0a6d01b37c2fbb3fc0af5e9a1aff34","size":1042018,"pointerSize":132}},{"rfilename":"text_encoder_2/model.onnx_data","blobId":"ce1e69d7005d3742f687d96b922e32daf45a891f","size":2778639360,"lfs":{"sha256":"0c29d6ace4f348ccbcd302ab0d858994e64240a5b54d7c5ef431a88f2f287e2c","size":2778639360,"pointerSize":135}},{"rfilename":"text_encoder_2/model.safetensors","blobId":"203ca05f5c62a86d4961b479897c9eee1f1701dd","size":2778702264,"lfs":{"sha256":"fa5b2e6f4c2efc2d82e4b8312faec1a5540eabfc6415126c9a05c8436a530ef4","size":2778702264,"pointerSize":135}},{"rfilename":"tokenizer/merges.txt","blobId":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619},{"rfilename":"tokenizer/special_tokens_map.json","blobId":"1f467f3b057c46a21f88d9ab2f1070af9916c78c","size":586},{"rfilename":"tokenizer/tokenizer_config.json","blobId":"1bf819b6621086dc92428e2c9c8bbab39211fd55","size":704},{"rfilename":"tokenizer/vocab.json","blobId":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962},{"rfilename":"tokenizer_2/merges.txt","blobId":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619},{"rfilename":"tokenizer_2/special_tokens_map.json","blobId":"ae0c5be6f35217e51c4c000fd325d8de0294e99c","size":460},{"rfilename":"tokenizer_2/tokenizer_config.json","blobId":"bd2abe19377557ff5771584921f9b65fa041fef0","size":855},{"rfilename":"tokenizer_2/vocab.json","blobId":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962},{"rfilename":"unet/config.json","blobId":"220d7ae3e59ce3484c7eeb47ef2ac9db5097e29a","size":1776},{"rfilename":"unet/diffusion_pytorch_model.safetensors","blobId":"8bb9382a26cc05f6c7857b68406c54b0e1bcfdd9","size":10270077736,"lfs":{"sha256":"1968fc61aa8449ab3d3f9b9a05bce88c611760c01e0c4a7a3785911b546fe582","size":10270077736,"pointerSize":136}},{"rfilename":"unet/model.onnx","blobId":"cb00b7fe8722237955fd4f613366663005e12005","size":7291775,"lfs":{"sha256":"3771e8ac1315aab02b2c0183d3d10406ec4b1399414149751ee67b420fbc3a6d","size":7291775,"pointerSize":132}},{"rfilename":"unet/model.onnx_data","blobId":"0fa44a5ec9ce0f0d84010cfb1dd64e368b6c7b82","size":10269854720,"lfs":{"sha256":"479e70b02ced4312debca3a12506ac928f80b2ce95ad48755c9c789bd8e80ac2","size":10269854720,"pointerSize":136}},{"rfilename":"vae/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae/diffusion_pytorch_model.safetensors","blobId":"6e43f25b75d7936044c8cad00d1ec9d7bf75a67b","size":334643268,"lfs":{"sha256":"716971093e3428c9156906fcbcc5500abf005317c5f4d3a5bb3fa28c45e1e071","size":334643268,"pointerSize":134}},{"rfilename":"vae_decoder/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae_decoder/model.onnx","blobId":"0a7100c22e53d565456988ffa7472d09b4ae4986","size":198093688,"lfs":{"sha256":"558225daaa98ae7e67594d10a1ac3e546c67b12094836f8788036aaba652e159","size":198093688,"pointerSize":134}},{"rfilename":"vae_encoder/config.json","blobId":"ae14cf90e29b12134a53383691c98c73dee5d422","size":607},{"rfilename":"vae_encoder/model.onnx","blobId":"9b886ba1b2b63f6ad9c1d5b8d2c809d3f62da06b","size":136775724,"lfs":{"sha256":"6be23fdf564e179787f66056a0fa94d489a1d88528d48d1bbef875166d1bd0bb","size":136775724,"pointerSize":134}}],"createdAt":"2023-11-27T15:19:11.000Z"}
|
|
"""
|
|
|
|
# Copied from https://huggingface.co/stabilityai/sdxl-turbo/resolve/main/model_index.json
|
|
RepoHFModelJson1 = b"""
|
|
{'_class_name': 'StableDiffusionXLPipeline', '_diffusers_version': '0.24.0.dev0', 'feature_extractor': [None, None], 'force_zeros_for_empty_prompt': True, 'image_encoder': [None, None], 'scheduler': ['diffusers', 'EulerAncestralDiscreteScheduler'], 'text_encoder': ['transformers', 'CLIPTextModel'], 'text_encoder_2': ['transformers', 'CLIPTextModelWithProjection'], 'tokenizer': ['transformers', 'CLIPTokenizer'], 'tokenizer_2': ['transformers', 'CLIPTokenizer'], 'unet': ['diffusers', 'UNet2DConditionModel'], 'vae': ['diffusers', 'AutoencoderKL']}
|
|
"""
|
|
|
|
# copied from https://civitai.com/api/v1/model-versions/242807
|
|
# Yeah, this is ridiculously bloated, but that's what you get.
|
|
RepoCivitaiVersionMetadata1 = b"""
|
|
{"id":242807,"modelId":215485,"name":"v1-128dim","createdAt":"2023-11-29T01:21:22.372Z","updatedAt":"2023-12-16T17:46:14.313Z","status":"Published","publishedAt":"2023-11-29T01:28:10.937Z","trainedWords":[],"trainingStatus":null,"trainingDetails":null,"baseModel":"SDXL Turbo","baseModelType":null,"earlyAccessTimeFrame":0,"description":"<p>v1: First version(128 dim)</p>","stats":{"downloadCount":2586,"ratingCount":2,"rating":5},"model":{"name":"SDXL Turbo-LoRA-Stable Diffusion XL faster than light","type":"LORA","nsfw":false,"poi":false},"files":[{"id":187907,"sizeKB":768888.859375,"name":"sd_xl_turbo_lora_v1.safetensors","type":"Model","metadata":{"fp":null,"size":null,"format":"SafeTensor"},"pickleScanResult":"Success","pickleScanMessage":"No Pickle imports","virusScanResult":"Success","virusScanMessage":null,"scannedAt":"2023-11-29T01:30:55.512Z","hashes":{"AutoV1":"6DC5F47A","AutoV2":"A599C42A9F","SHA256":"A599C42A9F4F7494C7F410DBC0FD432CF0242720509E9D52FA41AAC7A88D1B69","CRC32":"BF967A66","BLAKE3":"930E9A5CA9D31D2A35CE5A719120813F09CA927C61B5867C35CB547F9A279F62","AutoV3":"813EA5FB1C67F3CBF1C4DFF5D392EE5E073A2C41DCF3AB36CF6CDD872C4E7690"},"primary":true,"downloadUrl":"https://civitai.com/api/download/models/242807"}],"images":[{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/bbf39031-15e6-4f2c-b531-c2b5108a1a9d/width=450/4080480.jpeg","nsfw":"None","width":768,"height":1024,"hash":"U9G9BnR,GI%N00kC4-s:5soz4TMx?wV@^*o#","type":"image","metadata":{"hash":"U9G9BnR,GI%N00kC4-s:5soz4TMx?wV@^*o#","size":1098842,"width":768,"height":1024},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1 girl, snow","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06a2e73e-594c-4a07-b4a2-495922153589/width=450/4081177.jpeg","nsfw":"None","width":2304,"height":1187,"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","type":"image","metadata":{"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","size":3214188,"width":2304,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1-16dim":"1>\\"","sd_xl_turbo_lora_v1-64dim":"1>","sd_xl_turbo_lora_v1-128dim":"1>","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6ab69760-60bd-4247-817e-1da98e8089f8/width=450/4008748.jpeg","nsfw":"None","width":1536,"height":1187,"hash":"UbIX~%RnjFWA_2RjjZof?vWUozof~qbba#of","type":"image","metadata":{"hash":"UbIX~%RnjFWA_2RjjZof?vWUozof~qbba#of","size":1818611,"width":1536,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>1 girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"500ea30284","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1":"1>,\\"","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/fb1cb844-d642-4154-bf0c-2bef3af6dc5c/width=450/4009285.jpeg","nsfw":"None","width":768,"height":1024,"hash":"UKHxgQIT9u-oMxV?-=s.emxvskE0%%s;NHS2","type":"image","metadata":{"hash":"UKHxgQIT9u-oMxV?-=s.emxvskE0%%s;NHS2","size":972827,"width":768,"height":1024},"meta":{"Size":"768x1024","seed":2494203713,"Model":"juggernautXL_version6Rundiffusion","steps":4,"hashes":{"model":"1fe6c7ec54"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>1 girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"1fe6c7ec54","name":"juggernautXL_version6Rundiffusion","type":"model"}],"Model hash":"1fe6c7ec54","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6ba8c956-967f-4e7e-ab50-85d064206c6d/width=450/4024412.jpeg","nsfw":"None","width":768,"height":768,"hash":"U5Hn8c05kY-o^j0LE0V=1nIm^4Ip0r~4bMR-","type":"image","metadata":{"hash":"U5Hn8c05kY-o^j0LE0V=1nIm^4Ip0r~4bMR-","size":832579,"width":768,"height":768},"meta":null},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/659dc67e-3246-468e-a75e-996e6fa5e87e/width=450/4024238.jpeg","nsfw":"None","width":512,"height":512,"hash":"U9G*N=0iTM56;L9sw@I:0[=[$j=w00XT5Z=^","type":"image","metadata":{"hash":"U9G*N=0iTM56;L9sw@I:0[=[$j=w00XT5Z=^","size":384630,"width":512,"height":512},"meta":null},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/abc9110d-9e19-4cdc-b67d-46de66848bc4/width=450/4025914.jpeg","nsfw":"None","width":1024,"height":768,"hash":"UPGSGwbc00IU~qIV9Zozo~M{SO%L%gt7X9nh","type":"image","metadata":{"hash":"UPGSGwbc00IU~qIV9Zozo~M{SO%L%gt7X9nh","size":1165953,"width":1024,"height":768},"meta":{"VAE":"sdxl_vae.safetensors","Size":"1024x768","seed":149324391,"Model":"sdxlUnstableDiffusers_v4Grimorium","steps":4,"hashes":{"model":"565af52b8e"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>bag, black_hair, blue_sky, building, car, city, cloud, cloudy_sky, day, ground_vehicle, hat, house, lamppost, long_hair, motor_vehicle, mountain, mountainous_horizon, multiple_girls, outdoors, palm_tree, plant, potted_plant, road, road_sign, scenery, sky, snow, standing, street, tree","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"565af52b8e","name":"sdxlUnstableDiffusers_v4Grimorium","type":"model"}],"Model hash":"565af52b8e","negativePrompt":"(worst quality, low quality:1.4)","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}}],"downloadUrl":"https://civitai.com/api/download/models/242807"}
|
|
"""
|
|
|
|
# copied from https://civitai.com/api/v1/models/215485
|
|
# Yeah, this is ridiculously bloated, but that's what you get.
|
|
RepoCivitaiModelMetadata1 = b"""
|
|
{"id":215485,"name":"SDXL Turbo-LoRA-Stable Diffusion XL faster than light","description":"<p>v1: 128 dim</p><p>v1-64dim: half dimension, similar quality</p><p>v1-16dim: 94MB, s<span style=\\"color:rgb(193, 194, 197)\\">imilar quality(but different results in some prompts... I suggest the 128 dim or 64 dim version, but if you have a gpu with 6 GB vram try this version)</span></p><p>LoRA based on sdxl turbo, you can use the TURBO <u>with any stable diffusion xl checkpoint</u>, <u><span style=\\"color:rgb(250, 82, 82)\\">few seconds = 1 image(3 seconds with a nvidia rtx 3060 12 GB with 1024x768 resolution)</span></u></p><p>Tested on webui 1111 v1.6.0-2-g4afaaf8a</p><p>Tested on ComfyUI v1754 [777f6b15]: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://civitai.com/api/download/training-data/243508\\">workflow --download here--</a></p><p>(new version of workflow November 30, 2023 remove strange violet fog, keep sgm_uniform as scheduler and you can use every sampler)</p><p>1-Select your favourite stable diffusion xl checkpoint</p><p>2-Download this LoRA, use <span style=\\"color:rgb(250, 82, 82)\\">my workflow for ComfyUI</span> or any workflow with LoRA loader</p><p><span style=\\"color:rgb(250, 82, 82)\\">For webui 1111 write in the prompt <lora:sd_xl_turbo_lora_v1:1></span></p><p>3-Sampling method on webui 1111: <span style=\\"color:rgb(250, 82, 82)\\">LCM</span>(install animatediff extension if you don't see it in sampling list)</p><p>Sampling method on ComfyUI: <span style=\\"color:rgb(250, 82, 82)\\">all</span>, with the workflow of November 30, 2023</p><p>4-CFG Scale: from 1 to 2.5</p><p>5-Sampling steps: 4</p><p>Hugginface page: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://huggingface.co/shiroppo/sd_xl_turbo_lora\\">https://huggingface.co/shiroppo/sd_xl_turbo_lora</a></p><p></p><p><img src=\\"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/8fd7cd0a-2e22-4860-b09c-9c8f1568945e/width=525/8fd7cd0a-2e22-4860-b09c-9c8f1568945e.jpeg\\" /></p><p><img src=\\"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/ae9afee8-09ad-4edc-960e-745b37ef142d/width=525/ae9afee8-09ad-4edc-960e-745b37ef142d.jpeg\\" /></p><p>---</p><p><img src=\\"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/cb27bc41-53c9-4a3c-9d24-b60cea78de38/width=525/cb27bc41-53c9-4a3c-9d24-b60cea78de38.jpeg\\" /></p><p>Ko-fi: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://ko-fi.com/shiroppo\\">https://ko-fi.com/shiroppo</a></p><p>Patreon: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://www.patreon.com/Shiroppo\\">https://www.patreon.com/Shiroppo</a></p><p>Pixiv: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://www.pixiv.net/users/7058273\\">https://www.pixiv.net/users/7058273</a></p><p>Twitter: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://twitter.com/ShiroppoTwit\\">https://twitter.com/ShiroppoTwit</a></p><p>Instagram: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://www.instagram.com/shiroppo_real/\\">https://www.instagram.com/shiroppo_real/</a></p><p>My pages: <a target=\\"_blank\\" rel=\\"ugc\\" href=\\"https://solo.to/shiroppo\\">https://solo.to/shiroppo</a></p><p>---</p>","type":"LORA","poi":false,"nsfw":false,"allowNoCredit":false,"allowCommercialUse":["RentCivit"],"allowDerivatives":false,"allowDifferentLicense":true,"stats":{"downloadCount":4842,"favoriteCount":252,"commentCount":25,"ratingCount":4,"rating":5,"tippedAmountCount":2653},"creator":{"username":"test_author","image":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/d0b4b9d4-f32c-441a-99e1-9b2d73679bd7/width=96/shiroppo.jpeg"},"tags":["tool","turbo","sdxl turbo"],"modelVersions":[{"id":242807,"modelId":215485,"name":"v1-128dim","createdAt":"2023-11-29T01:21:22.372Z","updatedAt":"2023-12-16T17:46:14.313Z","status":"Published","publishedAt":"2023-11-29T01:28:10.937Z","trainedWords":[],"trainingStatus":null,"trainingDetails":null,"baseModel":"SDXL Turbo","baseModelType":null,"earlyAccessTimeFrame":0,"description":"<p>v1: First version(128 dim)</p>","vaeId":null,"stats":{"downloadCount":2586,"ratingCount":2,"rating":5},"files":[{"id":187907,"sizeKB":768888.859375,"name":"sd_xl_turbo_lora_v1.safetensors","type":"Model","metadata":{"fp":null,"size":null,"format":"SafeTensor"},"pickleScanResult":"Success","pickleScanMessage":"No Pickle imports","virusScanResult":"Success","virusScanMessage":null,"scannedAt":"2023-11-29T01:30:55.512Z","hashes":{"AutoV1":"6DC5F47A","AutoV2":"A599C42A9F","SHA256":"A599C42A9F4F7494C7F410DBC0FD432CF0242720509E9D52FA41AAC7A88D1B69","CRC32":"BF967A66","BLAKE3":"930E9A5CA9D31D2A35CE5A719120813F09CA927C61B5867C35CB547F9A279F62","AutoV3":"813EA5FB1C67F3CBF1C4DFF5D392EE5E073A2C41DCF3AB36CF6CDD872C4E7690"},"downloadUrl":"https://civitai.com/api/download/models/242807","primary":true}],"images":[{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/bbf39031-15e6-4f2c-b531-c2b5108a1a9d/width=450/4080480.jpeg","nsfw":"None","width":768,"height":1024,"hash":"U9G9BnR,GI%N00kC4-s:5soz4TMx?wV@^*o#","type":"image","metadata":{"hash":"U9G9BnR,GI%N00kC4-s:5soz4TMx?wV@^*o#","size":1098842,"width":768,"height":1024},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1 girl, snow","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06a2e73e-594c-4a07-b4a2-495922153589/width=450/4081177.jpeg","nsfw":"None","width":2304,"height":1187,"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","type":"image","metadata":{"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","size":3214188,"width":2304,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1-16dim":"1>\\"","sd_xl_turbo_lora_v1-64dim":"1>","sd_xl_turbo_lora_v1-128dim":"1>","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6ab69760-60bd-4247-817e-1da98e8089f8/width=450/4008748.jpeg","nsfw":"None","width":1536,"height":1187,"hash":"UbIX~%RnjFWA_2RjjZof?vWUozof~qbba#of","type":"image","metadata":{"hash":"UbIX~%RnjFWA_2RjjZof?vWUozof~qbba#of","size":1818611,"width":1536,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>1 girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"500ea30284","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1":"1>,\\"","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/fb1cb844-d642-4154-bf0c-2bef3af6dc5c/width=450/4009285.jpeg","nsfw":"None","width":768,"height":1024,"hash":"UKHxgQIT9u-oMxV?-=s.emxvskE0%%s;NHS2","type":"image","metadata":{"hash":"UKHxgQIT9u-oMxV?-=s.emxvskE0%%s;NHS2","size":972827,"width":768,"height":1024},"meta":{"Size":"768x1024","seed":2494203713,"Model":"juggernautXL_version6Rundiffusion","steps":4,"hashes":{"model":"1fe6c7ec54"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>1 girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"1fe6c7ec54","name":"juggernautXL_version6Rundiffusion","type":"model"}],"Model hash":"1fe6c7ec54","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6ba8c956-967f-4e7e-ab50-85d064206c6d/width=450/4024412.jpeg","nsfw":"None","width":768,"height":768,"hash":"U5Hn8c05kY-o^j0LE0V=1nIm^4Ip0r~4bMR-","type":"image","metadata":{"hash":"U5Hn8c05kY-o^j0LE0V=1nIm^4Ip0r~4bMR-","size":832579,"width":768,"height":768},"meta":null},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/659dc67e-3246-468e-a75e-996e6fa5e87e/width=450/4024238.jpeg","nsfw":"None","width":512,"height":512,"hash":"U9G*N=0iTM56;L9sw@I:0[=[$j=w00XT5Z=^","type":"image","metadata":{"hash":"U9G*N=0iTM56;L9sw@I:0[=[$j=w00XT5Z=^","size":384630,"width":512,"height":512},"meta":null},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/abc9110d-9e19-4cdc-b67d-46de66848bc4/width=450/4025914.jpeg","nsfw":"None","width":1024,"height":768,"hash":"UPGSGwbc00IU~qIV9Zozo~M{SO%L%gt7X9nh","type":"image","metadata":{"hash":"UPGSGwbc00IU~qIV9Zozo~M{SO%L%gt7X9nh","size":1165953,"width":1024,"height":768},"meta":{"VAE":"sdxl_vae.safetensors","Size":"1024x768","seed":149324391,"Model":"sdxlUnstableDiffusers_v4Grimorium","steps":4,"hashes":{"model":"565af52b8e"},"prompt":"<lora:sd_xl_turbo_lora_v1:1>bag, black_hair, blue_sky, building, car, city, cloud, cloudy_sky, day, ground_vehicle, hat, house, lamppost, long_hair, motor_vehicle, mountain, mountainous_horizon, multiple_girls, outdoors, palm_tree, plant, potted_plant, road, road_sign, scenery, sky, snow, standing, street, tree","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"name":"sd_xl_turbo_lora_v1","type":"lora","weight":1},{"hash":"565af52b8e","name":"sdxlUnstableDiffusers_v4Grimorium","type":"model"}],"Model hash":"565af52b8e","negativePrompt":"(worst quality, low quality:1.4)","\\"sd_xl_turbo_lora_v1":"813ea5fb1c67\\""}}],"downloadUrl":"https://civitai.com/api/download/models/242807"},{"id":243508,"modelId":215485,"name":"v1-64dim","createdAt":"2023-11-29T14:44:26.562Z","updatedAt":"2023-12-16T17:46:36.863Z","status":"Published","publishedAt":"2023-11-29T14:49:26.079Z","trainedWords":[],"trainingStatus":null,"trainingDetails":null,"baseModel":"SDXL 1.0","baseModelType":null,"earlyAccessTimeFrame":0,"description":"<p>v1-64dim: half dimension, similar quality</p>","vaeId":null,"stats":{"downloadCount":2046,"ratingCount":2,"rating":5},"files":[{"id":189448,"sizeKB":1.4140625,"name":"sdxl_turbo_lora_workflow_comfyui_v1.zip","type":"Training Data","metadata":{"fp":null,"size":null,"format":"Other"},"pickleScanResult":"Success","pickleScanMessage":"No Pickle imports","virusScanResult":"Success","virusScanMessage":null,"scannedAt":"2023-11-30T15:45:36.773Z","hashes":{"AutoV2":"52DE4E494B","SHA256":"52DE4E494B919073071B6BDCA5E6A6B58B28267F8508646A7CA0D29230991B1D","CRC32":"A8B62FA5","BLAKE3":"AFE94AE62DBFAFDBA9497BBCB8F4D9E08327E51277A460AA8017222BEF530249"},"downloadUrl":"https://civitai.com/api/download/models/243508?type=Training%20Data"},{"id":188487,"sizeKB":384606.671875,"name":"sd_xl_turbo_lora_v1-64dim.safetensors","type":"Model","metadata":{"fp":null,"size":null,"format":"SafeTensor"},"pickleScanResult":"Success","pickleScanMessage":"No Pickle imports","virusScanResult":"Success","virusScanMessage":null,"scannedAt":"2023-11-29T14:51:02.892Z","hashes":{"AutoV1":"F128131B","AutoV2":"FE223AFC1A","SHA256":"FE223AFC1A165834BDD9CF2D3BFC82374468DED5F3EA8B6AB8018F02F380C557","CRC32":"8303EE37","BLAKE3":"8E3616A9114A8180A904B3FFFABD90B19A57ED3E8CB71CBE232737C34C24EC90","AutoV3":"D60E731380E2C401791D30021EC63E17B12978FCC2DBC9097FB1B735B6BFEF9F"},"downloadUrl":"https://civitai.com/api/download/models/243508","primary":true}],"images":[{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/d883f87d-5267-472a-827e-f0c554f5e081/width=450/4080474.jpeg","nsfw":"None","width":768,"height":1024,"hash":"U9GIp7NKL3xu00xu4-xa5tR*8wMx?wV[^*S2","type":"image","metadata":{"hash":"U9GIp7NKL3xu00xu4-xa5tR*8wMx?wV[^*S2","size":1059564,"width":768,"height":1024},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-64dim:1>1 girl, snow","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1-64dim":"d60e731380e2\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/aa9f243d-b695-476d-a50a-b88a38ff8134/width=450/4081183.jpeg","nsfw":"None","width":2304,"height":1187,"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","type":"image","metadata":{"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","size":3214188,"width":2304,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1-16dim":"1>\\"","sd_xl_turbo_lora_v1-64dim":"1>","sd_xl_turbo_lora_v1-128dim":"1>","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}}],"downloadUrl":"https://civitai.com/api/download/models/243508"},{"id":245733,"modelId":215485,"name":"v1-16dim","createdAt":"2023-12-01T12:08:27.252Z","updatedAt":"2023-12-16T17:46:52.924Z","status":"Published","publishedAt":"2023-12-01T12:09:51.046Z","trainedWords":[],"trainingStatus":null,"trainingDetails":null,"baseModel":"SD 1.5","baseModelType":null,"earlyAccessTimeFrame":0,"description":"<p>94MB, similar quality(but different results in some prompts)</p>","vaeId":null,"stats":{"downloadCount":210,"ratingCount":0,"rating":0},"files":[{"id":190274,"sizeKB":96392.859375,"name":"sd_xl_turbo_lora_v1-16dim.safetensors","type":"Model","metadata":{"fp":null,"size":null,"format":"SafeTensor"},"pickleScanResult":"Success","pickleScanMessage":"No Pickle imports","virusScanResult":"Success","virusScanMessage":null,"scannedAt":"2023-12-01T13:00:52.623Z","hashes":{"AutoV1":"D079F12E","AutoV2":"65605FC5C3","SHA256":"65605FC5C31CFC3E35C90CEC1FCA493A74D438C357327636750591C79A0B6EB9","CRC32":"4AEBF056","BLAKE3":"6C83D51D57C21185D9AA8012D240999DD42CBF5FF1BA6C8BABB90C77FFEE8DF0","AutoV3":"9CBD5006993C2F4FF4BED107FED487900754A25816D34883FD2BA3185D7DF0BD"},"downloadUrl":"https://civitai.com/api/download/models/245733","primary":true}],"images":[{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/bc1f930d-e499-44ca-9d29-1bab91b568ff/width=450/4080469.jpeg","nsfw":"None","width":768,"height":1024,"hash":"UBHLlIX9u6aK00%M9Z%NE,M{DNIT.SoM%1Io","type":"image","metadata":{"hash":"UBHLlIX9u6aK00%M9Z%NE,M{DNIT.SoM%1Io","size":1045153,"width":768,"height":1024},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-16dim:1>1 girl, snow","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"clipSkip":2,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, bad_prompt_version2, jpeg artifacts, signature, watermark, text, error, missing fingers","\\"sd_xl_turbo_lora_v1-16dim":"9cbd5006993c\\""}},{"url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/2f0149fc-43f6-40af-9aae-dc27956cf293/width=450/4081196.jpeg","nsfw":"None","width":2304,"height":1187,"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","type":"image","metadata":{"hash":"UeIOY5V@j[ax?bj@ayj[.7ogj@kC_Nfkj[j]","size":3214188,"width":2304,"height":1187},"meta":{"VAE":"sd_xl_base_1.0_fixvae_fp16.vae.safetensors","Size":"768x1024","seed":2494203713,"Model":"sd_xl_base_1.0","steps":4,"Script":"X/Y/Z plot","X Type":"Prompt S/R","hashes":{"model":"31e35c80fc"},"prompt":"<lora:sd_xl_turbo_lora_v1-128dim:1>1girl, wind","Version":"v1.6.0-2-g4afaaf8a","sampler":"LCM","VAE hash":"235745af8d","cfgScale":1.5,"resources":[{"hash":"31e35c80fc","name":"sd_xl_base_1.0","type":"model"}],"Model hash":"31e35c80fc","negativePrompt":"blurry, blurry_image, Lowres, Low_resolution, Low_picture_quality, Low_picture_anime, extra_anatomy, extra_body, extra_navel, extra_face, extra_eyes, extra_chest, extra_nipples, extra_hips, extra_arms, extra_hands, extra_fingers, extra_legs, extra_feet, extra_toe, missing_anatomy, missing_body, missing_navel, missing_face, missing_eyes, missing_chest, missing_nipples, missing_hips, missing_arms, missing_hands, missing_fingers, missing_legs, missing_feet, missing_toe, sketch, sketching, (worst quality:2), (low quality:2), ((monochrome)), ((grayscale)), inpainting, HDR, jpeg artifacts, signature, watermark, text, error, missing fingers","sd_xl_turbo_lora_v1-16dim":"1>\\"","sd_xl_turbo_lora_v1-64dim":"1>","sd_xl_turbo_lora_v1-128dim":"1>","\\"sd_xl_turbo_lora_v1-128dim":"813ea5fb1c67\\""}}],"downloadUrl":"https://civitai.com/api/download/models/245733"}]}
|
|
"""
|
|
|
|
# HF Metadata for testing heuristic import of a TI from HuggingFace
|
|
HFTestLoraMetadata = b"""
|
|
{"_id":"65bef127e4afda82b95e2f68","id":"InvokeAI-test/textual_inversion_tests","modelId":"InvokeAI-test/textual_inversion_tests","author":"InvokeAI-test","sha":"b4221947b01eb61658972c43e33250820d8e3411","lastModified":"2024-02-06T00:51:36.000Z","private":false,"disabled":false,"gated":false,"tags":["textual_inversion"],"downloads":2137,"library_name":"diffusers","likes":1,"cardData":{"license":"creativeml-openrail-m","base_model":"stabilityai/stable-diffusion-xl-base-1.0","tags":["stable-diffusion","stable-diffusion-diffusers","text-to-image","diffusers","textual_inversion"],"inference":true},"siblings":[{"rfilename":"learned_embeds-steps-1000.safetensors","blobId":"7759028f0b22f52eba74e0f50c8cd5d61ffb9c68","size":3184,"lfs":{"sha256":"f368050465cd473785298808c37abd17b98e5f532c144cc1be1f5e897092e67f","size":3184,"pointerSize":129}}],"createdAt":"2024-02-04T02:06:31.000Z"}
|
|
"""
|