Spaces:
Running
Running
Commit ·
2088fde
1
Parent(s): d0aef87
Change appearance
Browse files- app.py +3 -3
- banner.png +2 -2
app.py
CHANGED
|
@@ -217,7 +217,7 @@ def run_job(files_or_zip, use_demo=False, progress=gr.Progress()):
|
|
| 217 |
|
| 218 |
r = np.clip(mask_ar.astype(np.float32) * RED_SCALE, 0, 255).astype(np.uint8)
|
| 219 |
g = np.clip(mask_cortex.astype(np.float32) * GREEN_SCALE, 0, 255).astype(np.uint8)
|
| 220 |
-
b =
|
| 221 |
|
| 222 |
rgb = np.stack([r, g, b], axis=-1)
|
| 223 |
|
|
@@ -269,7 +269,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="MicroDeepAerenchyma — Segmentati
|
|
| 269 |
<div>
|
| 270 |
<h2 style="margin:0">Deep Aerenchyma</h2>
|
| 271 |
<p style="margin:4px 0 0;opacity:.8">
|
| 272 |
-
Segmentation (CPU) — Upload images or a ZIP (subfolders supported). Outputs masks, panels, and a CSV.
|
| 273 |
</p>
|
| 274 |
</div>
|
| 275 |
</div>
|
|
@@ -277,7 +277,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="MicroDeepAerenchyma — Segmentati
|
|
| 277 |
)
|
| 278 |
gr.Markdown(
|
| 279 |
"""
|
| 280 |
-
# Deep Aerenchyma
|
| 281 |
Upload **multiple images** *or* **one ZIP** (supports nested folders).
|
| 282 |
Output: masks (`pred_AR`, `pred_Cortex`, `pred_Endoderm`), panels in `pred_global`, and `pred_metrics.csv`.
|
| 283 |
"""
|
|
|
|
| 217 |
|
| 218 |
r = np.clip(mask_ar.astype(np.float32) * RED_SCALE, 0, 255).astype(np.uint8)
|
| 219 |
g = np.clip(mask_cortex.astype(np.float32) * GREEN_SCALE, 0, 255).astype(np.uint8)
|
| 220 |
+
b = raw_boost # on garde le raw inchangé en B (tu peux mettre raw_boost si tu préfères)
|
| 221 |
|
| 222 |
rgb = np.stack([r, g, b], axis=-1)
|
| 223 |
|
|
|
|
| 269 |
<div>
|
| 270 |
<h2 style="margin:0">Deep Aerenchyma</h2>
|
| 271 |
<p style="margin:4px 0 0;opacity:.8">
|
| 272 |
+
Segmentation (CPU) — Upload microscopy images or a ZIP (nested subfolders supported). Outputs: masks, panels, and a CSV.
|
| 273 |
</p>
|
| 274 |
</div>
|
| 275 |
</div>
|
|
|
|
| 277 |
)
|
| 278 |
gr.Markdown(
|
| 279 |
"""
|
| 280 |
+
# Public gradio space - Deep Aerenchyma segmentation tool (CPU) - Authors: Hani Atef, Romain Fernandez (CIRAD, France)
|
| 281 |
Upload **multiple images** *or* **one ZIP** (supports nested folders).
|
| 282 |
Output: masks (`pred_AR`, `pred_Cortex`, `pred_Endoderm`), panels in `pred_global`, and `pred_metrics.csv`.
|
| 283 |
"""
|
banner.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|