File size: 757 Bytes
ba7051a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import itertools
from typing import TYPE_CHECKING
from ..helpers import lazy_import_all_from
try:
import torch
except ImportError:
raise ImportError("Pytorch is not installed. Please install Pytorch to use the torch functions of utils3d.")
module_members = {}
for module_name in ['utils', 'transforms', 'pose', 'segment_ops', 'mesh', 'maps', 'rasterization']:
module_members[module_name] = lazy_import_all_from(globals(), '.' + module_name)
__all__ = list(itertools.chain(*module_members.values()))
if TYPE_CHECKING:
from .utils import *
from .transforms import *
from .segment_ops import *
from .mesh import *
from .maps import *
from .rasterization import *
from .segment_ops import *
from .pose import *
|