mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
fix
This commit is contained in:
parent
7e0bdc0369
commit
eb63466baf
3 changed files with 25 additions and 20 deletions
|
@ -71,15 +71,11 @@ class SampleGeneratorFaceSkinSegDataset(SampleGeneratorBase):
|
|||
self.initialized = False
|
||||
|
||||
|
||||
dataset_path = root_path / 'XSegDataset'
|
||||
if not dataset_path.exists():
|
||||
raise ValueError(f'Unable to find {dataset_path}')
|
||||
|
||||
aligned_path = dataset_path /'aligned'
|
||||
aligned_path = root_path /'aligned'
|
||||
if not aligned_path.exists():
|
||||
raise ValueError(f'Unable to find {aligned_path}')
|
||||
|
||||
obstructions_path = dataset_path / 'obstructions'
|
||||
obstructions_path = root_path / 'obstructions'
|
||||
|
||||
obstructions_images_paths = pathex.get_image_paths(obstructions_path, image_extensions=['.png'], subdirs=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue