Skip to content

Commit

Permalink
vae cache refresh during training should not treat delete failures as…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
bghira committed Jan 24, 2025
1 parent 7afa5f0 commit 557aa09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpers/caching/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,8 @@ def clear_cache(self):
try:
future.result()
except Exception as e:
logger.error(f"Error deleting file {filename}: {e}")
self.debug_log(f"Error traceback: {traceback.format_exc()}")
raise e
logger.debug(f"Error deleting file {filename}", e)

# Clear the StateTracker list of VAE objects:
StateTracker.set_vae_cache_files([], data_backend_id=self.id)

Expand Down

0 comments on commit 557aa09

Please sign in to comment.