Update inference_v5_ensemble.py

This commit is contained in:
Anjok07 2022-04-17 15:39:50 -05:00 committed by GitHub
parent ae03754942
commit ef58d60482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,6 +501,14 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
_, bin_image = cv2.imencode('.jpg', image)
bin_image.tofile(f)
text_widget.write(base_text + 'Clearing CUDA Cache... ')
torch.cuda.empty_cache()
time.sleep(3)
text_widget.write('Done!\n')
text_widget.write(base_text + 'Completed Seperation!\n\n')
# Emsembling Outputs