Added a way pass refiner ratio to sample config
This commit is contained in:
1 parent
a8b3b8b8da
commit
dc8448d958
4 files changed
+13
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user