You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been experiencing this error quite often recently and I do not understand what is its main cause.
I was looking at this answer but I can not find anywhere else where the variable batch could be created or assigned outside batch_date.
What could be wrong?
Python version: 3.7
Traceback is
Computing spectrogram (w/ librosa) and tags (w/ tensorflow).. Traceback (most recent call last):
audio_tagger_1 | File "main.py", line 95, in <module>
audio_tagger_1 | suggested_tags = extract_tags(output_filename)
audio_tagger_1 | File "main.py", line 15, in extract_tags
audio_tagger_1 | return top_tags(filename, model="MTT_musicnn", topN=10)
audio_tagger_1 | File "/usr/local/lib/python3.7/site-packages/musicnn/tagger.py", line 60, in top_tags
audio_tagger_1 | taggram, tags = extractor(file_name, model=model, input_length=input_length, input_overlap=input_overlap, extract_features=False)
audio_tagger_1 | File "/usr/local/lib/python3.7/site-packages/musicnn/extractor.py", line 158, in extractor
audio_tagger_1 | batch, spectrogram = batch_data(file_name, n_frames, overlap)
audio_tagger_1 | File "/usr/local/lib/python3.7/site-packages/musicnn/extractor.py", line 62, in batch_data
audio_tagger_1 | return batch, audio_rep
audio_tagger_1 | UnboundLocalError: local variable 'batch' referenced before assignment
The text was updated successfully, but these errors were encountered:
I have been experiencing this error quite often recently and I do not understand what is its main cause.
I was looking at this answer but I can not find anywhere else where the variable
batch
could be created or assigned outsidebatch_date
.What could be wrong?
Python version: 3.7
Traceback is
The text was updated successfully, but these errors were encountered: