Skip to content

Commit

Permalink
raise original error if error is occured in checking latents
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed May 12, 2024
1 parent 7802093 commit 3701507
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2136,9 +2136,8 @@ def is_disk_cached_latents_is_expected(reso, npz_path: str, flip_aug: bool):
if npz["latents_flipped"].shape[1:3] != expected_latents_size:
return False
except Exception as e:
print(npz_path)
print(e)
return False
logger.error(f"Error loading file: {npz_path}")
raise e

return True

Expand Down

0 comments on commit 3701507

Please sign in to comment.