Skip to content

Commit 9af8383

Browse files
committed
auto update
1 parent 73ec9aa commit 9af8383

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dvt/detect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class AnnoDetect:
116116
"""
117117
def __init__(self, model_path=None):
118118
if not model_path:
119-
model_path = _download_file("dvt_detect.pt")
119+
model_path = _download_file("dvt_detect.pt", "1.0.1")
120120
self.model = torch.jit.load(model_path)
121121
self.model.eval()
122122

dvt/utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,12 @@ def save_image(image_path: str, img: np.ndarray) -> None:
111111

112112
def _download_file(
113113
url: str,
114-
basename="https://github.com/distant-viewing/dvt/releases/download/0.0.1/"
114+
basename="https://github.com/distant-viewing/dvt/releases/download/": str,
115+
version="0.0.1": str
115116
) -> str:
116117

118+
basename = basename + version
119+
117120
if basename:
118121
url = os.path.join(basename, url)
119122

0 commit comments

Comments
 (0)