Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,8 @@ from trellis.pipelines import TrellisImageTo3DPipeline
|
|
17 |
from trellis.representations import Gaussian, MeshExtractResult
|
18 |
from trellis.utils import render_utils, postprocessing_utils
|
19 |
|
|
|
|
|
20 |
# Memory management settings
|
21 |
torch.cuda.empty_cache()
|
22 |
torch.cuda.set_per_process_memory_fraction(0.8) # Use only 80% of available GPU memory
|
|
|
17 |
from trellis.representations import Gaussian, MeshExtractResult
|
18 |
from trellis.utils import render_utils, postprocessing_utils
|
19 |
|
20 |
+
pipeline = None
|
21 |
+
|
22 |
# Memory management settings
|
23 |
torch.cuda.empty_cache()
|
24 |
torch.cuda.set_per_process_memory_fraction(0.8) # Use only 80% of available GPU memory
|