Spaces:
Runtime error
Runtime error
pengHTYX
commited on
Commit
·
7237f7c
1
Parent(s):
462ed05
'update'
Browse files
app.py
CHANGED
@@ -150,7 +150,6 @@ def load_era3d_pipeline(cfg):
|
|
150 |
cfg.pretrained_model_name_or_path,
|
151 |
torch_dtype=weight_dtype
|
152 |
)
|
153 |
-
pipeline.unet.enable_xformers_memory_efficient_attention()
|
154 |
# sys.main_lock = threading.Lock()
|
155 |
return pipeline
|
156 |
|
@@ -298,7 +297,7 @@ def run_demo():
|
|
298 |
pipeline = load_era3d_pipeline(cfg)
|
299 |
torch.set_grad_enabled(False)
|
300 |
pipeline.to('cuda')
|
301 |
-
|
302 |
predictor = sam_init()
|
303 |
|
304 |
|
|
|
150 |
cfg.pretrained_model_name_or_path,
|
151 |
torch_dtype=weight_dtype
|
152 |
)
|
|
|
153 |
# sys.main_lock = threading.Lock()
|
154 |
return pipeline
|
155 |
|
|
|
297 |
pipeline = load_era3d_pipeline(cfg)
|
298 |
torch.set_grad_enabled(False)
|
299 |
pipeline.to('cuda')
|
300 |
+
pipeline.unet.enable_xformers_memory_efficient_attention()
|
301 |
predictor = sam_init()
|
302 |
|
303 |
|