mirror of
https://huggingface.co/spaces/ECCV2022/dis-background-removal
synced 2024-11-26 09:53:17 +01:00
fix official weights
The model is no longer available from the link
This commit is contained in:
parent
5e6d9e01cf
commit
97cb15e51d
3
app.py
3
app.py
@ -25,8 +25,7 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|||||||
# Download official weights
|
# Download official weights
|
||||||
if not os.path.exists("saved_models"):
|
if not os.path.exists("saved_models"):
|
||||||
os.mkdir("saved_models")
|
os.mkdir("saved_models")
|
||||||
MODEL_PATH_URL = "https://drive.google.com/uc?id=1KyMpRjewZdyYfxHPYcd-ZbanIXtin0Sn"
|
os.system("mv isnet.pth saved_models/")
|
||||||
gdown.download(MODEL_PATH_URL, "saved_models/isnet.pth", use_cookies=False)
|
|
||||||
|
|
||||||
class GOSNormalize(object):
|
class GOSNormalize(object):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user