ironjr commited on
Commit
9557970
1 Parent(s): bb236fa

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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), dtype=self.dtype, device=self.device)).clip_(0, 1)
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