config file ?
#1
by
dileepvk98
- opened
OSError: Error no file named model_index.json found in directory pixelart_model
from diffusers import StableDiffusionPipeline
from diffusers import AutoPipelineForText2Image
import torch
from pathlib import Path
pipeline = AutoPipelineForText2Image.from_pretrained(str(Path("./pixelart_model")), torch_dtype=torch.float16, use_safetensors=True).to("cuda")
image = pipeline(prompt="a cat riding a sports bike with tyres on fire, pixel art style").images[0]
image.save("out.png")
This is a Lora, not a base model, use a similar code to this example:
https://twitter.com/multimodalart/status/1801152342558990343
nerijs
changed discussion status to
closed
thanks. will try it out