Added a way pass refiner ratio to sample config

This commit is contained in:
Jaret Burkett committed 2023-11-06 09:22:58 -07:00
1 parent a8b3b8b8da
commit dc8448d958
4 files changed
+13 -4

No files matched your search

+3
View File
@@ -69,6 +69,9 @@ def get_train_sd_device_state_preset(
preset['refiner_unet']['training'] = True
preset['refiner_unet']['requires_grad'] = True
preset['refiner_unet']['device'] = device
# if not training unet, move that to cpu
if not train_unet:
preset['unet']['device'] = 'cpu'
if train_lora:
# preset['text_encoder']['requires_grad'] = False