ai-toolkit icon indicating copy to clipboard operation
ai-toolkit copied to clipboard

Feat: Wandb logging

Open p1atdev opened this issue 1 year ago • 6 comments

I added wandb integration to monitor the training. Loss and sample image logging are supported.

image

Example config:

job: extension
config:
  name: "my_first_flux_lora_v1"
  process:
    - type: 'sd_trainer'
      training_folder: ...
      ... # other config
      # logging config
      logging: 
        use_wandb: true # enable wandb by this flag
        project_name: my_flux_lora_style_1 # default is "ai-toolkit"
        run_name: "first_try" # empty here to use random generated name by wandb

p1atdev avatar Aug 18 '24 01:08 p1atdev

I have found that the logging does not follow the logging.log_every parameter, so I have to fix that.

p1atdev avatar Aug 18 '24 01:08 p1atdev

Thank you. I'll go through and test all of this in the next few days when I get a chance.

jaretburkett avatar Aug 18 '24 21:08 jaretburkett

Does this work? Or is there a way to get a log for the loss currently?

robertvoy avatar Sep 04 '24 22:09 robertvoy

Hope this gets merged. Wandb logging would be nice to have

khronimo avatar Sep 12 '24 23:09 khronimo

What's the status on this one? I would love to use it as well....

davidattias avatar Sep 18 '24 18:09 davidattias

@jaretburkett any luck on testing? Oddly enough noticed that this trainer on Replicate supports it but not officially here yet

WetOnTheWater avatar Sep 19 '24 03:09 WetOnTheWater

Sorry this took so long. Thank you @p1atdev

jaretburkett avatar Sep 20 '24 02:09 jaretburkett

Awesome! Thank you @jaretburkett @p1atdev

davidattias avatar Sep 20 '24 06:09 davidattias

No need to fill out Wandb authentication?

terrificdm avatar Sep 27 '24 06:09 terrificdm

No need to fill out Wandb authentication?

You need to pip install wandb and then wandb login

Xqua avatar Sep 30 '24 11:09 Xqua