stable diffusion finetuned on weeb stuff
Go to file
Carlos Chavez f2cfe65d09
Move the movel to device BEFORE creating the optimizer
>It shouldn’t matter, as the optimizer should hold the references to the parameter (even after moving them). However, the “safer” approach would be to move the model to the device first and create the optimizer afterwards.

https://discuss.pytorch.org/t/should-i-create-optimizer-after-sending-the-model-to-gpu/133418/2
https://discuss.pytorch.org/t/effect-of-calling-model-cuda-after-constructing-an-optimizer/15165

At least in my experience with hivemind, if you initialize the optimizer and move the model afterwards, it will throw errors about finding some data in CPU and other on GPU. This shouldn't affect performance or anything I believe.
2022-11-20 00:09:35 -05:00
dataset Add aesthetic 2022-11-10 13:01:11 -07:00
trainer Move the movel to device BEFORE creating the optimizer 2022-11-20 00:09:35 -05:00
.gitignore Fix. 2022-11-13 08:24:40 -07:00
.gitmodules relicense 2022-11-10 12:59:53 -07:00
Dockerfile relicense 2022-11-10 12:59:53 -07:00
LICENSE relicense 2022-11-10 12:59:53 -07:00
README.md relicense 2022-11-10 12:59:53 -07:00
requirements.txt relicense 2022-11-10 12:59:53 -07:00

README.md

Waifu Diffusion

Waifu Diffusion is the name for this project of finetuning Stable Diffusion on anime-styled images.

1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt

Setup

pip install -r requirements.txt

Project Structure

├── dataset: Dataset preparation and utilities
│   ├── aesthetic: Aesthetic ranking
│   └── download: Downloading utilities
└── trainer: The actual training code

License

Training Code: AGPL-3.0 Model Weights: CreativeML Open RAIL-M

Discord Server