This commit is contained in:
student_2333 2024-10-31 19:54:27 +08:00
parent f64105bd3e
commit 06e0b4da3c
No known key found for this signature in database
GPG Key ID: 665F083BEC56F2A6

View File

@ -22,15 +22,18 @@ class ModelUpdater(GitHubLatestReleaseModelUpdater):
return info
OWNER = "nkxingxh"
REPO = "NailongDetection"
model_path = ModelUpdater(
"nkxingxh",
"NailongDetection",
OWNER,
REPO,
lambda x: x.endswith(model_filename_sfx),
).get()
labels_path = GitHubLatestReleaseModelUpdater(
"nkxingxh",
"NailongDetection",
OWNER,
REPO,
lambda x: x == "labels.txt",
).get()
labels = labels_path.read_text("u8").splitlines()