Spaces:
Runtime error
Runtime error
fix hoook bug
Browse files
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 |
|