1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix vae_encodings_fn hash in train_text_to_image_sdxl.py (#7171)

Update train_text_to_image_sdxl.py
This commit is contained in:
Quentin Lhoest
2024-03-01 12:26:54 +01:00
committed by GitHub
parent 64a8cd627a
commit 66f8bd6869

View File

@@ -895,7 +895,7 @@ def main(args):
# fingerprint used by the cache for the other processes to load the result
# details: https://github.com/huggingface/diffusers/pull/4038#discussion_r1266078401
new_fingerprint = Hasher.hash(args)
new_fingerprint_for_vae = Hasher.hash("vae")
new_fingerprint_for_vae = Hasher.hash(vae_path)
train_dataset = train_dataset.map(compute_embeddings_fn, batched=True, new_fingerprint=new_fingerprint)
train_dataset = train_dataset.map(
compute_vae_encodings_fn,