Skip to content

service for less latency #3

@MartinThoma

Description

@MartinThoma

I am currently writing the "Pflichtenheft" (as we have to for the practical). I think the mediseg project should have its own executable. This program should start and load the model before we feed it with images to reduce latency. We could use a web service approach as with sst before, but that is not so clean. Cleaner would be a system service.

I found a couple of sources how to create a Python service:

However, I'm currently not quite sure how to call the service and give it parameters.

Essentially, I am thinking of the following workflow:

  1. User (or system) starts the medisegd daemon
  2. Daemon loads model, makes as much as possible and keeps the important stuff in memory.
  3. User calls mediseg --input image.jpg --output segmentation.jpg as often as he wants with little latency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions