TensorBoard
no-op-ul-se commited on
Commit
ccee439
1 Parent(s): c080f61

checkpoints

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  *.ts filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  *.ts filter=lfs diff=lfs merge=lfs -text
37
+ *.tfevents* filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .DS_Store
README.md CHANGED
@@ -10,6 +10,8 @@ For a full description see our blog post at: https://iil.is/news/ravemodels, and
10
 
11
  Most of these models are encoder-decoder only, no prior, and all use the `--causal` mode and are exported for streaming inference with [nn~](https://github.com/acids-ircam/nn_tilde), [NN.ar](https://github.com/elgiano/nn.ar) or [rave-supercollider](https://github.com/victor-shepardson/rave-supercollider).
12
 
 
 
13
  Citation:
14
 
15
  ```
@@ -27,7 +29,7 @@ Citation:
27
 
28
  ### guitar_iil_b2048_r48000_z16.ts
29
 
30
- Dataset: [IILGuitarTimbre](https://github.com/Intelligent-Instruments-Lab/IILGuitarTimbre), a timbre-oriented collection of plucking, strumming, striking scraping and more recorded dry from an electric guitar.
31
 
32
  Model: modified RAVE v1, 48kHz, block size 2048, 16 latent dimensions.
33
 
 
10
 
11
  Most of these models are encoder-decoder only, no prior, and all use the `--causal` mode and are exported for streaming inference with [nn~](https://github.com/acids-ircam/nn_tilde), [NN.ar](https://github.com/elgiano/nn.ar) or [rave-supercollider](https://github.com/victor-shepardson/rave-supercollider).
12
 
13
+ In the `checkpoints/` directory are some complete checkpoints which can be used with our [fork of RAVE](https://github.com/victor-shepardson/RAVE) to speed up training by transfer learning.
14
+
15
  Citation:
16
 
17
  ```
 
29
 
30
  ### guitar_iil_b2048_r48000_z16.ts
31
 
32
+ Dataset: [IILGuitarTimbre](https://github.com/Intelligent-Instruments-Lab/IILGuitarTimbre), a timbre-oriented collection of plucking, strumming, striking, scraping and more recorded dry from an electric guitar.
33
 
34
  Model: modified RAVE v1, 48kHz, block size 2048, 16 latent dimensions.
35
 
checkpoints/organ_archive_b2048_r48000/config.gin ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __gin__ import dynamic_registration
2
+ import cached_conv as cc
3
+ from cached_conv import convs
4
+ import rave
5
+ from rave import blocks
6
+ from rave import core
7
+ from rave import dataset
8
+ from rave import descript_discriminator
9
+ from rave import discriminator
10
+ from rave import model
11
+ from rave import pqmf
12
+ import torch
13
+ import torch.nn as nn
14
+
15
+ # Macros:
16
+ # ==============================================================================
17
+ ACTIVATION = @blocks.Snake
18
+ CAPACITY = 96
19
+ DILATIONS = [[1, 3, 9], [1, 3, 9], [1, 3, 9], [1, 3]]
20
+ KERNEL_SIZE = 3
21
+ LATENT_SIZE = 128
22
+ N_BAND = 16
23
+ NOISE_AUGMENTATION = 0
24
+ PHASE_1_DURATION = 0
25
+ RATIOS = [4, 4, 4, 2]
26
+ SAMPLING_RATE = 48000
27
+
28
+ # Parameters for blocks.AdaptiveInstanceNormalization:
29
+ # ==============================================================================
30
+ # None.
31
+
32
+ # Parameters for variational/blocks.AdaptiveInstanceNormalization:
33
+ # ==============================================================================
34
+ # None.
35
+
36
+ # Parameters for core.AudioDistanceV1:
37
+ # ==============================================================================
38
+ core.AudioDistanceV1.log_epsilon = 1e-07
39
+ core.AudioDistanceV1.multiscale_stft = @core.MultiScaleSTFT
40
+
41
+ # Parameters for model.BetaWarmupCallback:
42
+ # ==============================================================================
43
+ model.BetaWarmupCallback.initial_value = 1e-06
44
+ model.BetaWarmupCallback.target_value = 0.005
45
+ model.BetaWarmupCallback.warmup_len = 20000
46
+
47
+ # Parameters for pqmf.CachedPQMF:
48
+ # ==============================================================================
49
+ pqmf.CachedPQMF.attenuation = 100
50
+ pqmf.CachedPQMF.n_band = %N_BAND
51
+
52
+ # Parameters for cc.Conv1d:
53
+ # ==============================================================================
54
+ cc.Conv1d.bias = False
55
+
56
+ # Parameters for variational/cc.Conv1d:
57
+ # ==============================================================================
58
+ variational/cc.Conv1d.bias = False
59
+
60
+ # Parameters for cc.ConvTranspose1d:
61
+ # ==============================================================================
62
+ cc.ConvTranspose1d.bias = False
63
+
64
+ # Parameters for descript_discriminator.DescriptDiscriminator:
65
+ # ==============================================================================
66
+ descript_discriminator.DescriptDiscriminator.bands = \
67
+ [(0.0, 0.1), (0.1, 0.25), (0.25, 0.5), (0.5, 0.75), (0.75, 1.0)]
68
+ descript_discriminator.DescriptDiscriminator.fft_sizes = [2048, 1024, 512]
69
+ descript_discriminator.DescriptDiscriminator.periods = [2, 3, 5, 7, 11]
70
+ descript_discriminator.DescriptDiscriminator.rates = []
71
+ descript_discriminator.DescriptDiscriminator.sample_rate = 44100
72
+
73
+ # Parameters for variational/blocks.EncoderV2:
74
+ # ==============================================================================
75
+ variational/blocks.EncoderV2.activation = %ACTIVATION
76
+ variational/blocks.EncoderV2.adain = @blocks.AdaptiveInstanceNormalization
77
+ variational/blocks.EncoderV2.capacity = %CAPACITY
78
+ variational/blocks.EncoderV2.data_size = %N_BAND
79
+ variational/blocks.EncoderV2.dilations = %DILATIONS
80
+ variational/blocks.EncoderV2.keep_dim = False
81
+ variational/blocks.EncoderV2.kernel_size = %KERNEL_SIZE
82
+ variational/blocks.EncoderV2.latent_size = %LATENT_SIZE
83
+ variational/blocks.EncoderV2.n_out = 2
84
+ variational/blocks.EncoderV2.ratios = %RATIOS
85
+ variational/blocks.EncoderV2.recurrent_layer = None
86
+ variational/blocks.EncoderV2.spectrogram = None
87
+
88
+ # Parameters for blocks.GeneratorV2:
89
+ # ==============================================================================
90
+ blocks.GeneratorV2.activation = %ACTIVATION
91
+ blocks.GeneratorV2.adain = @blocks.AdaptiveInstanceNormalization
92
+ blocks.GeneratorV2.amplitude_modulation = True
93
+ blocks.GeneratorV2.capacity = %CAPACITY
94
+ blocks.GeneratorV2.causal_convtranspose = False
95
+ blocks.GeneratorV2.data_size = %N_BAND
96
+ blocks.GeneratorV2.dilations = %DILATIONS
97
+ blocks.GeneratorV2.keep_dim = False
98
+ blocks.GeneratorV2.kernel_size = %KERNEL_SIZE
99
+ blocks.GeneratorV2.latent_size = @core.get_augmented_latent_size()
100
+ blocks.GeneratorV2.noise_module = None
101
+ blocks.GeneratorV2.ratios = %RATIOS
102
+ blocks.GeneratorV2.recurrent_layer = None
103
+
104
+ # Parameters for core.get_augmented_latent_size:
105
+ # ==============================================================================
106
+ core.get_augmented_latent_size.latent_size = %LATENT_SIZE
107
+ core.get_augmented_latent_size.noise_augmentation = %NOISE_AUGMENTATION
108
+
109
+ # Parameters for convs.get_padding:
110
+ # ==============================================================================
111
+ convs.get_padding.dilation = 1
112
+ convs.get_padding.mode = 'causal'
113
+ convs.get_padding.stride = 1
114
+
115
+ # Parameters for variational/convs.get_padding:
116
+ # ==============================================================================
117
+ variational/convs.get_padding.dilation = 1
118
+ variational/convs.get_padding.mode = 'causal'
119
+ variational/convs.get_padding.stride = 1
120
+
121
+ # Parameters for core.MultiScaleSTFT:
122
+ # ==============================================================================
123
+ core.MultiScaleSTFT.magnitude = True
124
+ core.MultiScaleSTFT.normalized = False
125
+ core.MultiScaleSTFT.num_mels = None
126
+ core.MultiScaleSTFT.random_crop = True
127
+ core.MultiScaleSTFT.sample_rate = %SAMPLING_RATE
128
+ core.MultiScaleSTFT.scales = [2048, 1024, 512, 256, 128]
129
+
130
+ # Parameters for blocks.normalization:
131
+ # ==============================================================================
132
+ blocks.normalization.mode = 'weight_norm'
133
+
134
+ # Parameters for variational/blocks.normalization:
135
+ # ==============================================================================
136
+ variational/blocks.normalization.mode = 'weight_norm'
137
+
138
+ # Parameters for model.RAVE:
139
+ # ==============================================================================
140
+ model.RAVE.audio_distance = @core.AudioDistanceV1
141
+ model.RAVE.decoder = @blocks.GeneratorV2
142
+ model.RAVE.discriminator = @descript_discriminator.DescriptDiscriminator
143
+ model.RAVE.enable_pqmf_decode = True
144
+ model.RAVE.enable_pqmf_encode = True
145
+ model.RAVE.encoder = @blocks.VariationalEncoder
146
+ model.RAVE.feature_matching_fun = @feature_matching/core.mean_difference
147
+ model.RAVE.freeze_encoder = False
148
+ model.RAVE.gan_loss = @core.hinge_gan
149
+ model.RAVE.latent_size = %LATENT_SIZE
150
+ model.RAVE.multiband_audio_distance = @core.AudioDistanceV1
151
+ model.RAVE.num_skipped_features = 1
152
+ model.RAVE.phase_1_duration = %PHASE_1_DURATION
153
+ model.RAVE.pqmf = @pqmf.CachedPQMF
154
+ model.RAVE.sampling_rate = %SAMPLING_RATE
155
+ model.RAVE.update_discriminator_every = 4
156
+ model.RAVE.valid_signal_crop = True
157
+ model.RAVE.warmup_quantize = None
158
+ model.RAVE.weights = {'feature_matching': 20}
159
+
160
+ # Parameters for blocks.Snake:
161
+ # ==============================================================================
162
+ # None.
163
+
164
+ # Parameters for variational/blocks.Snake:
165
+ # ==============================================================================
166
+ # None.
167
+
168
+ # Parameters for dataset.split_dataset:
169
+ # ==============================================================================
170
+ dataset.split_dataset.max_residual = 1000
171
+
172
+ # Parameters for blocks.VariationalEncoder:
173
+ # ==============================================================================
174
+ blocks.VariationalEncoder.encoder = @variational/blocks.EncoderV2
checkpoints/organ_archive_b2048_r48000/version_0/checkpoints/last.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f97cbb87f51bbbeeafc91594a590e5ad96c0fe47f9a44d6a556977bb8cbe373c
3
+ size 896871001
checkpoints/organ_archive_b2048_r48000/version_0/events.out.tfevents.1698421417.honest-annie.24912.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:334613f6963b9f7b590743e1b80cb8fd1c9e2192b45b44d60d19209ff214e9f6
3
+ size 30798061
checkpoints/organ_archive_b2048_r48000/version_0/hparams.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
checkpoints/organ_archive_b512_r48000/config.gin ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __gin__ import dynamic_registration
2
+ import cached_conv as cc
3
+ from cached_conv import convs
4
+ import rave
5
+ from rave import blocks
6
+ from rave import core
7
+ from rave import dataset
8
+ from rave import descript_discriminator
9
+ from rave import discriminator
10
+ from rave import model
11
+ from rave import pqmf
12
+ import torch
13
+ import torch.nn as nn
14
+
15
+ # Macros:
16
+ # ==============================================================================
17
+ ACTIVATION = @blocks.Snake
18
+ CAPACITY = 64
19
+ DILATIONS = [[1, 3, 9], [1, 3, 9], [1, 3, 9], [1, 3]]
20
+ KERNEL_SIZE = 3
21
+ LATENT_SIZE = 128
22
+ N_BAND = 8
23
+ NOISE_AUGMENTATION = 0
24
+ PHASE_1_DURATION = 0
25
+ RATIOS = [4, 4, 4, 1]
26
+ SAMPLING_RATE = 48000
27
+
28
+ # Parameters for blocks.AdaptiveInstanceNormalization:
29
+ # ==============================================================================
30
+ # None.
31
+
32
+ # Parameters for variational/blocks.AdaptiveInstanceNormalization:
33
+ # ==============================================================================
34
+ # None.
35
+
36
+ # Parameters for core.AudioDistanceV1:
37
+ # ==============================================================================
38
+ core.AudioDistanceV1.log_epsilon = 1e-07
39
+ core.AudioDistanceV1.multiscale_stft = @core.MultiScaleSTFT
40
+
41
+ # Parameters for model.BetaWarmupCallback:
42
+ # ==============================================================================
43
+ model.BetaWarmupCallback.initial_value = 1e-06
44
+ model.BetaWarmupCallback.target_value = 0.005
45
+ model.BetaWarmupCallback.warmup_len = 20000
46
+
47
+ # Parameters for pqmf.CachedPQMF:
48
+ # ==============================================================================
49
+ pqmf.CachedPQMF.attenuation = 100
50
+ pqmf.CachedPQMF.n_band = %N_BAND
51
+
52
+ # Parameters for cc.Conv1d:
53
+ # ==============================================================================
54
+ cc.Conv1d.bias = False
55
+
56
+ # Parameters for variational/cc.Conv1d:
57
+ # ==============================================================================
58
+ variational/cc.Conv1d.bias = False
59
+
60
+ # Parameters for cc.ConvTranspose1d:
61
+ # ==============================================================================
62
+ cc.ConvTranspose1d.bias = False
63
+
64
+ # Parameters for descript_discriminator.DescriptDiscriminator:
65
+ # ==============================================================================
66
+ descript_discriminator.DescriptDiscriminator.bands = \
67
+ [(0.0, 0.1), (0.1, 0.25), (0.25, 0.5), (0.5, 0.75), (0.75, 1.0)]
68
+ descript_discriminator.DescriptDiscriminator.fft_sizes = [2048, 1024, 512]
69
+ descript_discriminator.DescriptDiscriminator.periods = [2, 3, 5, 7, 11]
70
+ descript_discriminator.DescriptDiscriminator.rates = []
71
+ descript_discriminator.DescriptDiscriminator.sample_rate = 44100
72
+
73
+ # Parameters for variational/blocks.EncoderV2:
74
+ # ==============================================================================
75
+ variational/blocks.EncoderV2.activation = %ACTIVATION
76
+ variational/blocks.EncoderV2.adain = @blocks.AdaptiveInstanceNormalization
77
+ variational/blocks.EncoderV2.capacity = %CAPACITY
78
+ variational/blocks.EncoderV2.data_size = %N_BAND
79
+ variational/blocks.EncoderV2.dilations = %DILATIONS
80
+ variational/blocks.EncoderV2.keep_dim = False
81
+ variational/blocks.EncoderV2.kernel_size = %KERNEL_SIZE
82
+ variational/blocks.EncoderV2.latent_size = %LATENT_SIZE
83
+ variational/blocks.EncoderV2.n_out = 2
84
+ variational/blocks.EncoderV2.ratios = %RATIOS
85
+ variational/blocks.EncoderV2.recurrent_layer = None
86
+ variational/blocks.EncoderV2.spectrogram = None
87
+
88
+ # Parameters for blocks.GeneratorV2:
89
+ # ==============================================================================
90
+ blocks.GeneratorV2.activation = %ACTIVATION
91
+ blocks.GeneratorV2.adain = @blocks.AdaptiveInstanceNormalization
92
+ blocks.GeneratorV2.amplitude_modulation = True
93
+ blocks.GeneratorV2.capacity = %CAPACITY
94
+ blocks.GeneratorV2.causal_convtranspose = True
95
+ blocks.GeneratorV2.data_size = %N_BAND
96
+ blocks.GeneratorV2.dilations = %DILATIONS
97
+ blocks.GeneratorV2.keep_dim = False
98
+ blocks.GeneratorV2.kernel_size = %KERNEL_SIZE
99
+ blocks.GeneratorV2.latent_size = @core.get_augmented_latent_size()
100
+ blocks.GeneratorV2.noise_module = None
101
+ blocks.GeneratorV2.ratios = %RATIOS
102
+ blocks.GeneratorV2.recurrent_layer = None
103
+
104
+ # Parameters for core.get_augmented_latent_size:
105
+ # ==============================================================================
106
+ core.get_augmented_latent_size.latent_size = %LATENT_SIZE
107
+ core.get_augmented_latent_size.noise_augmentation = %NOISE_AUGMENTATION
108
+
109
+ # Parameters for convs.get_padding:
110
+ # ==============================================================================
111
+ convs.get_padding.dilation = 1
112
+ convs.get_padding.mode = 'causal'
113
+ convs.get_padding.stride = 1
114
+
115
+ # Parameters for variational/convs.get_padding:
116
+ # ==============================================================================
117
+ variational/convs.get_padding.dilation = 1
118
+ variational/convs.get_padding.mode = 'causal'
119
+ variational/convs.get_padding.stride = 1
120
+
121
+ # Parameters for core.MultiScaleSTFT:
122
+ # ==============================================================================
123
+ core.MultiScaleSTFT.magnitude = True
124
+ core.MultiScaleSTFT.normalized = False
125
+ core.MultiScaleSTFT.num_mels = None
126
+ core.MultiScaleSTFT.random_crop = True
127
+ core.MultiScaleSTFT.sample_rate = %SAMPLING_RATE
128
+ core.MultiScaleSTFT.scales = [2048, 1024, 512, 256, 128]
129
+
130
+ # Parameters for blocks.normalization:
131
+ # ==============================================================================
132
+ blocks.normalization.mode = 'weight_norm'
133
+
134
+ # Parameters for variational/blocks.normalization:
135
+ # ==============================================================================
136
+ variational/blocks.normalization.mode = 'weight_norm'
137
+
138
+ # Parameters for model.RAVE:
139
+ # ==============================================================================
140
+ model.RAVE.audio_distance = @core.AudioDistanceV1
141
+ model.RAVE.decoder = @blocks.GeneratorV2
142
+ model.RAVE.discriminator = @descript_discriminator.DescriptDiscriminator
143
+ model.RAVE.enable_pqmf_decode = True
144
+ model.RAVE.enable_pqmf_encode = True
145
+ model.RAVE.encoder = @blocks.VariationalEncoder
146
+ model.RAVE.feature_matching_fun = @feature_matching/core.mean_difference
147
+ model.RAVE.freeze_encoder = False
148
+ model.RAVE.gan_loss = @core.hinge_gan
149
+ model.RAVE.latent_size = %LATENT_SIZE
150
+ model.RAVE.multiband_audio_distance = @core.AudioDistanceV1
151
+ model.RAVE.num_skipped_features = 1
152
+ model.RAVE.phase_1_duration = %PHASE_1_DURATION
153
+ model.RAVE.pqmf = @pqmf.CachedPQMF
154
+ model.RAVE.sampling_rate = %SAMPLING_RATE
155
+ model.RAVE.update_discriminator_every = 4
156
+ model.RAVE.valid_signal_crop = True
157
+ model.RAVE.warmup_quantize = None
158
+ model.RAVE.weights = {'feature_matching': 20}
159
+
160
+ # Parameters for blocks.Snake:
161
+ # ==============================================================================
162
+ # None.
163
+
164
+ # Parameters for variational/blocks.Snake:
165
+ # ==============================================================================
166
+ # None.
167
+
168
+ # Parameters for dataset.split_dataset:
169
+ # ==============================================================================
170
+ dataset.split_dataset.max_residual = 1000
171
+
172
+ # Parameters for blocks.VariationalEncoder:
173
+ # ==============================================================================
174
+ blocks.VariationalEncoder.encoder = @variational/blocks.EncoderV2
checkpoints/organ_archive_b512_r48000/version_1/checkpoints/last.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:218518cb0f7c2670a9cd3973c3e2972632893f599deacc851998b372a8f8a22e
3
+ size 669961497
checkpoints/organ_archive_b512_r48000/version_1/events.out.tfevents.1698374724.honest-annie.106561.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc2db1ce2f9fba47250a9c2a93a27ec1d2810b2ce1a490cbc2f69f34d8318eee
3
+ size 20816743
checkpoints/organ_archive_b512_r48000/version_1/hparams.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ {}