DeepFaceLab/DFLIMG/DFLIMG.py
Colombo 61472cdaf7 global refactoring and fixes,
removed support of extracted(aligned) PNG faces. Use old builds to convert from PNG to JPG.

fanseg model file in facelib/ is renamed
2020-03-13 08:09:00 +04:00

13 lines
281 B
Python

from pathlib import Path
from .DFLJPG import DFLJPG
class DFLIMG():
@staticmethod
def load(filepath, loader_func=None):
if filepath.suffix == '.jpg':
return DFLJPG.load ( str(filepath), loader_func=loader_func )
else:
return None