This commit is contained in:
Lincoln Stein 2023-08-24 19:14:21 -04:00 committed by Kent Keirsey
parent 84bf2a03e9
commit f9d2bcce04

View File

@ -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)