This commit is contained in:
student_2333 2024-10-31 21:43:17 +08:00
parent 7999c41980
commit bce2e7ab9e
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ require("nonebot_plugin_uninfo")
from . import handler as handler
from .config import Config
__version__ = "2.2.0"
__version__ = "2.2.0.post1"
__plugin_meta__ = PluginMetadata(
name="自动撤回奶龙",
description="一个基于图像分类模型的简单插件~",

View File

@ -80,7 +80,7 @@ def check_image(image: np.ndarray) -> "CheckResult":
has = any(
True
for c, s in zip(final_cls_inds, final_scores)
if labels[c] == "nailong" and s >= config.nailong_model1_score
if labels[int(c)] == "nailong" and s >= config.nailong_model1_score
)
if has:
image = vis(