Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Collab Error #13

Open
AqilaAdnandana opened this issue Jul 4, 2023 · 0 comments
Open

Google Collab Error #13

AqilaAdnandana opened this issue Jul 4, 2023 · 0 comments

Comments

@AqilaAdnandana
Copy link

It was happened when i try to generate maps out of .mp3 file:

File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 176, in load
y, sr_native = __soundfile_load(path, offset, duration, dtype)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 209, in __soundfile_load
context = sf.SoundFile(path)
File "/usr/local/lib/python3.10/dist-packages/soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "/usr/local/lib/python3.10/dist-packages/soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening '../../songs/am': System error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/drive/My Drive/deepsaber_tmp3/scripts/generation/generate_stage1.py", line 86, in
hop, features = extract_features(song_path, args, opt)
File "/content/drive/My Drive/deepsaber_tmp3/scripts/generation/level_generation_utils.py", line 9, in extract_features
y_wav, sr = librosa.load(song_path, sr=opt.sampling_rate)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 184, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "", line 2, in __audioread_load
File "/usr/local/lib/python3.10/dist-packages/librosa/util/decorators.py", line 60, in __wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/librosa/core/audio.py", line 241, in __audioread_load
reader = audioread.audio_open(path)
File "/usr/local/lib/python3.10/dist-packages/audioread/init.py", line 127, in audio_open
return BackendClass(path)
File "/usr/local/lib/python3.10/dist-packages/audioread/rawread.py", line 59, in init
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '../../songs/am'
usage: generate_stage2.py
[-h]
[--song_path SONG_PATH]
[--json_file JSON_FILE]
[--experiment_name EXPERIMENT_NAME]
[--checkpoint CHECKPOINT]
[--temperature TEMPERATURE]
[--bpm BPM]
[--generate_full_song]
[--use_beam_search]
[--open_in_browser]
[--cuda]
generate_stage2.py: error: unrecognized arguments: the model from ../../scripts/training/block_placement_ddc2/iter_130000_net
.pth

IndexError Traceback (most recent call last)
in <cell line: 10>()
8 get_ipython().system("cd scripts/generation; chmod +x ./script_generate.sh; ./script_generate.sh '../../songs/'{filename}")
9 generated_filename=get_ipython().getoutput('ls -t scripts/generation/generated')
---> 10 generated_filename=generated_filename[0]
11 get_ipython().system('cp scripts/generation/generated/{generated_filename} ../../../')
12 # files.download("scripts/generation/generated/"+generated_filename)

IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant