image_through_model #49

Merged
brian merged 75 commits from image_through_model into main 2024-10-20 00:10:27 +02:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit bf44947024 - Show all commits
+1
View File
@@ -1,2 +1,3 @@
from .get_class import get_class
from .load_model import DEVICE, load_model
from .vcda_dataset import VCDADataset
+10
View File
@@ -0,0 +1,10 @@
from importlib import import_module
from types import ModuleType
def get_class(path: str) -> ModuleType:
parts = path.split('.')
module_path = '.'.join(parts[:-1])
class_name = parts[-1]
module = import_module(module_path)
return getattr(module, class_name)