ericup commited on
Commit
8b40e14
·
verified ·
1 Parent(s): 345aa81

Test MIG support

Browse files
Files changed (1) hide show
  1. cpn.py +2 -2
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
- # print(cd.GpuStats())
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']