Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,9 @@ from trellis.pipelines import TrellisImageTo3DPipeline
|
|
| 12 |
from trellis.representations import Gaussian, MeshExtractResult
|
| 13 |
from trellis.utils import render_utils, postprocessing_utils
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# Constants
|
| 16 |
MAX_SEED = np.iinfo(np.int32).max
|
| 17 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
|
|
|
| 12 |
from trellis.representations import Gaussian, MeshExtractResult
|
| 13 |
from trellis.utils import render_utils, postprocessing_utils
|
| 14 |
|
| 15 |
+
# Add this before your preprocessing functions
|
| 16 |
+
pipeline = TrellisImageTo3DPipeline()
|
| 17 |
+
|
| 18 |
# Constants
|
| 19 |
MAX_SEED = np.iinfo(np.int32).max
|
| 20 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|