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

[Community] Enhanced Model Search #10417

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

suzukimain
Copy link
Contributor

What does this PR do?

This PR adds the functionality to search for Lora and textual_inversion in Model Search, as mentioned in a previous comment

!wget https://raw.githubusercontent.com/suzukimain/auto_diffusers/refs/heads/master/src/auto_diffusers/pipeline_easy.py

from pipeline_easy import EasyPipelineForText2Image

pipeline = EasyPipelineForText2Image.from_civitai("Dream")
# checkpoint_path: https://civitai.com/models/4384?modelVersionId=128713

pipeline.auto_load_lora_weights("Detail Tweaker")
# lora_path: https://civitai.com/models/58390?modelVersionId=62833
# trained_words: None

pipeline.auto_load_textual_inversion("EasyNegative", token="EasyNegative")
# textual_inversion_path: EasyNegative -> https://civitai.com/models/7808?modelVersionId=9208

About textual_inversion

This is also related to #10373. Due to the incompatibility of textual_inversion between SD 1.5 and SD 2.1, I have made it dynamically obtained based on the shape of the tokenizer.

Other major changes

  • Update the map to load single-file checkpoints with AutoPipeline
  • Change the displayed URL when loading the model to the URL of the site where the model is hosted.

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants