Spaces:
Runtime error
Runtime error
hasibzunair
commited on
Commit
β’
44f7f6c
1
Parent(s):
0ce6186
check device
Browse files
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 |
"""
|