修改log

This commit is contained in:
weiweiw 2024-12-20 10:51:08 +08:00
parent 1dadf70601
commit 7b6a12a105
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ def annotate_images(model, image_urls, target_labels=None, conf_threshold=0.1):
all_labels = model.names.values() all_labels = model.names.values()
label_colors = generate_label_colors(all_labels) label_colors = generate_label_colors(all_labels)
logger.debug(f"标注的置信度阈值为:" + str(conf_threshold))
for image_url in image_urls: for image_url in image_urls:
# 假设 image_path 可能是一个 URL 或者本地路径 # 假设 image_path 可能是一个 URL 或者本地路径
if image_url.startswith("http"): if image_url.startswith("http"):