Spaces:
Runtime error
Runtime error
Download TRELLIS-main/trellis/modules/sparse/conv/__init__.py from 1xCode/FormaAI-Web: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/1xCode/FormaAI-Web/resolve/main/TRELLIS-main/trellis/modules/sparse/conv/__init__.py
- Command line
-
hf download hf://spaces/1xCode/FormaAI-Web/TRELLIS-main/trellis/modules/sparse/conv/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/1xCode/FormaAI-Web/resolve/main/TRELLIS-main/trellis/modules/sparse/conv/__init__.py
537 Bytes
| from .. import BACKEND | |
| SPCONV_ALGO = 'auto' # 'auto', 'implicit_gemm', 'native' | |
| def __from_env(): | |
| import os | |
| global SPCONV_ALGO | |
| env_spconv_algo = os.environ.get('SPCONV_ALGO') | |
| if env_spconv_algo is not None and env_spconv_algo in ['auto', 'implicit_gemm', 'native']: | |
| SPCONV_ALGO = env_spconv_algo | |
| print(f"[SPARSE][CONV] spconv algo: {SPCONV_ALGO}") | |
| __from_env() | |
| if BACKEND == 'torchsparse': | |
| from .conv_torchsparse import * | |
| elif BACKEND == 'spconv': | |
| from .conv_spconv import * | |