Fix: change of modeling and config to autoencoder type
Browse files
config.json
CHANGED
|
@@ -1,9 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"model_type": "
|
| 3 |
-
"latent_dim": 256
|
| 4 |
-
|
| 5 |
-
"auto_map": {
|
| 6 |
-
"AutoModel": "modeling_autoencoder.AutoencoderModel",
|
| 7 |
-
"AutoConfig": "modeling_autoencoder.AutoencoderConfig"
|
| 8 |
-
}
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "autoencoder",
|
| 3 |
+
"latent_dim": 256
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
configuration_conv_autoencoder.py → configuration_autoencoder.py
RENAMED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
from transformers import PretrainedConfig
|
| 2 |
|
| 3 |
-
class
|
| 4 |
-
model_type = "
|
| 5 |
|
| 6 |
def __init__(self, latent_dim=256, **kwargs):
|
| 7 |
super().__init__(**kwargs)
|
| 8 |
-
self.latent_dim = latent_dim
|
| 9 |
-
|
|
|
|
| 1 |
from transformers import PretrainedConfig
|
| 2 |
|
| 3 |
+
class AutoencoderConfig(PretrainedConfig):
|
| 4 |
+
model_type = "autoencoder"
|
| 5 |
|
| 6 |
def __init__(self, latent_dim=256, **kwargs):
|
| 7 |
super().__init__(**kwargs)
|
| 8 |
+
self.latent_dim = latent_dim
|
|
|