-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Optimize model library #5841
Optimize model library #5841
Conversation
@@ -221,20 +222,6 @@ async def get_root(request): | |||
def get_embeddings(self): | |||
embeddings = folder_paths.get_filename_list("embeddings") | |||
return web.json_response(list(map(lambda a: os.path.splitext(a)[0], embeddings))) | |||
|
|||
@routes.get("/models") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to keep these routes for now if we want to merge this PR first. If we decide to land this PR after frontend changes has landed, the frontend side needs to be able to handle both APIs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two APIs have not been removed, just moved to model_filemanager/model_filemanager.py
. I can restore it if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new API adds the prefix of /experiment
. My plan is to retain the original API and then migrate it to the original API after the new function is stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move model_filemanager.py to app/
. All server extra paths should go there.
Ok |
3.8 compatibility
Adjust model list responses to prepare optimized model library.
Add model preview interface.