• Zhenhuan Liu's avatar
    Add training example for DreamBooth. (#554) · 3b747de8
    Zhenhuan Liu authored
    
    
    * Add training example for DreamBooth.
    
    * Fix bugs.
    
    * Update readme and default hyperparameters.
    
    * Reformatting code with black.
    
    * Update for multi-gpu trianing.
    
    * Apply suggestions from code review
    
    * improgve sampling
    
    * fix autocast
    
    * improve sampling more
    
    * fix saving
    
    * actuallu fix saving
    
    * fix saving
    
    * improve dataset
    
    * fix collate fun
    
    * fix collate_fn
    
    * fix collate fn
    
    * fix key name
    
    * fix dataset
    
    * fix collate fn
    
    * concat batch in collate fn
    
    * add grad ckpt
    
    * add option for 8bit adam
    
    * do two forward passes for prior preservation
    
    * Revert "do two forward passes for prior preservation"
    
    This reverts commit 661ca4677e6dccc4ad596c2ee6ca4baad4159e95.
    
    * add option for prior_loss_weight
    
    * add option for clip grad norm
    
    * add more comments
    
    * update readme
    
    * update readme
    
    * Apply suggestions from code review
    Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
    
    * add docstr for dataset
    
    * update the saving logic
    
    * Update examples/dreambooth/README.md
    
    * remove unused imports
    Co-authored-by: default avatarSuraj Patil <surajp815@gmail.com>
    Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
    3b747de8
README.md 4.92 KB