mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2024-12-24 23:11:12 -08:00
61472cdaf7
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
|