Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
25 |
# Download official weights
|
26 |
if not os.path.exists("saved_models"):
|
27 |
os.mkdir("saved_models")
|
28 |
-
MODEL_PATH_URL = "https://drive.google.com/uc?id=1KyMpRjewZdyYfxHPYcd-ZbanIXtin0Sn"
|
|
|
29 |
gdown.download(MODEL_PATH_URL, "saved_models/isnet.pth", use_cookies=False)
|
30 |
|
31 |
class GOSNormalize(object):
|
|
|
25 |
# Download official weights
|
26 |
if not os.path.exists("saved_models"):
|
27 |
os.mkdir("saved_models")
|
28 |
+
# MODEL_PATH_URL = "https://drive.google.com/uc?id=1KyMpRjewZdyYfxHPYcd-ZbanIXtin0Sn" # IS-Net
|
29 |
+
MODEL_PATH_URL = "https://drive.google.com/uc?id=1nV57qKuy--d5u1yvkng9aXW1KS4sOpOi" # IS-Net General Use
|
30 |
gdown.download(MODEL_PATH_URL, "saved_models/isnet.pth", use_cookies=False)
|
31 |
|
32 |
class GOSNormalize(object):
|