Add files via upload

This commit is contained in:
Anjok07 2023-01-11 04:29:27 -06:00 committed by GitHub
parent 95ad38be11
commit 39d9ada6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -675,7 +675,7 @@ class SeperateVR(SeperateAttributes):
if d == bands_n: # high-end band
X_wave[d], _ = librosa.load(self.audio_file, bp['sr'], False, dtype=np.float32, res_type=wav_resolution)
if not X_wave[d] and self.audio_file.endswith('.mp3'):
if not np.any(X_wave[d]) and self.audio_file.endswith('.mp3'):
X_wave[d] = rerun_mp3(self.audio_file, bp['sr'])
if X_wave[d].ndim == 1:
@ -878,7 +878,7 @@ def prepare_mix(mix, chunk_set, margin_set, mdx_net_cut=False, is_missing_mix=Fa
print('mix: ', mix)
if not mix and audio_path.endswith('.mp3'):
if not np.any(mix) and audio_path.endswith('.mp3'):
mix = rerun_mp3(audio_path)
print('mix after fix: ', mix)