Upload CM3PForBeatmapClassification
Browse files- config.json +2 -2
- configuration_cm3p.py +8 -8
config.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
"max_position_embeddings": 4096,
|
| 26 |
"mlp_bias": false,
|
| 27 |
"mlp_dropout": 0.0,
|
| 28 |
-
"model_type": "
|
| 29 |
"n_ftt": 2048,
|
| 30 |
"n_mels": 80,
|
| 31 |
"norm_bias": false,
|
|
@@ -73,7 +73,7 @@
|
|
| 73 |
"max_position_embeddings": 8192,
|
| 74 |
"mlp_bias": false,
|
| 75 |
"mlp_dropout": 0.0,
|
| 76 |
-
"model_type": "
|
| 77 |
"norm_bias": false,
|
| 78 |
"norm_eps": 1e-05,
|
| 79 |
"num_attention_heads": 12,
|
|
|
|
| 25 |
"max_position_embeddings": 4096,
|
| 26 |
"mlp_bias": false,
|
| 27 |
"mlp_dropout": 0.0,
|
| 28 |
+
"model_type": "CM3PAudio",
|
| 29 |
"n_ftt": 2048,
|
| 30 |
"n_mels": 80,
|
| 31 |
"norm_bias": false,
|
|
|
|
| 73 |
"max_position_embeddings": 8192,
|
| 74 |
"mlp_bias": false,
|
| 75 |
"mlp_dropout": 0.0,
|
| 76 |
+
"model_type": "CM3PBeatmap",
|
| 77 |
"norm_bias": false,
|
| 78 |
"norm_eps": 1e-05,
|
| 79 |
"num_attention_heads": 12,
|
configuration_cm3p.py
CHANGED
|
@@ -8,7 +8,7 @@ logger = logging.get_logger(__name__)
|
|
| 8 |
|
| 9 |
|
| 10 |
class CM3PMetadataConfig(PretrainedConfig):
|
| 11 |
-
model_type = "
|
| 12 |
base_config_key = "metadata_config"
|
| 13 |
|
| 14 |
def __init__(
|
|
@@ -91,7 +91,7 @@ class CM3PMetadataConfig(PretrainedConfig):
|
|
| 91 |
|
| 92 |
|
| 93 |
class CM3PAudioConfig(PretrainedConfig):
|
| 94 |
-
model_type = "
|
| 95 |
base_config_key = "audio_config"
|
| 96 |
|
| 97 |
def __init__(
|
|
@@ -176,7 +176,7 @@ class CM3PAudioConfig(PretrainedConfig):
|
|
| 176 |
|
| 177 |
|
| 178 |
class CM3PBeatmapConfig(PretrainedConfig):
|
| 179 |
-
model_type = "
|
| 180 |
base_config_key = "beatmap_config"
|
| 181 |
sub_configs = {"audio_config": CM3PAudioConfig}
|
| 182 |
|
|
@@ -279,7 +279,7 @@ class CM3PBeatmapConfig(PretrainedConfig):
|
|
| 279 |
|
| 280 |
|
| 281 |
class CM3PConfig(PretrainedConfig):
|
| 282 |
-
model_type = "
|
| 283 |
sub_configs = {"metadata_config": CM3PMetadataConfig, "beatmap_config": CM3PBeatmapConfig}
|
| 284 |
|
| 285 |
def __init__(
|
|
@@ -313,9 +313,9 @@ class CM3PConfig(PretrainedConfig):
|
|
| 313 |
self.loss_type = loss_type
|
| 314 |
|
| 315 |
|
| 316 |
-
AutoConfig.register("
|
| 317 |
-
AutoConfig.register("
|
| 318 |
-
AutoConfig.register("
|
| 319 |
-
AutoConfig.register("
|
| 320 |
|
| 321 |
__all__ = ["CM3PConfig", "CM3PMetadataConfig", "CM3PAudioConfig", "CM3PBeatmapConfig"]
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
class CM3PMetadataConfig(PretrainedConfig):
|
| 11 |
+
model_type = "CM3PMetadata"
|
| 12 |
base_config_key = "metadata_config"
|
| 13 |
|
| 14 |
def __init__(
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
class CM3PAudioConfig(PretrainedConfig):
|
| 94 |
+
model_type = "CM3PAudio"
|
| 95 |
base_config_key = "audio_config"
|
| 96 |
|
| 97 |
def __init__(
|
|
|
|
| 176 |
|
| 177 |
|
| 178 |
class CM3PBeatmapConfig(PretrainedConfig):
|
| 179 |
+
model_type = "CM3PBeatmap"
|
| 180 |
base_config_key = "beatmap_config"
|
| 181 |
sub_configs = {"audio_config": CM3PAudioConfig}
|
| 182 |
|
|
|
|
| 279 |
|
| 280 |
|
| 281 |
class CM3PConfig(PretrainedConfig):
|
| 282 |
+
model_type = "CM3P"
|
| 283 |
sub_configs = {"metadata_config": CM3PMetadataConfig, "beatmap_config": CM3PBeatmapConfig}
|
| 284 |
|
| 285 |
def __init__(
|
|
|
|
| 313 |
self.loss_type = loss_type
|
| 314 |
|
| 315 |
|
| 316 |
+
AutoConfig.register("CM3PMetadata", CM3PMetadataConfig)
|
| 317 |
+
AutoConfig.register("CM3PAudio", CM3PAudioConfig)
|
| 318 |
+
AutoConfig.register("CM3PBeatmap", CM3PBeatmapConfig)
|
| 319 |
+
AutoConfig.register("CM3P", CM3PConfig)
|
| 320 |
|
| 321 |
__all__ = ["CM3PConfig", "CM3PMetadataConfig", "CM3PAudioConfig", "CM3PBeatmapConfig"]
|