Revert "Fix ruff linter (#137)" (#143)

This reverts commit 6b3ad64388.
This commit is contained in:
Chenlei Hu
2024-02-09 02:24:04 +00:00
committed by GitHub
parent b49742354d
commit 388ca351f4
18 changed files with 39 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ def prepare_free_memory(aggressive=False):
model_management.unload_all_models()
print('Upscale script freed all memory.')
return
model_management.free_memory(memory_required=1024*1024*3, device=model_management.get_torch_device())
print('Upscale script freed memory successfully.')