Added io support.

This commit is contained in:
Jose 2023-02-07 13:59:02 +01:00 committed by GitHub
parent 7439d5003e
commit 135384cc00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 209 additions and 1071 deletions

View file

@ -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')