a few adjustments

- fix unused variables and f-strings found by pyflakes
- use global_converted_ckpts_dir() to find location of diffusers
- fixed bug in model_manager that was causing the description of converted
  models to read "Optimized version of {model_name}'
This commit is contained in:
Lincoln Stein
2023-02-12 17:20:13 -05:00
parent b87f7b1129
commit e561d19206
3 changed files with 11 additions and 12 deletions

View File

@ -759,7 +759,7 @@ class ModelManager(object):
return
model_name = model_name or diffusers_path.name
model_description = model_description or "Optimized version of {model_name}"
model_description = model_description or f"Optimized version of {model_name}"
print(f">> Optimizing {model_name} (30-60s)")
try:
# By passing the specified VAE too the conversion function, the autoencoder