lora apply on gpu vs cpu settings option

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-03-31 15:53:21 -04:00
parent 0eaa2c0378
commit 5906eb6792
5 changed files with 27 additions and 13 deletions
+2 -1
View File
@@ -64,7 +64,8 @@ def download_civit_meta(model_path: str, model_id):
def download_civit_preview(model_path: str, preview_url: str):
ext = os.path.splitext(preview_url)[1]
preview_file = os.path.splitext(model_path)[0] + ext
if preview_file.endswith('.mp4'):
is_video = preview_file.lower().endswith('.mp4')
if is_video:
shared.log.warning(f'CivitAI download: url="{preview_url}" skip video')
return ''
if os.path.exists(preview_file):