ironjr commited on
Commit
b03f882
1 Parent(s): 11ad5ee

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +4 -4
model.py CHANGED
@@ -77,11 +77,11 @@ class StreamMultiDiffusion(nn.Module):
77
  self.default_mask_std = default_mask_std
78
  self.default_mask_strength = default_mask_strength
79
  self.default_prompt_strength = default_prompt_strength
80
- self.bootstrap_steps = (
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
 
77
  self.default_mask_std = default_mask_std
78
  self.default_mask_strength = default_mask_strength
79
  self.default_prompt_strength = default_prompt_strength
80
+ self.register_buffer('bootstrap_steps', (
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.register_buffer('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