Giter Site home page Giter Site logo

Comments (13)

pharmapsychotic avatar pharmapsychotic commented on September 26, 2024 1

ooh that's cool, didn't know you could do that!

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024 1

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

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.

from clip-interrogator-ext.

cpietsch avatar cpietsch commented on September 26, 2024 1

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/models and /interrogator/analyze

image

from clip-interrogator-ext.

cpietsch avatar cpietsch commented on September 26, 2024 1

I went for the /interrogator/* path since the internal one is exposed via /sdapi/v1/interrogate

from clip-interrogator-ext.

pharmapsychotic avatar pharmapsychotic commented on September 26, 2024

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.

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

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.

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

@pharmapsychotic , according to AUTOMATIC1111/stable-diffusion-webui#11190 (comment) I'd suggest/want to ask to make the extension available through API. That would be fantastic.

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

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!

from clip-interrogator-ext.

cpietsch avatar cpietsch commented on September 26, 2024

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

I was asking for doing this. I'm not a programmer, I'm keen to test and play.

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

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/models and /interrogator/analyze

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/models and /clip-interrogator-ext/analyse makes sense, to avoid mixing it up with the stock-one (as happened to me as I created the initial post).

from clip-interrogator-ext.

pharmapsychotic avatar pharmapsychotic commented on September 26, 2024

Thanks for the PR this will be great!

from clip-interrogator-ext.

MeinDeutschkurs avatar MeinDeutschkurs commented on September 26, 2024

Thank you so much! That's awesome! I did the update through webui and I can't wait to test it later that day! 👏👏👏👏

from clip-interrogator-ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.