Spaces:
Running
on
Zero
Running
on
Zero
nick_93
commited on
Commit
·
caddeb4
1
Parent(s):
93b410f
init
Browse files
app.py
CHANGED
@@ -226,8 +226,16 @@ class ControlNetDepthDesignModelMulti:
|
|
226 |
If the size is not the same the submission will fail.
|
227 |
"""
|
228 |
print(prompt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
print(self.depth_estimator.device)
|
230 |
-
print(self.
|
231 |
flush()
|
232 |
self.generator = torch.Generator(device=device).manual_seed(self.seed)
|
233 |
|
|
|
226 |
If the size is not the same the submission will fail.
|
227 |
"""
|
228 |
print(prompt)
|
229 |
+
if torch.cuda.is_available():
|
230 |
+
# Print the number of available GPUs
|
231 |
+
print("Available GPU devices:")
|
232 |
+
for i in range(torch.cuda.device_count()):
|
233 |
+
print(f"Device {i}: {torch.cuda.get_device_name(i)}")
|
234 |
+
else:
|
235 |
+
print("No GPU devices available. Using CPU.")
|
236 |
+
|
237 |
print(self.depth_estimator.device)
|
238 |
+
print(self.pipe.device)
|
239 |
flush()
|
240 |
self.generator = torch.Generator(device=device).manual_seed(self.seed)
|
241 |
|