Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
@@ -81,7 +81,7 @@ class StreamMultiDiffusion(nn.Module):
|
|
81 |
bootstrap_steps > torch.arange(len(t_index_list))).to(dtype=self.dtype, device=self.device)
|
82 |
self.bootstrap_mix_steps = bootstrap_mix_steps
|
83 |
self.bootstrap_mix_ratios = (
|
84 |
-
bootstrap_mix_steps - torch.arange(len(t_index_list),
|
85 |
# self.bootstrap_leak_sensitivity = bootstrap_leak_sensitivity
|
86 |
self.preprocess_mask_cover_alpha = preprocess_mask_cover_alpha
|
87 |
self.mask_type = mask_type
|
|
|
81 |
bootstrap_steps > torch.arange(len(t_index_list))).to(dtype=self.dtype, device=self.device)
|
82 |
self.bootstrap_mix_steps = bootstrap_mix_steps
|
83 |
self.bootstrap_mix_ratios = (
|
84 |
+
bootstrap_mix_steps - torch.arange(len(t_index_list), device=self.device)).clip_(0, 1).to(self.dtype)
|
85 |
# self.bootstrap_leak_sensitivity = bootstrap_leak_sensitivity
|
86 |
self.preprocess_mask_cover_alpha = preprocess_mask_cover_alpha
|
87 |
self.mask_type = mask_type
|