diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

How to do fp16 finetuning for dreambooth inpainting?

Open shileims opened this issue 2 years ago • 5 comments

Hi @thedarkzeno and @patil-suraj Thanks for your excellent work on dream booth inpainting. My question is that how to perform fp16 dreambooth inpainting fine-tuning?

shileims avatar Jan 17 '23 06:01 shileims

Hey @shileims you can configure accelerate to use mixed precision, use accelerate config and it'll ask you bunch of question when it asks about mixed precision, choose fp16. Or you could also just pass --mixed_precision="fp16" as an argument to the script.

patil-suraj avatar Jan 17 '23 08:01 patil-suraj

As far as I can tell, there is no code in this repo to train an inpainting/outpainting model like the RunwayML model.

Update: there is a training script for inpainting here based off of the ones from diffusers

https://github.com/devilismyfriend/StableTuner/blob/main/scripts/trainer.py

thank you for sharing!

patil-suraj avatar Jan 26 '23 08:01 patil-suraj

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Feb 19 '23 15:02 github-actions[bot]