mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Modernize data loader, remove read image helper
This commit is contained in:
@@ -19,7 +19,7 @@ class DataLoaderVGG(TensorDataset):
|
||||
self.transforms = self.compose_transforms()
|
||||
|
||||
def __getitem__(self, index : int) -> Batch:
|
||||
source_image_path = self.image_paths.get(index)
|
||||
source_image_path = self.image_paths[index]
|
||||
|
||||
if random.random() > self.same_person_probability:
|
||||
return self.prepare_same_person(source_image_path)
|
||||
|
||||
Reference in New Issue
Block a user