Skip to content

Commit

Permalink
Randomise bucket processing order for multi-node processing
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Sep 21, 2023
1 parent 029fffc commit 117c64a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/caching/vae.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os, torch, logging
from random import shuffle
from tqdm import tqdm
from pathlib import Path
from PIL import Image
Expand Down Expand Up @@ -190,7 +191,7 @@ def process_buckets(self, bucket_manager):
)

aspect_bucket_cache = bucket_manager.read_cache().copy()

shuffle(aspect_bucket_cache)
for bucket in aspect_bucket_cache:
relevant_files = [
f
Expand Down

0 comments on commit 117c64a

Please sign in to comment.