RomainFernandezCIRAD commited on
Commit
2088fde
·
1 Parent(s): d0aef87

Change appearance

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. 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 = raw # 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,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 Segmentation (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
  """
 
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

  • SHA256: 4455449108e7219d99012cce8237e707d0aacf34fd5b6ccdd05e235baf318c0c
  • Pointer size: 131 Bytes
  • Size of remote file: 206 kB

Git LFS Details

  • SHA256: c416faaaef7c6e044b669d94cd12b4a28860c797c6c37c1cf1ca23a0cd6ea37a
  • Pointer size: 131 Bytes
  • Size of remote file: 509 kB