mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-03-12 20:42:45 -07:00
removed support of extracted(aligned) PNG faces. Use old builds to convert from PNG to JPG. fanseg model file in facelib/ is renamed
13 lines
281 B
Python
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
|