Update renovation.py
Browse files- renovation.py +1 -1
renovation.py
CHANGED
@@ -81,7 +81,7 @@ class Renovations(datasets.GeneratorBasedBuilder):
|
|
81 |
files = glob.glob(path + '/*.jpeg', recursive=True)
|
82 |
all_files_and_labels.extend((file, label) for file in files)
|
83 |
|
84 |
-
random.seed(
|
85 |
random.shuffle(all_files_and_labels)
|
86 |
|
87 |
num_files = len(all_files_and_labels)
|
|
|
81 |
files = glob.glob(path + '/*.jpeg', recursive=True)
|
82 |
all_files_and_labels.extend((file, label) for file in files)
|
83 |
|
84 |
+
random.seed(43) # ensure reproducibility
|
85 |
random.shuffle(all_files_and_labels)
|
86 |
|
87 |
num_files = len(all_files_and_labels)
|