Skip to content

Commit

Permalink
fix(mm): config.json to indicates diffusers model
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Mar 13, 2024
1 parent 74361aa commit e97eb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invokeai/backend/model_manager/metadata/fetch/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def from_id(self, id: str, variant: Optional[ModelRepoVariant] = None) -> AnyMod
)
)

# diffusers models have a `model_index.json` file
is_diffusers = any(str(f.url).endswith("model_index.json") for f in files)
# diffusers models have a `model_index.json` or `config.json` file
is_diffusers = any(str(f.url).endswith(("model_index.json", "config.json")) for f in files)

# These URLs will be exposed to the user - I think these are the only file types we fully support
ckpt_urls = (
Expand Down

0 comments on commit e97eb7b

Please sign in to comment.