mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-11-05 01:27:20 +00:00
[GH-ISSUE #52] [Feature Request] : Ext through API #47
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pharmapsychotic/clip-interrogator-ext#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MeinDeutschkurs on GitHub (Jun 3, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/52
Hi everyone,
I'm stuck I cannot figure out, how to submit the model "fast" instead of the default one:
Greetings from Austria,
Johannes
@pharmapsychotic commented on GitHub (Jun 11, 2023):
Oh that API is using the version of CLIP Interrogator that is builtin to stable-diffusion-webui and doesn't have all the modes of the extension. You can use the CLIP Interrogator library directly from https://github.com/pharmapsychotic/clip-interrogator if you are writing scripts and want to generate prompts.
@MeinDeutschkurs commented on GitHub (Jun 12, 2023):
I see, the API endpoint has nothing to do with your extension. If so, sorry for the mix up. So, I should use the command line version.
I will loose the queue, but I‘ll try it. Thx.
@MeinDeutschkurs commented on GitHub (Jun 13, 2023):
@pharmapsychotic , according to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11190#issuecomment-1588636208 I'd suggest/want to ask to make the extension available through API. That would be fantastic.
@pharmapsychotic commented on GitHub (Jun 13, 2023):
ooh that's cool, didn't know you could do that!
@MeinDeutschkurs commented on GitHub (Jun 13, 2023):
Yeah that rocks! The big advantage is the queue, which is on board with all the other tasks. That's amazing and for sure an enhancement! WOOHOO!
@cpietsch commented on GitHub (Jun 21, 2023):
Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.
@MeinDeutschkurs commented on GitHub (Jun 21, 2023):
I was asking for doing this. I'm not a programmer, I'm keen to test and play.
@MeinDeutschkurs commented on GitHub (Jun 22, 2023):
I watched yesterday some videos about FastAPI and grado. It‘s amazing, how Interfaces and endpoints can be knitted with it. At the weekend I try to combine all my local models with it.
As mentioned, I love the queue system. Who knows, maybe I‘m then able to understand the above code. I don‘t want to exclude it. But first I have to understand all of this.
@cpietsch commented on GitHub (Jun 27, 2023):
Working on it and will make a pull request soon.
Is there a rule/convention for naming an extension api endpoint ?
For now I went with
/interrogator/modelsand/interrogator/analyze@MeinDeutschkurs commented on GitHub (Jun 27, 2023):
That is amazing! Thank you so much for your efforts!!! At the weekend I was able to get in touch with python and FastAPI. I came not that far, I'm scratching on the very top of the ice-plate. I have no idea about conventions, but maybe
/clip-interrogator-ext/modelsand/clip-interrogator-ext/analysemakes sense, to avoid mixing it up with the stock-one (as happened to me as I created the initial post).@cpietsch commented on GitHub (Jun 27, 2023):
I went for the /interrogator/* path since the internal one is exposed via /sdapi/v1/interrogate
@pharmapsychotic commented on GitHub (Jun 27, 2023):
Thanks for the PR this will be great!
@MeinDeutschkurs commented on GitHub (Jun 28, 2023):
Thank you so much! That's awesome! I did the update through webui and I can't wait to test it later that day! 👏👏👏👏