import os from pathlib import Path import sys from salad.utils.paths import SPAGHETTI_DIR IS_WINDOWS = sys.platform == 'win32' get_trace = getattr(sys, 'gettrace', None) DEBUG = get_trace is not None and get_trace() is not None EPSILON = 1e-4 DIM = 3 # PROJECT_ROOT = str(Path(os.path.realpath(__file__)).parents[0]) PROJECT_ROOT = str(SPAGHETTI_DIR) DATA_ROOT = f'{PROJECT_ROOT}/assets/' CHECKPOINTS_ROOT = f'{DATA_ROOT}checkpoints/' CACHE_ROOT = f'{DATA_ROOT}cache/' UI_OUT = f'{DATA_ROOT}ui_export/' UI_RESOURCES = f'{DATA_ROOT}/ui_resources/' Shapenet_WT = f'{DATA_ROOT}/ShapeNetCore_wt/' Shapenet = f'{DATA_ROOT}/ShapeNetCore.v2/' MAX_VS = 100000 MAX_GAUSIANS = 32