OliBomby commited on
Commit
6ed7ed0
·
verified ·
1 Parent(s): e8694e9

Upload CM3PForBeatmapClassification

Browse files
Files changed (2) hide show
  1. config.json +2 -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": "cm3p_audio_model",
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": "cm3p_beatmap_model",
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 = "cm3p_metadata_model"
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 = "cm3p_audio_model"
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 = "cm3p_beatmap_model"
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 = "cm3p"
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("cm3p_metadata_model", CM3PMetadataConfig)
317
- AutoConfig.register("cm3p_audio_model", CM3PAudioConfig)
318
- AutoConfig.register("cm3p_beatmap_model", CM3PBeatmapConfig)
319
- AutoConfig.register("cm3p", CM3PConfig)
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"]