Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupt prediction and tiled prediction #370

Open
jdeschamps opened this issue Jan 23, 2025 · 0 comments
Open

Interrupt prediction and tiled prediction #370

jdeschamps opened this issue Jan 23, 2025 · 0 comments
Labels
feature New feature or request

Comments

@jdeschamps
Copy link
Member

Problem

In the UI, we need to be able to interrupt long processes. For instance, Lightning has a mechanism for interrupting training, which we use in the CAREamist:

def stop_training(self) -> None:

Now, that is not the case for prediction. We probably will need to implement it directly into CAREamics.

Potential solutions

Three cases:

  • Predict to disk: easy enough, we can interrupt the loop.
  • Predict from tiles: we need to interrupt the Dataset (pretend that there are no more tiles) and detect that not all tiles have been created (missing last_tile?)
  • Predict on a single image: probably nothing we can do?

This is linked to: CAREamics/careamics-napari#18 (comment)

@melisande-c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant