mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-19 21:13:20 -07:00
refactoring
This commit is contained in:
parent
246129a964
commit
8153e90ba3
13 changed files with 80 additions and 186 deletions
15
DFLIMG/DFLIMG.py
Normal file
15
DFLIMG/DFLIMG.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from pathlib import Path
|
||||
|
||||
from .DFLJPG import DFLJPG
|
||||
from .DFLPNG import DFLPNG
|
||||
|
||||
class DFLIMG():
|
||||
|
||||
@staticmethod
|
||||
def load(filepath, loader_func=None):
|
||||
if filepath.suffix == '.png':
|
||||
return DFLPNG.load( str(filepath), loader_func=loader_func )
|
||||
elif filepath.suffix == '.jpg':
|
||||
return DFLJPG.load ( str(filepath), loader_func=loader_func )
|
||||
else:
|
||||
return None
|
Loading…
Add table
Add a link
Reference in a new issue