Skip to content

Commit

Permalink
Merge pull request #391 from BaiMoHan/main
Browse files Browse the repository at this point in the history
fix: ndarray serialized & ignore save cn_image
  • Loading branch information
mrhan1993 authored Aug 6, 2024
2 parents b2aa7ac + 4bd21c6 commit e3ad26a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fooocusapi/sql_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def store_history(self, record: dict) -> None:
:param record:
:return:
"""
serialized_image_prompts = [
(cn_stop, cn_wight, cn_type)
for arr, cn_stop, cn_wight, cn_type in record['image_prompts']
]
record['image_prompts'] = serialized_image_prompts
self.session.add_all([GenerateRecord(**record)])
self.session.commit()

Expand Down

0 comments on commit e3ad26a

Please sign in to comment.