Skip to content

v0.9.1: Cellpose notebook comfort fixes from the owner's Colab test (26 Nov) #574

Backlog

Description

@guijacquemet

The owner tested MorphoBricks_Preprocessing_Cellpose at release candidate B 3a1b073 in Colab on 26 Nov 2026. The stale nuclei preview results go into v0.9.0 in a separate PR. The other items below are for v0.9.1:

  1. Slow first install. Running the install cell is very slow the first time. Give Cellpose its own install cell (or step) after the shared preprocessing install, with progress shown, so the slow part is separate and visible.
  2. Silent Folders step. "Step 1 of 4 · Folders: Open the run and choose the masks folder; look at its images" showed nothing for about 4 min. Show what is happening (opening the run, scanning masks, reading images) with "n of N" and a timer, like the Run progress of Run: show every check before the first image read, and make the header check linear (v0.9.0 release blocker) #567, and find what takes 4 min (Drive I/O? reading whole images for the preview?).
  3. Downloads. Owner decision: choosing the model, then clicking Preview/Run, counts as consent to download that model's weights.
    • Remove the "Allow the weights download from Hugging Face" tick boxes and the "Install DINOv3 now" button.
    • Download only what the chosen model needs, on first use, with a visible "downloading weights…" status and progress.
    • Record the exact weights (name, source, file hash) in the run.
    • Never substitute another model and never fall back silently. A failed download is a clear refusal.
  4. Model-running message. During the preview step, show that the model is running ("Running on …"). This is done in v0.9.0 if it was trivial in the stale-results PR; otherwise it goes here.
  5. torch warning. Cellpose's dynamics.py triggers torch's UserWarning: Sparse invariant checks are implicitly disabled…. Opt out explicitly or filter this one warning, narrowly (exact message and module), so users don't see it. Record the setting if it can affect results. It does not; it only controls validation of sparse tensor invariants.

Activity

  1. guijacquemet commented on Nov 26, 2026

    @guijacquemet
    ContributorAuthor

    More from the owner's Colab test on 26 Nov, for v0.9.1: the Register-masks section (cell 5).

    1. Representation tick box: "Declare Cells as separate objects" with a TOML preview (representation = "instances"). The owner found it awkward and could not tell why the box must be ticked or what it means. Owner decision: keep the question and never infer the answer, but reword it so the meaning is clear. Ask, per mask type, whether each object has its own number (a label image, where every cell or nucleus is a separate object) or whether the mask is only foreground and background (binary). Add one sentence on why we ask: the two are measured differently, and we never guess which one a file is. Show the TOML only as a detail, if at all.
    2. Register is silent and lags: after clicking Register, something runs but nothing is shown. Show progress (the step, n of N, the current file, a ticking timer) using the Run: show every check before the first image read, and make the header check linear (v0.9.0 release blocker) #567 mechanism, and find what makes it slow. If it reads whole images or masks more than needed, read less, as long as no check becomes weaker. If a check would have to change, ask the owner.

    Generated by Claude Code

  2. added 3 commits that reference this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions