Source code for lcm_xl_lora_pokemon_blip

from mmengine.config import read_base

from diffengine.engine.hooks import PeftSaveHook, VisualizationHook

with read_base():
    from .._base_.datasets.pokemon_blip_xl_pre_compute import *
    from .._base_.default_runtime import *
    from .._base_.models.lcm_xl_lora import *
    from .._base_.schedules.lcm_xl_50e import *


train_dataloader.update(batch_size=2)

optim_wrapper.update(
    optimizer=dict(lr=1e-5),
    accumulative_counts=2)

[docs]custom_hooks = [ dict( type=VisualizationHook, prompt=["yoda pokemon"] * 4, height=1024, width=1024), dict(type=PeftSaveHook), ]