KohakuBlueleaf / HyperKohaku

A diffusers based implementation of HyperDreamBooth
Apache License 2.0
125 stars 7 forks source link

How to mask the face during training? #12

Closed YoucanBaby closed 5 months ago

YoucanBaby commented 1 year ago

Thx for your project!~

I find this sentence in readme: 'Implement better dreambooth training (like masking the face during training)'.

But how to mask the face during training? Eg: random mask 50%?

KohakuBlueleaf commented 1 year ago

Thx for your project!~

I find this sentence in readme: 'Implement better dreambooth training (like masking the face during training)'.

But how to mask the face during training? Eg: random mask 50%?

I don't know how to do it either I just know there is something like that I have no time to read others' source code(

That's why it is in TODO but not Features

levi commented 1 year ago

Check out the face mask preprocessing of this PTI repo: https://github.com/replicate/cog-sdxl/blob/main/preprocess.py

KohakuBlueleaf commented 1 year ago

@levi Thx for informations now I know what it does.

YoucanBaby commented 1 year ago

Check out the face mask preprocessing of this PTI repo: https://github.com/replicate/cog-sdxl/blob/main/preprocess.py

Thx for your code~!