Spaces:
Running
Running
Realcat
commited on
Commit
•
44ae162
1
Parent(s):
8094dd1
update: extractors
Browse files- hloc/extractors/d2net.py +3 -3
- hloc/extractors/lanet.py +2 -2
- hloc/extractors/rekd.py +2 -2
- third_party/RoRD/__init__.py +0 -0
hloc/extractors/d2net.py
CHANGED
@@ -5,10 +5,10 @@ import torch
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
-
d2net_path = Path(__file__).parent / "../../third_party
|
9 |
sys.path.append(str(d2net_path))
|
10 |
-
from lib.model_test import D2Net as _D2Net
|
11 |
-
from lib.pyramid import process_multiscale
|
12 |
|
13 |
class D2Net(BaseModel):
|
14 |
default_conf = {
|
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
+
d2net_path = Path(__file__).parent / "../../third_party"
|
9 |
sys.path.append(str(d2net_path))
|
10 |
+
from d2net.lib.model_test import D2Net as _D2Net
|
11 |
+
from d2net.lib.pyramid import process_multiscale
|
12 |
|
13 |
class D2Net(BaseModel):
|
14 |
default_conf = {
|
hloc/extractors/lanet.py
CHANGED
@@ -5,9 +5,9 @@ import torch
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
-
lanet_path = Path(__file__).parent / "../../third_party
|
9 |
sys.path.append(str(lanet_path))
|
10 |
-
from network_v0.model import PointModel
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
|
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
+
lanet_path = Path(__file__).parent / "../../third_party"
|
9 |
sys.path.append(str(lanet_path))
|
10 |
+
from lanet.network_v0.model import PointModel
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
|
hloc/extractors/rekd.py
CHANGED
@@ -5,9 +5,9 @@ import torch
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
-
rekd_path = Path(__file__).parent / "../../third_party
|
9 |
sys.path.append(str(rekd_path))
|
10 |
-
from training.model.REKD import REKD as REKD_
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
|
|
|
5 |
|
6 |
from ..utils.base_model import BaseModel
|
7 |
|
8 |
+
rekd_path = Path(__file__).parent / "../../third_party"
|
9 |
sys.path.append(str(rekd_path))
|
10 |
+
from REKD.training.model.REKD import REKD as REKD_
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
13 |
|
third_party/RoRD/__init__.py
ADDED
File without changes
|