Skip to content

Expose prediction progress/callback hook for external callers (per-slice progress) #77

@NicoKiaru

Description

@NicoKiaru

Hi!

I’m improving my DeepSlice integration into ABBA and would like to show a progress bar while DSModel.predict() is running (e.g., progress updates as each slice is predicted).

Currently DSModel.predict() calls neural_network.predictions_util(), which runs model.predict(..., verbose=1). This prints progress to stdout, but there’s no structured way for an external caller to monitor progress (callback/events), and parsing stdout is brittle.

Request: Please consider adding an optional progress mechanism, e.g.:

  • DSModel.predict(..., callbacks=None) and pass through to Keras model.predict(callbacks=callbacks), or
  • a simple progress_callback(done:int, total:int, filename:str|None) called per predicted slice/batch.

This would make it much easier to integrate DeepSlice into GUIs and pipelines without forking.

Thanks!

(Disclaimer: issue redacted by copilot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions