Spaces:
Running
on
Zero
Running
on
Zero
Gpu stats
Browse files
cpn.py
CHANGED
|
@@ -58,8 +58,8 @@ class CpnInterface:
|
|
| 58 |
with torch.no_grad():
|
| 59 |
out = cd.asnumpy(self.model(x, crop_size=self.tile_size,
|
| 60 |
stride=max(64, self.tile_size - self.overlap)))
|
| 61 |
-
if torch.cuda.device_count():
|
| 62 |
-
|
| 63 |
|
| 64 |
contours, = out['contours']
|
| 65 |
boxes, = out['boxes']
|
|
|
|
| 58 |
with torch.no_grad():
|
| 59 |
out = cd.asnumpy(self.model(x, crop_size=self.tile_size,
|
| 60 |
stride=max(64, self.tile_size - self.overlap)))
|
| 61 |
+
# if torch.cuda.device_count():
|
| 62 |
+
# print(cd.GpuStats())
|
| 63 |
|
| 64 |
contours, = out['contours']
|
| 65 |
boxes, = out['boxes']
|