🚀 uisikdag/indoorsceneclas_v8
uisikdag/indoorsceneclas_v8
是基於 ultralytics
庫的圖像分類模型,可用於室內場景的分類識別,支持多種常見室內場景的分類。
🚀 快速開始
安裝依賴
你需要安裝 ultralyticsplus
和 ultralytics
庫,可使用以下命令進行安裝:
pip install ultralyticsplus==0.0.23 ultralytics==8.0.21
加載模型並進行預測
以下是一個簡單的代碼示例,展示瞭如何加載模型並進行預測:
from ultralyticsplus import YOLO, postprocess_classify_output
model = YOLO('uisikdag/indoorsceneclas_v8')
model.overrides['conf'] = 0.25
image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
results = model.predict(image)
print(results[0].probs)
processed_result = postprocess_classify_output(model, result=results[0])
print(processed_result)
✨ 主要特性
- 多場景支持:支持多種室內場景的分類,包括機場內部、藝術工作室、禮堂等。
- 易於使用:藉助
ultralyticsplus
庫,可快速加載模型並進行預測。
📦 安裝指南
安裝所需的庫,使用以下命令:
pip install ultralyticsplus==0.0.23 ultralytics==8.0.21
💻 使用示例
基礎用法
from ultralyticsplus import YOLO, postprocess_classify_output
model = YOLO('uisikdag/indoorsceneclas_v8')
model.overrides['conf'] = 0.25
image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
results = model.predict(image)
print(results[0].probs)
processed_result = postprocess_classify_output(model, result=results[0])
print(processed_result)
📚 詳細文檔
支持的標籤
模型支持以下室內場景標籤:
['airport_inside', 'artstudio', 'auditorium', 'bakery', 'bookstore', 'bowling', 'buffet', 'casino', 'children_room', 'church_inside', 'classroom', 'cloister', 'closet', 'clothingstore', 'computerroom', 'concert_hall', 'corridor', 'deli', 'dentaloffice', 'dining_room', 'elevator', 'fastfood_restaurant', 'florist', 'gameroom', 'garage', 'greenhouse', 'grocerystore', 'gym', 'hairsalon', 'hospitalroom', 'inside_bus', 'inside_subway', 'jewelleryshop', 'kindergarden', 'kitchen', 'laboratorywet', 'laundromat', 'library', 'livingroom', 'lobby', 'locker_room', 'mall', 'meeting_room', 'movietheater', 'museum', 'nursery', 'office', 'operating_room', 'pantry', 'poolinside', 'prisoncell', 'restaurant', 'restaurant_kitchen', 'shoeshop', 'stairscase', 'studiomusic', 'subway', 'toystore', 'trainstation', 'tv_studio', 'videostore', 'waitingroom', 'warehouse', 'winecellar']
數據集
該模型使用的數據集可通過以下鏈接獲取:Link
模型指標
屬性 |
詳情 |
模型類型 |
圖像分類模型 |
訓練數據 |
未提及 |
top1準確率 |
0.02246 |
top5準確率 |
0.08986 |