force refresh tqdm before close
diff --git a/modules/shared.py b/modules/shared.py
index 2fb9e3b5ada..f28a12ccc31 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -714,6 +714,7 @@ def updateTotal(self, new_total):
 
     def clear(self):
         if self._tqdm is not None:
+            self._tqdm.refresh()
             self._tqdm.close()
             self._tqdm = None
 

trivial pr to fix a bug where console tqdm total progress bar can be left ~90% upon completion of all operations.