magenta / mt3

MT3: Multi-Task Multitrack Music Transcription
Apache License 2.0
1.43k stars 187 forks source link

Maximum call stack size exceeded in upload_audio #132

Open zhouhao27 opened 1 year ago

zhouhao27 commented 1 year ago

Here is the error. I tried in my different Google account and different mp3, all got the same error.

MessageError Traceback (most recent call last) in <cell line: 6>() 4 5 log_event('uploadAudioStart', {}) ----> 6 audio = upload_audio(sample_rate=SAMPLE_RATE) 7 log_event('uploadAudioComplete', {'value': round(len(audio) / SAMPLE_RATE)}) 8

4 frames in upload_audio(sample_rate) 33 34 def upload_audio(sample_rate): ---> 35 data = list(files.upload().values()) 36 if len(data) > 1: 37 print('Multiple files uploaded; using only one.')

/usr/local/lib/python3.10/dist-packages/google/colab/files.py in upload() 67 """ 68 ---> 69 uploaded_files = _upload_files(multiple=True) 70 # Mapping from original filename to filename as saved locally. 71 local_filenames = dict()

/usr/local/lib/python3.10/dist-packages/google/colab/files.py in _upload_files(multiple) 159 160 while result['action'] != 'complete': --> 161 result = _output.eval_js( 162 'google.colab._files._uploadFilesContinue("{output_id}")'.format( 163 output_id=output_id

/usr/local/lib/python3.10/dist-packages/google/colab/output/_js.py in eval_js(script, ignore_result, timeout_sec) 38 if ignore_result: 39 return ---> 40 return _message.read_reply_from_input(request_id, timeout_sec) 41 42

/usr/local/lib/python3.10/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec) 101 ): 102 if 'error' in reply: --> 103 raise MessageError(reply['error']) 104 return reply.get('data', None) 105

MessageError: RangeError: Maximum call stack size exceeded.