mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
blackify
This commit is contained in:
parent
84bf2a03e9
commit
f9d2bcce04
@ -608,13 +608,13 @@ https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENS
|
||||
new_opts.precision = PRECISION_CHOICES[self.precision.value[0]]
|
||||
new_opts.device = DEVICE_CHOICES[self.device.value[0]]
|
||||
new_opts.attention_type = ATTENTION_CHOICES[self.attention_type.value[0]]
|
||||
|
||||
|
||||
# some sort of bug in npyscreen?
|
||||
attention_slice_value = self.attention_slice_size.value
|
||||
if type(attention_slice_value) == list:
|
||||
attention_slice_value = attention_slice_value[0]
|
||||
new_opts.attention_slice_size = ATTENTION_SLICE_CHOICES[attention_slice_value]
|
||||
|
||||
|
||||
generation_options = [GENERATION_OPT_CHOICES[x] for x in self.generation_options.value]
|
||||
for v in GENERATION_OPT_CHOICES:
|
||||
setattr(new_opts, v, v in generation_options)
|
||||
|
Loading…
Reference in New Issue
Block a user