Give the develop column room, and the mask a way out of the way
Three faults reported together, and they share a shape: each is something the panel decided on the photographer's behalf. **The column was 280px on every screen.** That width was chosen for a tablet, where the column is a large fraction of the display and every pixel of it is taken from the photograph. On a desktop window the mode strip alone — two modes, a separator, "All", and a chip per attribute the operation set declares — does not fit, so it scrolled sideways. A control you have to pan to reach is one you do not know is there. 380px when the window is classed expanded, 280px when it is not; driven off `layout-class` because reading the window width inside the layout that sets it is a binding loop. **The overlay could not be hidden.** An earlier "Overlay" button was removed for a good reason — it *armed* the overlay, so local mode could be entered and still show nothing. Hiding is the opposite need and was never served: a mask is judged against the photograph beneath it, and that photograph is exactly what the overlay covers. `overlay-hidden` is kept separate from `overlay-on` so a recompute cannot switch the overlay back on under someone who just turned it off. **The masks were coarse because the model saw the subject small.** The graph's input is a fixed 640x640 and every frame is letterboxed into it, so a bird 200px across in a 1600px proxy reaches the model at 80px. `Tiling::Grid` has been implemented and tested since the segmentation spike and defaulted off, because it costs one inference per tile — 2.8s for a 3x2 grid against 470ms. Now offered as "Look closer (slower)", which says what it costs, rather than spending it on every image or on none. The tiling choice enters the segmentation signature. A mask stores the signature its region ids index into, and a tiled run finds different instances in a different order; sharing a signature would silently reinterpret a layer built against the coarse pass — a wrong mask rather than a stale one, and nothing announces it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+44
-2
@@ -243,8 +243,14 @@ export component MaskPanel inherits Rectangle {
|
||||
/// One is being computed now.
|
||||
in property <bool> segmenting: false;
|
||||
|
||||
/// Whether the photographer has hidden the overlay to see the photograph.
|
||||
/// Two-way bound to the window's own, so the canvas and this control never
|
||||
/// disagree about it.
|
||||
in-out property <bool> overlay-hidden: false;
|
||||
|
||||
callback segment();
|
||||
|
||||
/// `true` asks for the slower, tiled pass.
|
||||
callback segment(bool);
|
||||
|
||||
callback mask-selected(string);
|
||||
callback mask-removed(string);
|
||||
@@ -299,7 +305,7 @@ export component MaskPanel inherits Rectangle {
|
||||
text: root.segmenting ? "Looking…" : "Find subjects";
|
||||
enabled: !root.segmenting;
|
||||
primary: true;
|
||||
clicked => { root.segment(); }
|
||||
clicked => { root.segment(false); }
|
||||
}
|
||||
|
||||
// No "Overlay" button and no "Select" button. Both switched on things
|
||||
@@ -312,6 +318,42 @@ export component MaskPanel inherits Rectangle {
|
||||
wrap: word-wrap;
|
||||
}
|
||||
|
||||
// Hiding the overlay is not the "Overlay" button this panel used to
|
||||
// have, and the distinction is the reason it is back. That one *armed*
|
||||
// the overlay: local mode could be entered and still show nothing,
|
||||
// which is the fault the comment below records. This one only takes an
|
||||
// overlay that is already there out of the way for a moment, which is
|
||||
// the one thing a photographer needs constantly and had no way to do —
|
||||
// a mask is judged against the photograph under it, and you cannot see
|
||||
// that photograph through the thing describing it.
|
||||
//
|
||||
// Reads as its own action rather than its state: "Show the mask" is
|
||||
// what pressing it will do, not what is currently true.
|
||||
if root.enabled && root.segmented: Button {
|
||||
text: root.overlay-hidden ? "Show the mask" : "Hide the mask";
|
||||
clicked => { root.overlay-hidden = !root.overlay-hidden; }
|
||||
}
|
||||
|
||||
// The second pass, offered rather than taken automatically.
|
||||
//
|
||||
// The model's input is a fixed 640x640 square and every frame is
|
||||
// letterboxed into it, so a subject that is small in the frame reaches
|
||||
// the model small — a bird at 200px in a 1600px proxy arrives at 80px,
|
||||
// and an outline traced at 80px is what a coarse mask is. Tiling runs
|
||||
// the model over overlapping windows instead, so that bird arrives at
|
||||
// its own size.
|
||||
//
|
||||
// It costs one inference per tile: about 2.8s for a 3x2 grid against
|
||||
// 470ms for the whole frame. That is the wrong trade for the usual
|
||||
// photograph, where the subject fills much of the frame and the first
|
||||
// pass is already the best answer available — so it is a button and
|
||||
// not a default, and it says what it costs.
|
||||
if root.enabled && root.segmented: Button {
|
||||
text: root.segmenting ? "Looking closer…" : "Look closer (slower)";
|
||||
enabled: !root.segmenting;
|
||||
clicked => { root.segment(true); }
|
||||
}
|
||||
|
||||
// Granularity, labelled by what it does rather than by its number:
|
||||
// "detail" is what a photographer is choosing between, where "300
|
||||
// regions" is an implementation detail they would have to learn.
|
||||
|
||||
Reference in New Issue
Block a user