From 056e6fd00db3ac5c4b9a915d1086a68ae2586e6f Mon Sep 17 00:00:00 2001 From: Phil Wang Date: Sat, 3 Apr 2021 14:59:57 -0700 Subject: [PATCH] fix save best after set_text is called --- big_sleep/big_sleep.py | 1 + big_sleep/version.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/big_sleep/big_sleep.py b/big_sleep/big_sleep.py index 7a396af..a7dc2ce 100644 --- a/big_sleep/big_sleep.py +++ b/big_sleep/big_sleep.py @@ -421,6 +421,7 @@ def encode_max_and_min(self, text, img=None, encoding=None, text_min=""): self.encode_multiple_phrases(text_min, img=img, encoding=encoding, text_type="min") def set_clip_encoding(self, text=None, img=None, encoding=None, text_min=""): + self.current_best_score = 0 self.text = text self.text_min = text_min diff --git a/big_sleep/version.py b/big_sleep/version.py index 21320a8..73f8315 100644 --- a/big_sleep/version.py +++ b/big_sleep/version.py @@ -1 +1 @@ -__version__ = '0.8.4' +__version__ = '0.8.5'