Files
MrForExample-ComfyUI-3D-Pack/Gen_3D_Modules/TriplaneGaussian/__init__.py
T
2024-07-11 10:48:43 -06:00

11 lines
345 B
Python

import importlib
from .utils.typing import *
def find(cls_string) -> Type:
cls_full_name = cls_string.split(".")
module_string = ".".join(cls_full_name[:-1])
cls_name = cls_full_name[-1]
print(module_string)
module = importlib.import_module(module_string, package=__name__)
cls = getattr(module, cls_name)
return cls