clear prompt cache for training
This commit is contained in:
parent
c552efe659
commit
96ba683181
@ -62,6 +62,7 @@ class DreamBooth:
|
|||||||
) # fmt: off
|
) # fmt: off
|
||||||
image.save(path=training_state.get_current_validation_image_path(training_spec))
|
image.save(path=training_state.get_current_validation_image_path(training_spec))
|
||||||
del image
|
del image
|
||||||
|
flux.prompt_cache = {}
|
||||||
|
|
||||||
# Save checkpoint periodically
|
# Save checkpoint periodically
|
||||||
if training_state.should_save(training_spec):
|
if training_state.should_save(training_spec):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user