fix flux download

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-10 17:54:42 -04:00
parent 286924c00a
commit 97de8ee5bf
+1 -1
View File
@@ -87,7 +87,7 @@ def guess_by_name(fn, current_guess):
elif 'chroma' in fn.lower():
return 'Chroma'
elif 'flux' in fn.lower() or 'flex.1' in fn.lower():
size = round(os.path.getsize(fn) / 1024 / 1024)
size = round(os.path.getsize(fn) / 1024 / 1024) if os.path.isfile(fn) else 0
if size > 11000 and size < 16000:
shared.log.warning(f'Model detected as FLUX UNET model, but attempting to load a base model: file="{fn}" size={size} MB')
return 'FLUX'