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

Optimize model library #5841

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

hayden-fr
Copy link
Contributor

Adjust model list responses to prepare optimized model library.

Add model preview interface.

@@ -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")
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

@hayden-fr hayden-fr Nov 30, 2024

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.

@hayden-fr hayden-fr requested a review from huchenlei December 3, 2024 01:42
@robinjhuang robinjhuang added the Good PR This PR looks good to go, it needs comfy's final review. label Dec 3, 2024
Copy link
Collaborator

@huchenlei huchenlei left a 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.

@hayden-fr
Copy link
Contributor Author

Can you move model_filemanager.py to app/. All server extra paths should go there.

Ok

@hayden-fr hayden-fr requested a review from huchenlei December 6, 2024 05:53
3.8 compatibility
@comfyanonymous comfyanonymous merged commit 5747bc6 into comfyanonymous:master Dec 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good PR This PR looks good to go, it needs comfy's final review. Important
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants