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

Robustar v0.3 Main Features #175

Open
4 tasks
PaulCCCCCCH opened this issue Jun 20, 2023 · 0 comments
Open
4 tasks

Robustar v0.3 Main Features #175

PaulCCCCCCH opened this issue Jun 20, 2023 · 0 comments
Labels

Comments

@PaulCCCCCCH
Copy link
Owner

PaulCCCCCCH commented Jun 20, 2023

See design doc here

The most important features we want to support in v0.3 are:

  • Switching between different models
  • Upload and validate custom models

For this, we will have to implement and make use of the following APIs.

@route(GET, "/model/current")
def GetCurrModel():
    """ Get the model that is currently active """
	""" return data
	{
		id: string,
		name: string,
		details: string,
	}
	"""
	
@route(POST, "/model/current/<id>")
def SetCurrModel(id: string):
  	""" return 200 on success """

@route(DELETE, "/model/<id>")
def DeleteModel():
	""" return data
	{
		id: string,
		name: string,
		details: string,
	}
	"""

@route(POST, "/model")
def UploadModel():
    """ Should also accept (optionally) a model weight file as argument """
    """ After training a model, should do the same"""
  	""" return data
  		{
  			id: string,
  			name: string,
  			details: string,
  		}
  	
  	"""
    
@route(GET, "/model/list")
def GetAllModels():
  	""" return data
  	[
  		{
  			id: string,
  			name: string,
  			details: string,
  		},
  		...
  	]
  	"""

To implement these APIs, we need to make the following changes in the backend:

  • Extend RModelWrapper for dynamic model loading
  • Redesign database schema
  • Model upload and validation

Frontend tasks include:

  • Allow user to upload a model and see validation result
  • See a list of models, view their details and delete any of them
  • Select a model and use it as the current model

We will break down the feature into the tasks below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant