anvilarth commited on
Commit
263dd71
1 Parent(s): 0dfb25a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -46,7 +46,8 @@ class GradioWindow():
46
  self.model_type = SAM_ENCODER_VERSION
47
  self.SAM_CHECKPOINT_PATH = SAM_CHECKPOINT_PATH
48
 
49
- self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
50
  # for debug
51
  # self.augmenter = None
52
  self.augmenter = Augmenter(device=self.device)
@@ -176,7 +177,7 @@ class GradioWindow():
176
  device=self.device
177
  )
178
 
179
- print("MODELS LOADED!")
180
 
181
  def change_mask_type(self, image, is_segmmask):
182
  self.selected_mask = None
 
46
  self.model_type = SAM_ENCODER_VERSION
47
  self.SAM_CHECKPOINT_PATH = SAM_CHECKPOINT_PATH
48
 
49
+ # self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
50
+ self.device = "cpu"
51
  # for debug
52
  # self.augmenter = None
53
  self.augmenter = Augmenter(device=self.device)
 
177
  device=self.device
178
  )
179
 
180
+ print("MODELS LOADED! Device:", self.device)
181
 
182
  def change_mask_type(self, image, is_segmmask):
183
  self.selected_mask = None