ASAC-pytorch 0.0.5__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/ASAC/ASAC.py +4 -4
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/PKG-INFO +2 -2
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/pyproject.toml +2 -2
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/.gitignore +0 -0
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/ASAC/__init__.py +0 -0
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/LICENSE +0 -0
- {asac_pytorch-0.0.5 → asac_pytorch-0.0.7}/README.md +0 -0
|
@@ -153,7 +153,7 @@ class AttentionSchema(Module):
|
|
|
153
153
|
self,
|
|
154
154
|
dim,
|
|
155
155
|
dim_bottleneck,
|
|
156
|
-
kl_div_loss =
|
|
156
|
+
kl_div_loss = True,
|
|
157
157
|
detach_target = True,
|
|
158
158
|
encoder: Module | None = None,
|
|
159
159
|
decoder: Module | None = None,
|
|
@@ -164,14 +164,14 @@ class AttentionSchema(Module):
|
|
|
164
164
|
super().__init__()
|
|
165
165
|
|
|
166
166
|
if not exists(encoder):
|
|
167
|
-
encoder = MLP(dim, dim_bottleneck, activation = nn.LeakyReLU())
|
|
167
|
+
encoder = MLP(dim, dim_bottleneck, dim_bottleneck, activation = nn.LeakyReLU())
|
|
168
168
|
|
|
169
169
|
self.encoder = encoder
|
|
170
170
|
|
|
171
171
|
self.vq = VectorQuantize(dim_bottleneck, **vq_kwargs)
|
|
172
172
|
|
|
173
173
|
if not exists(decoder):
|
|
174
|
-
decoder = MLP(dim_bottleneck, dim, activation = nn.LeakyReLU())
|
|
174
|
+
decoder = MLP(dim_bottleneck, dim_bottleneck, dim, activation = nn.LeakyReLU())
|
|
175
175
|
|
|
176
176
|
self.decoder = decoder
|
|
177
177
|
|
|
@@ -241,7 +241,7 @@ class ASAC(Module):
|
|
|
241
241
|
vq_codebook_size = 256,
|
|
242
242
|
recon_loss_weight = 1.,
|
|
243
243
|
commit_loss_weight = 1.,
|
|
244
|
-
kl_div_loss =
|
|
244
|
+
kl_div_loss = True
|
|
245
245
|
):
|
|
246
246
|
super().__init__()
|
|
247
247
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ASAC-pytorch
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: Implementation of Attention Schema-based Attention Control (ASAC)
|
|
5
5
|
Project-URL: Homepage, https://pypi.org/project/ASAC/
|
|
6
6
|
Project-URL: Repository, https://codeberg.org/lucidrains/ASAC
|
|
@@ -38,7 +38,7 @@ Requires-Dist: einops>=0.8.1
|
|
|
38
38
|
Requires-Dist: einx>=0.3.0
|
|
39
39
|
Requires-Dist: ema-pytorch
|
|
40
40
|
Requires-Dist: torch-einops-utils>=0.1.2
|
|
41
|
-
Requires-Dist: torch>=2.
|
|
41
|
+
Requires-Dist: torch>=2.4
|
|
42
42
|
Requires-Dist: vector-quantize-pytorch
|
|
43
43
|
Requires-Dist: x-mlps-pytorch
|
|
44
44
|
Requires-Dist: x-transformers
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ASAC-pytorch"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.7"
|
|
4
4
|
description = "Implementation of Attention Schema-based Attention Control (ASAC)"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
|
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
"einx>=0.3.0",
|
|
28
28
|
"einops>=0.8.1",
|
|
29
29
|
"ema-pytorch",
|
|
30
|
-
"torch>=2.
|
|
30
|
+
"torch>=2.4",
|
|
31
31
|
"torch-einops-utils>=0.1.2",
|
|
32
32
|
"vector-quantize-pytorch",
|
|
33
33
|
"x-transformers",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|