mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-20 05:23:22 -07:00
Propagated BN implementation, no CLI support yet.
This commit is contained in:
parent
fcd398707f
commit
7439d5003e
7 changed files with 1133 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
from .ModelBase import ModelBase
|
||||
|
||||
def import_model(model_class_name):
|
||||
def import_model(model_class_name, use_bn=False):
|
||||
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