Skip to content

Commit

Permalink
fix save best after set_text is called
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Apr 3, 2021
1 parent b014b44 commit 056e6fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions big_sleep/big_sleep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion big_sleep/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.8.4'
__version__ = '0.8.5'

0 comments on commit 056e6fd

Please sign in to comment.