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

[enhancement]: Lora Info (Trigger Words) #7656

Open
1 task done
vrubzov1957 opened this issue Feb 19, 2025 · 0 comments
Open
1 task done

[enhancement]: Lora Info (Trigger Words) #7656

vrubzov1957 opened this issue Feb 19, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@vrubzov1957
Copy link

vrubzov1957 commented Feb 19, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

Feature for display information about LORA - primarily key trigger words (but showing other info also useful - like example_prompt).
For example, we can receive information from CivitAI or a similar resources.

Because when there is a lot of Lora, which also have strange names (the names of files do not correspond to the names of webpages where it is hosted) or been renamed - you forget where from downloaded files. But it is important to use keywords so that the Lora is applied correctly

Alternatives

As example: node for Comfy UI - Lora Info (https://github.com/jitcoder/lora-info)

You can find in code it is quite easy:

  • calculate sha256 for model
  • get JSON from open API CivitAI (/api/v1/model-versions/by-hash/{sha256})
  • and extract trainedWords (and examplePrompt) section from JSON

Reply from API sometimes not so fast, and because of it - will be good use api request in async mode; even may be will be useful store this information about Lora model in DB.

Additional Content

No response

@vrubzov1957 vrubzov1957 added the enhancement New feature or request label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant