mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-16 18:32:25 +01:00
Don't force the user to 'low' VRAM usage automatically, if their GPU is less than 4 GB of VRAM. We need a better way to set 'low' as the default in the UI, but the user should be able to override it if they want
This commit is contained in:
parent
5537102fd3
commit
0332cc8cb3
@ -118,16 +118,8 @@ def resolve_model_paths(task_data: TaskData):
|
||||
|
||||
def set_vram_optimizations(context: Context):
|
||||
config = app.getConfig()
|
||||
|
||||
max_usage_level = device_manager.get_max_vram_usage_level(context.device)
|
||||
vram_usage_level = config.get('vram_usage_level', 'balanced')
|
||||
|
||||
v = {'low': 0, 'balanced': 1, 'high': 2}
|
||||
if v[vram_usage_level] > v[max_usage_level]:
|
||||
log.error(f'Requested GPU Memory Usage level ({vram_usage_level}) is higher than what is ' + \
|
||||
f'possible ({max_usage_level}) on this device ({context.device}). Using "{max_usage_level}" instead')
|
||||
vram_usage_level = max_usage_level
|
||||
|
||||
if vram_usage_level != context.vram_usage_level:
|
||||
context.vram_usage_level = vram_usage_level
|
||||
return True
|
||||
|
@ -101,7 +101,7 @@ var PARAMETERS = [
|
||||
note: "Faster performance requires more GPU memory (VRAM)<br/><br/>" +
|
||||
"<b>Balanced:</b> nearly as fast as High, much lower VRAM usage<br/>" +
|
||||
"<b>High:</b> fastest, maximum GPU memory usage</br>" +
|
||||
"<b>Low:</b> slowest, force-used for GPUs with 3 to 4 GB memory",
|
||||
"<b>Low:</b> slowest, recommended for GPUs with 3 to 4 GB memory",
|
||||
icon: "fa-forward",
|
||||
default: "balanced",
|
||||
options: [
|
||||
|
Loading…
Reference in New Issue
Block a user