mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-16 10:03:41 -07:00
Added io support.
This commit is contained in:
parent
7439d5003e
commit
135384cc00
6 changed files with 209 additions and 1071 deletions
|
@ -1,7 +1,5 @@
|
|||
from .ModelBase import ModelBase
|
||||
|
||||
def import_model(model_class_name, use_bn=False):
|
||||
def import_model(model_class_name):
|
||||
module = __import__('Model_'+model_class_name, globals(), locals(), [], 1)
|
||||
if use_bn:
|
||||
return getattr(module, 'Model_bn')
|
||||
return getattr(module, 'Model')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue