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

Route to register aiModel #8127

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Route to register aiModel #8127

wants to merge 6 commits into from

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Oct 16, 2024

To be called by a voxelytics PublishModelTask. Needs the token of a superuser.

Issues:


@fm3 fm3 self-assigned this Oct 16, 2024
@fm3
Copy link
Member Author

fm3 commented Oct 16, 2024

@valentin-pinkau I created the route POST api/v8/aiModels/register. It expects a json object body with

id: String, // must be unique and a valid MongoDB ObjectId, compare https://pymongo.readthedocs.io/en/stable/api/bson/objectid.html
dataStoreName: String, // "localhost" for standard dev setup, "webknossos.org" for webknossos.org (data-humerus)
name: String, // Must be unique.
comment: Option[String],
category: Option[String] // if present, must be one of em_neurons, em_nuclei, em_synapses, em_neuron_types, em_cell_organelles

It expects that the model is already present in the .aiModels directory, compare worker. The route does not currently assert that the model is there on disk and usable.

The X-Auth-Token HTTP header must be set to the user’s auth token.

Do you think that will work for the PublishModelTask?

@fm3 fm3 marked this pull request as ready for review October 17, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant