OSError: Error no file named model_index.json found in directory D:\xxx

#86
by FortMinor0417 - opened

i use local model ,but i got an error. where is model_index.json?
i can't find it in 'files and versions'

So how to fix it?

Not sure what are you trying to do. It worked fine

For StableSwarmUi, follow this guide
https://youtu.be/fynQ_qNbVB4

This comment has been hidden

What is described in the "Using with diffusers" section does not work. This provided example code is not working:

import torch
from diffusers import StableDiffusion3Pipeline

pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16) ------> FAILS as below
pipe = pipe.to("cuda")

image = pipe(
"A cat holding a sign that says hello world",
negative_prompt="",
num_inference_steps=28,
guidance_scale=7.0,
).images[0]
image

First of all, there is no such thing as "stable-diffusion-3-medium-diffusers" that can be loaded (FAILS with: The provided pretrained_model_name_or_path "/home/nuc/src/HuggingFace/diffusers/models/stable-diffusion-3-medium-diffusers" is neither a valid local path nor a valid repo id). If one tries "stable-diffusion-3-medium" as it should be, it FAILS with OSError: Error no file named model_index.json found in directory.

the same as you!!!

You are using the wrong repo for the diffusers backend. Use stabilityai/stable-diffusion-3-medium-diffusers instead, to access: https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/tree/main. This repo has model_index.json for diffusers.

Sign up or log in to comment