Spaces:
Paused
Paused
Abdulrahman1989
commited on
Commit
·
55c6860
1
Parent(s):
27c0c4f
Add device
Browse files- Image3DProcessor.py +1 -2
Image3DProcessor.py
CHANGED
@@ -26,8 +26,7 @@ from gaussian_renderer import render_predicted
|
|
26 |
|
27 |
class Image3DProcessor:
|
28 |
def __init__(self, model_cfg_path, model_repo_id, model_filename):
|
29 |
-
|
30 |
-
|
31 |
# Load model configuration
|
32 |
self.model_cfg = OmegaConf.load(model_cfg_path)
|
33 |
|
|
|
26 |
|
27 |
class Image3DProcessor:
|
28 |
def __init__(self, model_cfg_path, model_repo_id, model_filename):
|
29 |
+
self.device = torch.device("cuda" if self.use_cuda else "cpu")
|
|
|
30 |
# Load model configuration
|
31 |
self.model_cfg = OmegaConf.load(model_cfg_path)
|
32 |
|