properly load/save 'Use same choices' infotext (#2147)

* save 'Use same choices' to infotext, and load
* reload models as needed for batch iterations
This commit is contained in:
DenOfEquity
2024-10-22 16:34:40 +01:00
committed by GitHub
parent 518e3cdbd5
commit 0c97a5347a
2 changed files with 10 additions and 2 deletions

View File

@@ -456,6 +456,12 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
if sorted(modules) != sorted(basename_modules):
res['VAE/TE'] = modules
# if 'Use same choices' was the selection for Hires VAE / Text Encoder, it will be the only option written
# but will not have matched the known modules, so will not be in hr_modules
if 'Hires Module 1' in res:
if res['Hires Module 1'] == 'Use same choices':
hr_modules = ['Use same choices']
res['Hires VAE/TE'] = hr_modules
return res