Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,40 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
|
| 14 |
+
題目:視覺語言模型問答系統(Vision-Language Chatbot)
|
| 15 |
+
|
| 16 |
+
專案簡介
|
| 17 |
+
本專案實作一個「視覺問答(Visual Question Answering, VQA)」網頁應用程式,
|
| 18 |
+
使用者可以上傳一張圖片並以自然語言提問,AI 模型將根據圖片內容回答問題。
|
| 19 |
+
|
| 20 |
+
系統整合多種 BLIP(Bootstrapped Language-Image Pretraining)** 模型,
|
| 21 |
+
可切換不同版本進行效果比較,如:
|
| 22 |
+
- BLIP VQA Base:基礎版問答模型
|
| 23 |
+
- BLIP VQA Large:大型版本,表現更佳但速度稍慢
|
| 24 |
+
- BLIP Captioning:用於產生圖片描述(非問答)
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
功能特色
|
| 29 |
+
- 支援圖片上傳
|
| 30 |
+
- 可進行多輪問答(聊天模式)
|
| 31 |
+
- 可隨時更換圖片並重新提問
|
| 32 |
+
- 可切換模型比較不同回答效果
|
| 33 |
+
- 使用Gradio製作介面,介面簡潔、可即時互動
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
環境安裝(本地執行)
|
| 38 |
+
conda create -n hw3 python=3.10 -y
|
| 39 |
+
conda activate hw3
|
| 40 |
+
pip install -r requirements.txt
|
| 41 |
+
python app.py
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
檔案結構
|
| 46 |
+
- `app.py`: 包含所有邏輯的主要 Gradio 應用程式腳本
|
| 47 |
+
- `requirements.txt`: 專案所需的 Python 套件列表
|
| 48 |
+
- `README.md`:此檔案
|
| 49 |
+
- `sample_images/`: 包含用於 Gradio 介面範例的測試圖片
|