RamAnanth1 commited on
Commit
acce61f
1 Parent(s): 1eefa67

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -0
model.py CHANGED
@@ -90,6 +90,7 @@ class Model:
90
  @torch.inference_mode()
91
  def process_sketch(self, input_img, type_in, color_back, prompt, neg_prompt, fix_sample, scale, con_strength, base_model):
92
  global current_base
 
93
  # if current_base != base_model:
94
  # ckpt = os.path.join("models", base_model)
95
  # pl_sd = torch.load(ckpt, map_location="cpu")
 
90
  @torch.inference_mode()
91
  def process_sketch(self, input_img, type_in, color_back, prompt, neg_prompt, fix_sample, scale, con_strength, base_model):
92
  global current_base
93
+ device = 'cuda'
94
  # if current_base != base_model:
95
  # ckpt = os.path.join("models", base_model)
96
  # pl_sd = torch.load(ckpt, map_location="cpu")