Spaces:
Paused
Paused
Abdulrahman1989
commited on
Commit
·
9d8af0d
1
Parent(s):
f1cb698
Updare CUDA
Browse files- Image3DProcessor.py +2 -0
- SDXLImageGenerator.py +1 -1
Image3DProcessor.py
CHANGED
@@ -26,7 +26,9 @@ from gaussian_renderer import render_predicted
|
|
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 |
|
|
|
26 |
|
27 |
class Image3DProcessor:
|
28 |
def __init__(self, model_cfg_path, model_repo_id, model_filename):
|
29 |
+
self.use_cuda = torch.cuda.is_available()
|
30 |
self.device = torch.device("cuda" if self.use_cuda else "cpu")
|
31 |
+
print("Image3DProcessor Device: ", self.device)
|
32 |
# Load model configuration
|
33 |
self.model_cfg = OmegaConf.load(model_cfg_path)
|
34 |
|
SDXLImageGenerator.py
CHANGED
@@ -9,7 +9,7 @@ class SDXLImageGenerator:
|
|
9 |
# Set proper device based on cuda availability
|
10 |
self.device = torch.device("cuda" if self.use_cuda else "cpu")
|
11 |
|
12 |
-
print("
|
13 |
|
14 |
# Load the pipeline
|
15 |
self.pipe = DiffusionPipeline.from_pretrained(
|
|
|
9 |
# Set proper device based on cuda availability
|
10 |
self.device = torch.device("cuda" if self.use_cuda else "cpu")
|
11 |
|
12 |
+
print("SDXLImageGenerator Device: ", self.device)
|
13 |
|
14 |
# Load the pipeline
|
15 |
self.pipe = DiffusionPipeline.from_pretrained(
|