Spaces:
Running
Running
modify fx norm
Browse files
__pycache__/inference.cpython-311.pyc
CHANGED
Binary files a/__pycache__/inference.cpython-311.pyc and b/__pycache__/inference.cpython-311.pyc differ
|
|
inference.py
CHANGED
@@ -35,6 +35,7 @@ class MasteringStyleTransfer:
|
|
35 |
STEMS=['mixture'], \
|
36 |
EFFECTS=['eq', 'imager', 'loudness'])
|
37 |
|
|
|
38 |
def load_effects_encoder(self):
|
39 |
effects_encoder = Effects_Encoder(self.args.cfg_enc)
|
40 |
reload_weights(effects_encoder, self.args.encoder_path, self.device)
|
|
|
35 |
STEMS=['mixture'], \
|
36 |
EFFECTS=['eq', 'imager', 'loudness'])
|
37 |
|
38 |
+
|
39 |
def load_effects_encoder(self):
|
40 |
effects_encoder = Effects_Encoder(self.args.cfg_enc)
|
41 |
reload_weights(effects_encoder, self.args.encoder_path, self.device)
|
modules/__pycache__/data_normalization.cpython-311.pyc
CHANGED
Binary files a/modules/__pycache__/data_normalization.cpython-311.pyc and b/modules/__pycache__/data_normalization.cpython-311.pyc differ
|
|
modules/data_normalization.py
CHANGED
@@ -323,7 +323,6 @@ class Audio_Effects_Normalizer:
|
|
323 |
return normalized_audio
|
324 |
|
325 |
|
326 |
-
|
327 |
def lufs_normalize(x, sr, lufs, log=True):
|
328 |
|
329 |
# measure the loudness first
|
@@ -340,3 +339,5 @@ def lufs_normalize(x, sr, lufs, log=True):
|
|
340 |
loudness = meter.integrated_loudness(loudness_normalized_audio)
|
341 |
if log:
|
342 |
print("new loudness: ", loudness," max value: ", np.max(np.abs(loudness_normalized_audio)))
|
|
|
|
|
|
323 |
return normalized_audio
|
324 |
|
325 |
|
|
|
326 |
def lufs_normalize(x, sr, lufs, log=True):
|
327 |
|
328 |
# measure the loudness first
|
|
|
339 |
loudness = meter.integrated_loudness(loudness_normalized_audio)
|
340 |
if log:
|
341 |
print("new loudness: ", loudness," max value: ", np.max(np.abs(loudness_normalized_audio)))
|
342 |
+
|
343 |
+
return loudness_normalized_audio
|