Skip to content

Dreambooth LoRA finetune on a trained model (pth to diffusers) #243

Open
@yayueLaurazhou

Description

@yayueLaurazhou

I trained a Efficient-Large-Model/Sana_1600M_1024px/checkpoints/Sana_1600M_1024px.pth to generate image in a certain style(camera angle and composition), the checkpoints are in .pth

I want to use this script below to dreambooth LoRA finetune the model I trained to generate a certain object,

accelerate launch --num_processes 8 --main_process_port 29500 --gpu_ids 0,1,2,3
train_scripts/train_dreambooth_lora_sana.py
--pretrained_model_name_or_path=$MODEL_NAME
--instance_data_dir=$INSTANCE_DIR
--output_dir=$OUTPUT_DIR
--mixed_precision="bf16"
--instance_prompt="a photo of sks dog"
--resolution=1024
--train_batch_size=1
--gradient_accumulation_steps=4
--use_8bit_adam
--learning_rate=1e-4
--report_to="wandb"
--lr_scheduler="constant"
--lr_warmup_steps=0
--max_train_steps=500
--validation_prompt="A photo of sks dog in a pond, yarn art style"
--validation_epochs=25
--seed="0"
--push_to_hub

but it seems like it doesn't support pth models, only diffusers, any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnsweredAnswered the question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions