Spaces:
Sleeping
Sleeping
Merge pull request #14 from umyuu/feaure/0.0.10
Browse files- app.py +20 -7
- requirements.txt +4 -4
- src/utils.py +1 -1
app.py
CHANGED
@@ -121,19 +121,32 @@ with gr.Blocks(
|
|
121 |
""")
|
122 |
with gr.Accordion("ๅใๆฑใ่ชฌๆๆธ", open=False):
|
123 |
gr.Markdown("""
|
124 |
-
|
125 |
-
|
126 |
-
ใใฎใใขใขใใชใงใฏใ้ก่ๆงใใใใๅฉ็จใใฆ็ปๅๅ
ใฎๆณจ็ฎใในใ้ ๅใ่ฆ่ฆ็ใซ็คบใใพใใใฆใผใถใผใ็ปๅใใขใใใญใผใใใใจใใขใใชใฏ้ก่ๆงใใใใ็ๆใใๆณจ็ฎใใใ้ ๅใๅผท่ชฟใใ็ปๅใๅฅใฟใใซ่กจ็คบใใพใใใใใซใใใใฆใผใถใผใฏ็ปๅๅ
ใงใฉใฎ้ ๅใ็นใซ้่ฆใงใใใใ็ดๆ็ใซ็่งฃใใใใจใใงใใพใใ
|
127 |
## ๆไฝ่ชฌๆ
|
128 |
้ก่ๆงใใใใใขใไฝฟ็จใใๆ้ ใฏไปฅไธใฎ้ใใงใ๏ผ
|
129 |
-
1. input
|
130 |
-
2. Submit
|
131 |
-
3.
|
132 |
### ๆดป็จใขใคใใข๐จ
|
133 |
ใใฎใใขใฏใๅตไฝๆดปๅใฎ้ใซๆณจ็ฎใใใใคใณใใ่ฆ่ฆๅใใใใใซๅฝน็ซใกใพใใ่ฆ่ฆๅใใใ็ตๆใๅบใซใใฉใฎ้จๅใซๅ ็ญใๅฟ
่ฆใใๅคๆญใใใใจใใงใใพใใ
|
134 |
-
|
135 |
ใๅฉ็จใใใ ใใใใใใจใใใใใพใใ
|
136 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
algorithm_type = gr.Radio(
|
138 |
["SpectralResidual", "FineGrained"],
|
139 |
label="Saliency",
|
|
|
121 |
""")
|
122 |
with gr.Accordion("ๅใๆฑใ่ชฌๆๆธ", open=False):
|
123 |
gr.Markdown("""
|
124 |
+
## ้ก่ๆงใใใใจใฏ
|
125 |
+
้ก่ๆงใใใใจใฏใ็ปๅๅ
ใฎๆณจ็ฎใในใ้ ๅใ่ฆ่ฆๅใใๆๆณใงใใใใฎๆๆณใฏใไบบ้ใฎ่ฆ่ฆใทในใใ ใ้่ฆใชๆ
ๅ ฑใซ็ฆ็นใๅฝใฆใๆนๆณใๆจกๅฃใใฆใใพใใๅใใฏใปใซใซใฏใใใฎๆณจ็ฎๅบฆๅใใ่กจใๅคใๅฒใๅฝใฆใใใใใใซๅบใฅใใฆๆณจ็ฎใในใ้ ๅใๅผท่ชฟใใใพใใ
|
|
|
126 |
## ๆไฝ่ชฌๆ
|
127 |
้ก่ๆงใใใใใขใไฝฟ็จใใๆ้ ใฏไปฅไธใฎ้ใใงใ๏ผ
|
128 |
+
1. ็ปๅใฎ้ธๆ: inputใฟใใง่ชฟๆปใใใ็ปๅใ้ธๆใใพใใไธ้จใฎ๐ใฏใชใใใใผใใขใคใณใณ๏ผใณใใผ&ใใผในใใขใคใณใณ๏ผใใใฏใชใใใใผใใใๅ
ฅๅใใใใจใๅบๆฅใพใใ
|
129 |
+
2. ใใใใฎ็ๆ: Submitใใฟใณใใฏใชใใฏใใใจใ้ธๆใใ็ปๅใๅฆ็ใใใ้ใญๅใใใใ้ก่ๆงใใใใ็ๆใใใพใใ
|
130 |
+
3. ็ตๆใฎ็ขบ่ช: ็ๆใใใ้ก่ๆงใใใใฏใJETใฟใใจHOTใฟใใซ่กจ็คบใใใพใใ
|
131 |
### ๆดป็จใขใคใใข๐จ
|
132 |
ใใฎใใขใฏใๅตไฝๆดปๅใฎ้ใซๆณจ็ฎใใใใคใณใใ่ฆ่ฆๅใใใใใซๅฝน็ซใกใพใใ่ฆ่ฆๅใใใ็ตๆใๅบใซใใฉใฎ้จๅใซๅ ็ญใๅฟ
่ฆใใๅคๆญใใใใจใใงใใพใใ
|
133 |
+
ใใจใใฐใ้กใฎ็ฎใซๆณจ็ฎใใคใณใใๅฐใชใๅ ดๅใใใฎ้จๅใ้็น็ใซๅ ็ญใใใใจใงใไฝๅๅ
จไฝใฎ้ญ
ๅใ้ซใใใใจใใงใใใใใใใพใใใ
|
134 |
ใๅฉ็จใใใ ใใใใใใจใใใใใพใใ
|
135 |
""")
|
136 |
+
with gr.Accordion("Saliency Map User Guide", open=False):
|
137 |
+
gr.Markdown("""
|
138 |
+
## Learn about saliency maps:
|
139 |
+
A saliency map visually highlights important areas in an image, mimicking how humans focus on key information.
|
140 |
+
Each pixel is assigned a value representing attention level, highlighting regions of interest.
|
141 |
+
### Try the demo:
|
142 |
+
To use the saliency map demo, follow two steps
|
143 |
+
1. Upload an image or paste it from the clipboard.
|
144 |
+
2. Click "Submit" to generate and view the saliency map on separate tabs.
|
145 |
+
### Application Ideas๐จ.
|
146 |
+
Useful for creative projects to identify points of interest and enhance appeal.
|
147 |
+
For instance, if eyes are focal points, focus enhancements there.
|
148 |
+
Thank you for your interest!
|
149 |
+
""")
|
150 |
algorithm_type = gr.Radio(
|
151 |
["SpectralResidual", "FineGrained"],
|
152 |
label="Saliency",
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio==4.
|
2 |
-
gradio_client==0.
|
3 |
-
opencv-python==4.
|
4 |
-
opencv-contrib-python==4.
|
|
|
1 |
+
gradio==4.36.0
|
2 |
+
gradio_client==1.0.1
|
3 |
+
opencv-python==4.10.0.82
|
4 |
+
opencv-contrib-python==4.10.0.82
|
src/utils.py
CHANGED
@@ -8,7 +8,7 @@ def get_package_version() -> str:
|
|
8 |
"""
|
9 |
ใใผใธใงใณๆ
ๅ ฑใๅๅพใใพใใ
|
10 |
"""
|
11 |
-
return '0.0.
|
12 |
|
13 |
|
14 |
@dataclass
|
|
|
8 |
"""
|
9 |
ใใผใธใงใณๆ
ๅ ฑใๅๅพใใพใใ
|
10 |
"""
|
11 |
+
return '0.0.10'
|
12 |
|
13 |
|
14 |
@dataclass
|