songweig commited on
Commit
b6a6773
1 Parent(s): 82af0fa

fix hoook bug

Browse files
Files changed (1) hide show
  1. models/region_diffusion.py +2 -0
models/region_diffusion.py CHANGED
@@ -38,6 +38,8 @@ class RegionDiffusion(nn.Module):
38
 
39
  self.masks = []
40
  self.attention_maps = None
 
 
41
  self.color_loss = torch.nn.functional.mse_loss
42
  self.forward_replacement_hooks = []
43
 
 
38
 
39
  self.masks = []
40
  self.attention_maps = None
41
+ self.selfattn_maps = None
42
+ self.crossattn_maps = None
43
  self.color_loss = torch.nn.functional.mse_loss
44
  self.forward_replacement_hooks = []
45