diff options
Diffstat (limited to 'training/strategy/ti.py')
| -rw-r--r-- | training/strategy/ti.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/training/strategy/ti.py b/training/strategy/ti.py index 0de3cb0..66d3129 100644 --- a/training/strategy/ti.py +++ b/training/strategy/ti.py | |||
| @@ -144,8 +144,8 @@ def textual_inversion_strategy_callbacks( | |||
| 144 | @torch.no_grad() | 144 | @torch.no_grad() |
| 145 | def on_sample(step): | 145 | def on_sample(step): |
| 146 | with ema_context(): | 146 | with ema_context(): |
| 147 | unet_ = accelerator.unwrap_model(unet) | 147 | unet_ = accelerator.unwrap_model(unet, False) |
| 148 | text_encoder_ = accelerator.unwrap_model(text_encoder) | 148 | text_encoder_ = accelerator.unwrap_model(text_encoder, False) |
| 149 | 149 | ||
| 150 | orig_unet_dtype = unet_.dtype | 150 | orig_unet_dtype = unet_.dtype |
| 151 | orig_text_encoder_dtype = text_encoder_.dtype | 151 | orig_text_encoder_dtype = text_encoder_.dtype |
