files doesnt work
#1
by
mehmetsatcodeway
- opened
OSError: nerijs/lego-brickheadz-xl does not appear to have a file named pytorch_lora_weights.bin.
AttributeError: 'UNet2DConditionModel' object has no attribute 'input'
Hi
@mehmetsatcodeway
, you can load it on diffusers by giving it a weight_name
that is correspondent to the safetensors
file here
model_id = "nerijs/lego-brickheadz-xl"
weight_name = "legobrickheadz-v1.0-000004.safetensors"
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
)
pipe.load_lora_weights(
model_id, weight_name=weight_name
)
Not sure what the exact issue is, @mehmetsatcodeway , but I had a similar-ish problem and I realized I had to install the main branch instead of the v0.19.3.
No it is already in main branch:/ @neiisan
after creating a new env and install only packages needed it works :!!