CPSuperstore / SAMInterface

A simple interface for Facebook Research's Segment Anything Model
Apache License 2.0
1 stars 0 forks source link

Button to cancel export process #2

Open CPSuperstore opened 1 month ago

CPSuperstore commented 1 month ago

Add a button that cancels the export process and returns the user to the export screen.

CPSuperstore commented 1 month ago

The export process runs as a thread which can not be terminated from the main process, so a "continue in background" button was added instead.

CPSuperstore commented 1 month ago

Use a subprocess instead of a thread for the exporter as it only needs to write out files. This way it can be killed when the cancel button is pressed.

CPSuperstore commented 1 month ago

Pickling is bloated. The export process should be made independent of the main program to avoid extra waiting times and serialization problems. Major architectural changes will be needed before this can be done.