tingul4 commited on
Commit
a560cae
·
1 Parent(s): b754bf5

update README

Browse files

1. adjust organization
2. supply HF spaces link

Files changed (1) hide show
  1. README.md +31 -51
README.md CHANGED
@@ -15,33 +15,14 @@ pinned: false
15
 
16
  ## 🚀 快速開始
17
 
18
- ### 安裝依賴
 
 
 
19
 
20
- ```bash
21
- pip install -r requirements.txt
22
- ```
23
-
24
- ### 運行應用
25
-
26
- ```bash
27
- gradio app.py
28
- ```
29
-
30
-
31
-
32
- ```bash
33
- python app.py
34
- ```
35
-
36
- 應用將在 `http://localhost:7860` 啟動。
37
 
38
- ## 📦 依賴項
39
-
40
- - `gradio` - 互動式 Web 介面
41
- - `transformers` - Hugging Face 模型庫
42
- - `torch` - PyTorch 深度學習框架
43
- - `Pillow` - 圖像處理
44
- - `numpy` - 數值計算
45
 
46
  ## 🎮 使用方法
47
 
@@ -54,14 +35,33 @@ python app.py
54
  - 左側顯示分割遮罩(不同物件用不同顏色)
55
  - 右側顯示除錯資訊(檢測數量、標籤、信心度)
56
 
57
- ## 🎨 顏色標示
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- 檢測到的物件會按順序使用以下顏色作為mask:
60
 
61
- 1. 🔴 紅色
62
- 2. 🟢 綠色
63
- 3. 🔵 藍色
64
- 4. 🟡 黃色
 
 
 
 
 
65
 
66
  ## 🔧 技術架構
67
 
@@ -89,26 +89,6 @@ SAM 生成分割遮罩
89
  輸出結果
90
  ```
91
 
92
- ## 💡 使用技巧
93
-
94
- ### 提高檢測準確度
95
-
96
- 1. **使用具體描述**:`blue car` 比 `car` 更精確
97
- 2. **調整閾值**:當前閾值為 0.15,可在 source code 中調整
98
- 3. **多次嘗試**:嘗試不同的文字表達方式或是使用英文描述
99
-
100
- ## 📝 程式碼結構
101
-
102
- ```
103
- text-image-seg/
104
- ├── app.py
105
- ├── requirements.txt
106
- ├── README.md
107
- ├── sample_images/
108
- ├── .gitattributes
109
- └── .gitignore
110
- ```
111
-
112
  ## 🔗 相關資源
113
 
114
  - [Grounding DINO](https://github.com/IDEA-Research/GroundingDINO)
 
15
 
16
  ## 🚀 快速開始
17
 
18
+ ### Local Host
19
+ - ```pip install -r requirements.txt```
20
+ - ```gradio app.py``` or ```python app.py```
21
+ - 應用將在 `http://localhost:7860` 啟動。
22
 
23
+ ### Hugging Face Spaces
24
+ [![Open in Spaces](https://huggingface.co/datasets/huggingface/badges/resolve/main/open-in-hf-spaces-md-dark.svg)](https://huggingface.co/spaces/tingul4/text-image-seg)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
 
 
 
 
 
 
 
26
 
27
  ## 🎮 使用方法
28
 
 
35
  - 左側顯示分割遮罩(不同物件用不同顏色)
36
  - 右側顯示除錯資訊(檢測數量、標籤、信心度)
37
 
38
+ ## 💡 使用技巧
39
+
40
+ ### 提高檢測準確度
41
+
42
+ 1. **使用具體描述**:`blue car` 比 `car` 更精確
43
+ 2. **調整閾值**:當前閾值為 0.15,可在 source code 中調整
44
+ 3. **多次嘗試**:嘗試不同的文字表達方式或是使用英文描述
45
+
46
+ ## 📦 依賴項
47
+
48
+ - `gradio` - 互動式 Web 介面
49
+ - `transformers` - Hugging Face 模型庫
50
+ - `torch` - PyTorch 深度學習框架
51
+ - `Pillow` - 圖像處理
52
+ - `numpy` - 數值計算
53
 
54
+ ## 📝 程式碼結構
55
 
56
+ ```
57
+ text-image-seg/
58
+ ├── app.py
59
+ ├── requirements.txt
60
+ ├── README.md
61
+ ├── sample_images/
62
+ ├── .gitattributes
63
+ └── .gitignore
64
+ ```
65
 
66
  ## 🔧 技術架構
67
 
 
89
  輸出結果
90
  ```
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  ## 🔗 相關資源
93
 
94
  - [Grounding DINO](https://github.com/IDEA-Research/GroundingDINO)