Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
18 |
state_dict: dict = torch.hub.load_state_dict_from_url(
|
19 |
"https://www.robots.ox.ac.uk/~vgg/research/selfmask/shared_files/selfmask_nq20.pt",
|
20 |
map_location=device # "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
-
)
|
22 |
|
23 |
parser = ArgumentParser("SelfMask demo")
|
24 |
parser.add_argument(
|
|
|
18 |
state_dict: dict = torch.hub.load_state_dict_from_url(
|
19 |
"https://www.robots.ox.ac.uk/~vgg/research/selfmask/shared_files/selfmask_nq20.pt",
|
20 |
map_location=device # "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
+
)
|
22 |
|
23 |
parser = ArgumentParser("SelfMask demo")
|
24 |
parser.add_argument(
|