Filter out items with errors
This commit is contained in:
parent
f0e8ee55df
commit
e6d1096637
|
@ -166,7 +166,7 @@ class DataLoaderMultiAspect():
|
|||
|
||||
print (f" * DLMA: {len(items)} images loaded from {len(image_paths)} files")
|
||||
|
||||
self.prepared_train_data = items
|
||||
self.prepared_train_data = [item for item in items if item.error is None]
|
||||
random.Random(self.seed).shuffle(self.prepared_train_data)
|
||||
self.__report_errors(items)
|
||||
|
||||
|
|
Loading…
Reference in New Issue