Gabriel commited on
Commit
2135e10
1 Parent(s): 52b2b0b

Update src/htr_pipeline/utils/filter_segmask.py

Browse files
src/htr_pipeline/utils/filter_segmask.py CHANGED
@@ -7,7 +7,7 @@ from mmengine.structures import InstanceData
7
 
8
  class FilterSegMask:
9
  def __init__(self):
10
- self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
 
12
  # Removes smaller masks that are contained in a bigger mask
13
  # @timer_func
 
7
 
8
  class FilterSegMask:
9
  def __init__(self):
10
+ self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
11
 
12
  # Removes smaller masks that are contained in a bigger mask
13
  # @timer_func