CivArchive
    DreamBooth / LyCORIS / LORA Guide - Base Model in Diffusers

    Hello!

    Here is the guide some people requested :-)

    https://rentry.co/lycoris-and-lora-from-dreambooth

    This is how I make my LyCORIS models.

    The zip file that you can download contains the mp4 video tutorial part of the guide. You do not need to download it, it is also available online if you check the rentry page :)

    EDIT: there is a second version called "Base Model in Diffusers" - this contains the exact model (based on RV2.0) that I use for my training.

    Enjoy!

    Description

    This is the base model converted to diffusers format (based on RV2.0)

    FAQ

    Comments (26)

    RedKritsMay 26, 2023
    CivitAI

    what does safety_checker & feature_extractor do? in the diffuser folder, can I delete those?

    malcolmrey
    Author
    May 26, 2023· 1 reaction

    you may try, but without them, my default shivam shiraro was unable to convert the model (the training was done till the end but in the dumping phase to diffusers it complained that those were missing)

    I was actually surprised the first time because during the conversion of RV2.0 to diffusers those were missing, I had to take them from the previous model but fortunately, it worked for me

    if you're going to remove them, you should also mind the json file (model_index.json) (either remove those two entries from it or set the values to null, but like i said - my repo needed it)

    tl986Jun 3, 2023· 4 reactions
    CivitAI

    Came for the Lycoris lesson. Stayed for the eloquence. Holy shit, sir...you are a poet laureate.

    malcolmrey
    Author
    Jun 3, 2023

    Haha, thank you. I hoped that someone would appreciate it :)

    toucandannJun 16, 2023
    CivitAI

    How can I use the Base Model in Diffusers for Dreambooth via the A1111 UI? I can't find a .ckpt or .safetensors file in the download, and I'm not sure how to proceed without one.

    malcolmrey
    Author
    Jun 16, 2023

    for A1111 you need ckpt/safetensors version which you can grab directly from here: https://civitai.com/models/4201/realistic-vision-v20

    the diffusers version is used for other repositories like ShimamShrirao or well, diffusers :-)

    instead of checkpoint format, those expect the diffusers format

    noneoofurbusinessJun 19, 2023· 13 reactions
    CivitAI

    It's a very misleading title. There needs to be a more detailed guide on what settings to use when extracting lora/lycoris, the comparison of different settings etc. The video you attached only covers the dreambooth training which people have been doing for ages. I bet people clicking on your post would rather read how to extract lora/lycoris in detail.

    UZYJun 22, 2023

    The tutorial is good, but i agree it needs to be more detailed, bc i have been watching it for a month and i use colab, i can't understand how he even changes model to realisticvision, i don't even know how to choose right path, every time i get an error, and i want to know how he trains it so good

    malcolmrey
    Author
    Jun 24, 2023

    @noneoofurbusiness can you clarify your question on what exactly is the main problem that you are facing?

    I have attached the script parameters that I use to extract it from dreambooth into LyCORIS

    pretty much what I do is execute the script from the command line as follows:

    python D:/Development/StableDiffusion/LyCORIS/tools/extract_locon.py --safetensors --device=cuda --mode="fixed" --linear_dim=64 --conv_dim=32 C:/Development/StableDiffusion/stable-diffusion-webui/models/Stable-diffusion/realisticVisionV20_v20.ckpt F:/Development/StableDiffusion/SDModels/Models/converted/model_elizabethbanks_v1_realistic2_3000.ckpt C:/Development/StableDiffusion/stable-diffusion-webui/models/Stable-diffusion/locon/locon_elizabethbanks_v1_from_v1_64_32.safetensors

    this:C:/Development/StableDiffusion/stable-diffusion-webui/models/Stable-diffusion/realisticVisionV20_v20.ckpt

    is the path to the base model that you use for dreambooth training (in my case RV2.0)

    this: F:/Development/StableDiffusion/SDModels/Models/converted/model_elizabethbanks_v1_realistic2_3000.ckpt
    is the path to the created dreambooth model

    and this: C:/Development/StableDiffusion/stable-diffusion-webui/models/Stable-diffusion/locon/locon_elizabethbanks_v1_from_v1_64_32.safetensors

    is the output path where the LyCORIS model should be saved

    you also see the dimentions params (64/32)

    this is pretty much all in regards to extracting LyCORIS from the dreambooth :)

    malcolmrey
    Author
    Jun 24, 2023

    "i can't understand how he even changes model to realisticvision, i don't even know how to choose right path"

    @UZY on the rentry page of the guide is the train_morgan.sh file

    the first line is: export MODEL_NAME="/home/malcolmrey/models/realistic2"

    you put there the path to your base model (in my case realistic vision2), the base folder needs to be in the diffusers format, if you want to use realistic vision 2 then in this guide there is the second version called base model in diffusers: https://civitai.com/models/45539?modelVersionId=81468

    you need to get the zip and extract it to the folder that you put under the MODEL_NAME

    Stop_Civvy_TimeAug 24, 2023

    @malcolmrey I've tried everything and I can't get this extraction method to work.

    Installed everything it asks for and finally end up with this

    Unexpected key(s) in state_dict: "text_model.embeddings.position_ids"

    Nothing I can seem to do will rid me of that error

    malcolmrey
    Author
    Aug 26, 2023

    @Stop_Civvy_Time unfortunately i think i know what could be the problem - it is most likely a mismatch of the libraries (transformers+diffusers or just one of those) between dreambooth and kohya

    which extraction tool are you using? the standalone from kohakublueleaf or the one already included in the kohya_ss?

    FuckingdopeJul 13, 2023· 1 reaction
    CivitAI

    Hello Malcolm, i'm big fan of your models, i tried to follow this guide but i come up with couple errors

    1. I used ShivamShrirao repo and i got this error once i started training

    train_dreambooth.py: error: unrecognized arguments: --shuffle_after_epoch /
    ------------------------------
    2. So i used newer repo InB4DevOps one and i got this error after an hour and half of training
    Any idea how these can be fixed, Thanks

    malcolmrey
    Author
    Jul 14, 2023· 1 reaction

    Hi @Fuckingdope

    1. thanks! :-)

    2. yes, shivamshirao does not have this switch: shuffle_after_epoch, it is exclusive to inb4 (so if you would like to try shivam in the future, just remove that parameter)

    3. 1 hour and 30 minutes is usually my training times, i see that for you the training actually finished with 1 hour and 47 minutes: Steps: 100% 3000/3000 [1:46:57<00:00, 2.14s/it, loss=0.259, lr=1e-6]

    seems that the error comes during the saving process itself, mainly this:

    ValueError: The component <class 'transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor'> of <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> cannot be loaded as it does not seem to have any of the loading methods defined in {'ModelMixin': ['save_pretrained', 'from_pretrained'], 'SchedulerMixin': ['save_config', 'from_config'], 'DiffusionPipeline': ['save_pretrained', 'from_pretrained'], 'OnnxRuntimeModel': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizer': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizerFast': ['save_pretrained', 'from_pretrained'], 'PreTrainedModel': ['save_pretrained', 'from_pretrained'], 'FeatureExtractionMixin': ['save_pretrained', 'from_pretrained']}.

    so my question is, what do you use as your base model? do you have a local model in diffusers format? common issue (at least for me) was that the diffuser format model was missing some folder (something was not provided in the safetensor/ckpt file that was not needed for inference but is needed for training)

    just in case you do in fact use a local model, then in the folder of that model should be a model_index.json file with content like this:

    {

    "_class_name": "StableDiffusionPipeline",

    "_diffusers_version": "0.10.2",

    "feature_extractor": [

    "transformers",

    "CLIPFeatureExtractor"

    ],

    "safety_checker": [

    "stable_diffusion",

    "StableDiffusionSafetyChecker"

    ],

    "scheduler": [

    "diffusers",

    "DDIMScheduler"

    ],

    "text_encoder": [

    "transformers",

    "CLIPTextModel"

    ],

    "tokenizer": [

    "transformers",

    "CLIPTokenizer"

    ],

    "unet": [

    "diffusers",

    "UNet2DConditionModel"

    ],

    "vae": [

    "diffusers",

    "AutoencoderKL"

    ]

    }

    and you should also have a subfolder feature_extractor with preprocessor_config.json

    I'm mentioning this specific folder because the error pointed to it: The component <class 'transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor'> of <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> cannot be loaded

    malcolmrey
    Author
    Jul 14, 2023· 1 reaction

    I have provided in the second version 'base model in diffusers" so if you're missing some of the files, you can copy it from there, those are for the most part generic so they serve well as a replacement

    also, if you want to test that this works fine, set steps to something low like 5 or 10 so that you can go to the saving part very quickly :)

    FuckingdopeJul 14, 2023

    @malcolmrey i actually used your model, base model in diffuser

    FuckingdopeJul 14, 2023

    @malcolmrey i used colab version, and i believe it's a xformer problem, if you don't mind having a look at colab because in Install {xformers from precompiled wheel} section whenever u run a code it get this error

    ERROR: xformers-0.0.14.dev0-cp37-cp37m-linux_x86_64.whl is not a supported wheel on this platform.

    malcolmrey
    Author
    Jul 15, 2023

    @Fuckingdope ah colab, ok

    i know xformers are/were problematic in general to install, the tutorials from nerdy show a specific version of xformers that worked at that time

    have you tried installing the latest one? or those that are installed with a1111?

    FuckingdopeJul 15, 2023

    @malcolmrey i tried upgrading them also didn't worked

    FuckingdopeJul 15, 2023

    @malcolmrey i haven't seen his tutorial, but in colab version there's only two xformers version they mentioned and both have the error 

    FuckingdopeJul 15, 2023

    @malcolmrey btw i tried shivamshirao it worked, and had quite good result, but the problem was, it doesn't have --shuffle_after_epoch, and also it only uses 500 class images once so i should make 3k class images for

    sevenof9247Jul 17, 2023· 1 reaction
    CivitAI

    yes always quality first ;)

    i have made your 800MB video small to 200MB without losing quality, where i should upload it ? :D

    LunakritaSep 13, 2023

    send me link bro

    malcolmrey
    Author
    Sep 16, 2023

    not sure why i have not seen it sooner, if you still have it, you can link on google drive and i can put it as a smaller version :)

    sevenof9247Sep 16, 2023· 1 reaction
    malcolmrey
    Author
    Sep 17, 2023

    @sevenof9247 thanks! uploaded the smaller file, i hope you like the new sample image :-)

    Other
    SD 1.5

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    520
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    5/26/2023
    Updated
    4/27/2026
    Deleted
    12/12/2025

    Files

    dreamboothLycorisLORA_baseModelInDiffusers.zip

    Available On (1 platform)

    Same model published on other platforms. May have additional downloads or version variants.