mirror of
https://huggingface.co/spaces/ECCV2022/dis-background-removal
synced 2024-11-29 19:24:33 +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
|
||||
if not os.path.exists("saved_models"):
|
||||
os.mkdir("saved_models")
|
||||
MODEL_PATH_URL = "https://drive.google.com/uc?id=1KyMpRjewZdyYfxHPYcd-ZbanIXtin0Sn"
|
||||
gdown.download(MODEL_PATH_URL, "saved_models/isnet.pth", use_cookies=False)
|
||||
os.system("mv isnet.pth saved_models/")
|
||||
|
||||
class GOSNormalize(object):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user