A LoCon/LyCORIS for black-and-white anime line art, designed for SD 2.1-series models, specifically WD 1.5 beta 3.
Setup and settings
Install the LoCon extension. For better results, generate at 512 × 768 pixels and use Hires.fix to upscale by 1.5×.
Recommended positive prompt
monochrome, lineart, <lyco:sd2ly_line:0.65>
Recommended negative prompt
(mayng:1.4), fullcolor, photo, shadow
See the sample images for example prompts.
Mayng (SD v2 negative embedding): https://huggingface.co/852wa/hakoMay/tree/main
Description
FAQ
Comments (8)
Unable to run
RuntimeError: The size of tensor a (768) must match the size of tensor b (1024) at non-singleton dimension 1
@kirada I think you're using it with a 1.5 model... It's a 2.1 model Lora, working fine with me !
@kirada that's a lycoris that was made for stable diffusion 2.1, so it's normal to getting error on an SD1.5 models
This is how I got this LyCORIS to work:
+ Installed the LyCORIS webui extension from https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris. (A new LyCORIS tab appears in extra networks)
+ downloaded the sd2ly_line.safetensors and saved it to ..\stable-diffusion-webui\models\LyCORIS
+ downloaded and used a hakoMay model from https://huggingface.co/852wa/hakoMay/tree/main (I used hakoMayB)
+ I got an error "# A tensor with all NaNs was produced in Unet", To correct it, in a1111 webui go to Settings > Stable Diffussion > [check] Upcast cross attention layer to float32
What version is your stable-diffusion? 1.5 or 2.0?
@guderianw312wu I'm not using a raw stable diffusion release, i used a hakoMay model from https://huggingface.co/852wa/hakoMay/tree/main
The same problem occurred when I used comfyui's clip loader node to import mayng. It turns out that mayng is also a Lora model (the weight file is too small), so it says you need two Lora loaders, one connecting model and positive tip words, and mayng's lora connecting negative tip words.



