diff --git a/invokeai/backend/model_manager/metadata/fetch/civitai.py b/invokeai/backend/model_manager/metadata/fetch/civitai.py index 7991f6a748..393b7552ad 100644 --- a/invokeai/backend/model_manager/metadata/fetch/civitai.py +++ b/invokeai/backend/model_manager/metadata/fetch/civitai.py @@ -160,7 +160,7 @@ class CivitaiMetadataFetch(ModelMetadataFetchBase): nsfw=model_json["nsfw"], restrictions=LicenseRestrictions( AllowNoCredit=model_json["allowNoCredit"], - AllowCommercialUse=CommercialUsage(model_json["allowCommercialUse"]), + AllowCommercialUse={CommercialUsage(x) for x in model_json["allowCommercialUse"]}, AllowDerivatives=model_json["allowDerivatives"], AllowDifferentLicense=model_json["allowDifferentLicense"], ), diff --git a/invokeai/backend/model_manager/metadata/metadata_base.py b/invokeai/backend/model_manager/metadata/metadata_base.py index 6e410d8222..379369f9f5 100644 --- a/invokeai/backend/model_manager/metadata/metadata_base.py +++ b/invokeai/backend/model_manager/metadata/metadata_base.py @@ -54,8 +54,8 @@ class LicenseRestrictions(BaseModel): AllowDifferentLicense: bool = Field( description="if true, derivatives of this model be redistributed under a different license", default=False ) - AllowCommercialUse: Optional[CommercialUsage] = Field( - description="Type of commercial use allowed or 'No' if no commercial use is allowed.", default=None + AllowCommercialUse: Optional[Set[CommercialUsage] | CommercialUsage] = Field( + description="Type of commercial use allowed if no commercial use is allowed.", default=None ) @@ -142,7 +142,10 @@ class CivitaiMetadata(ModelMetadataWithFiles): if self.restrictions.AllowCommercialUse is None: return False else: - return self.restrictions.AllowCommercialUse != CommercialUsage("None") + # accommodate schema change + acu = self.restrictions.AllowCommercialUse + commercial_usage = acu if isinstance(acu, set) else {acu} + return CommercialUsage.No not in commercial_usage @property def allow_derivatives(self) -> bool: diff --git a/tests/backend/model_manager/model_metadata/metadata_examples.py b/tests/backend/model_manager/model_metadata/metadata_examples.py index 1c633f4a62..ef1c1e446d 100644 --- a/tests/backend/model_manager/model_metadata/metadata_examples.py +++ b/tests/backend/model_manager/model_metadata/metadata_examples.py @@ -23,5 +23,5 @@ RepoCivitaiVersionMetadata1 = b""" # 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":"

v1: 128 dim

v1-64dim: half dimension, similar quality

v1-16dim: 94MB, similar 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)

LoRA based on sdxl turbo, you can use the TURBO with any stable diffusion xl checkpoint, few seconds = 1 image(3 seconds with a nvidia rtx 3060 12 GB with 1024x768 resolution)

Tested on webui 1111 v1.6.0-2-g4afaaf8a

Tested on ComfyUI v1754 [777f6b15]: workflow --download here--

(new version of workflow November 30, 2023 remove strange violet fog, keep sgm_uniform as scheduler and you can use every sampler)

1-Select your favourite stable diffusion xl checkpoint

2-Download this LoRA, use my workflow for ComfyUI or any workflow with LoRA loader

For webui 1111 write in the prompt <lora:sd_xl_turbo_lora_v1:1>

3-Sampling method on webui 1111: LCM(install animatediff extension if you don't see it in sampling list)

Sampling method on ComfyUI: all, with the workflow of November 30, 2023

4-CFG Scale: from 1 to 2.5

5-Sampling steps: 4

Hugginface page: https://huggingface.co/shiroppo/sd_xl_turbo_lora

---

Ko-fi: https://ko-fi.com/shiroppo

Patreon: https://www.patreon.com/Shiroppo

Pixiv: https://www.pixiv.net/users/7058273

Twitter: https://twitter.com/ShiroppoTwit

Instagram: https://www.instagram.com/shiroppo_real/

My pages: https://solo.to/shiroppo

---

","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":"

v1: First version(128 dim)

","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":"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":"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":"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":"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":"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":"

v1-64dim: half dimension, similar quality

","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":"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":"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":"

94MB, similar quality(but different results in some prompts)

","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":"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":"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"}]} +{"id":215485,"name":"SDXL Turbo-LoRA-Stable Diffusion XL faster than light","description":"

v1: 128 dim

v1-64dim: half dimension, similar quality

v1-16dim: 94MB, similar 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)

LoRA based on sdxl turbo, you can use the TURBO with any stable diffusion xl checkpoint, few seconds = 1 image(3 seconds with a nvidia rtx 3060 12 GB with 1024x768 resolution)

Tested on webui 1111 v1.6.0-2-g4afaaf8a

Tested on ComfyUI v1754 [777f6b15]: workflow --download here--

(new version of workflow November 30, 2023 remove strange violet fog, keep sgm_uniform as scheduler and you can use every sampler)

1-Select your favourite stable diffusion xl checkpoint

2-Download this LoRA, use my workflow for ComfyUI or any workflow with LoRA loader

For webui 1111 write in the prompt <lora:sd_xl_turbo_lora_v1:1>

3-Sampling method on webui 1111: LCM(install animatediff extension if you don't see it in sampling list)

Sampling method on ComfyUI: all, with the workflow of November 30, 2023

4-CFG Scale: from 1 to 2.5

5-Sampling steps: 4

Hugginface page: https://huggingface.co/shiroppo/sd_xl_turbo_lora

---

Ko-fi: https://ko-fi.com/shiroppo

Patreon: https://www.patreon.com/Shiroppo

Pixiv: https://www.pixiv.net/users/7058273

Twitter: https://twitter.com/ShiroppoTwit

Instagram: https://www.instagram.com/shiroppo_real/

My pages: https://solo.to/shiroppo

---

","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":"

v1: First version(128 dim)

","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":"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":"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":"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":"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":"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":"

v1-64dim: half dimension, similar quality

","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":"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":"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":"

94MB, similar quality(but different results in some prompts)

","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":"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":"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"}]} """ diff --git a/tests/backend/model_manager/model_metadata/test_model_metadata.py b/tests/backend/model_manager/model_metadata/test_model_metadata.py index 09b18916d3..f7f2603e7c 100644 --- a/tests/backend/model_manager/model_metadata/test_model_metadata.py +++ b/tests/backend/model_manager/model_metadata/test_model_metadata.py @@ -133,7 +133,7 @@ def test_metadata_civitai_fetch(mm2_session: Session) -> None: assert metadata.id == 215485 assert metadata.author == "test_author" # note that this is not the same as the original from Civitai assert metadata.allow_commercial_use # changed to make sure we are reading locally not remotely - assert metadata.restrictions.AllowCommercialUse == CommercialUsage("RentCivit") + assert CommercialUsage("RentCivit") in metadata.restrictions.AllowCommercialUse assert metadata.version_id == 242807 assert metadata.tags == {"tool", "turbo", "sdxl turbo"}