Merge pull request #136 from DanaCase/clear_prompt_cache

clear prompt cache for training
This commit is contained in:
Filip Strand 2025-03-05 07:30:16 +01:00 committed by GitHub
commit 552eb6a3bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,7 @@ class DreamBooth:
) # fmt: off
image.save(path=training_state.get_current_validation_image_path(training_spec))
del image
flux.prompt_cache = {}
# Save checkpoint periodically
if training_state.should_save(training_spec):