hasibzunair commited on
Commit
44f7f6c
β€’
1 Parent(s): 0ce6186

check device

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -63,7 +63,9 @@ if not os.path.exists("./checkpoints/"):
63
  print("########################Setup done!########################")
64
 
65
  # Load U-2-Net model
 
66
  u2net = u2net_load.model(model_name = 'u2netp')
 
67
  # Main inference function
68
  def inference(clothing_image, person_image, remove_bg):
69
  """
 
63
  print("########################Setup done!########################")
64
 
65
  # Load U-2-Net model
66
+ print(f"####Using {device}.#####")
67
  u2net = u2net_load.model(model_name = 'u2netp')
68
+
69
  # Main inference function
70
  def inference(clothing_image, person_image, remove_bg):
71
  """