Automix
Automix copied to clipboard
Error with track.getCueIns()
I have tried to run the program on a Colab notebook.
When I try to run the usage example provided on GitHub, I get an error with the track.getCueIns()
function.
track = Track(path='/content/drive/MyDrive/MIR/Coyu - Unexpected Souvenir.mp3')
cues = track.getCueIns()
times = cues.times
confidences = cues.values
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-17-7e525f671fd0> in <module>()
----> 6 cues = track.getCueIns()
7 times = cues.times
8 confidences = cues.values
---------------------- 24 frames -------------------------------------
/usr/local/lib/python3.7/dist-packages/automix/model/inputOutput/serializer/featureSerializer.py in serialize(path, features)
27 Features has to be/contain a dict, list, primitive, or object implementing jsonEncode(void):any
28 """
---> 29 with open(path, 'w') as featuresFile:
30 featuresFile.write(json.dumps(features, cls=MyJSONEncoder))
31
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/automix/../annotations/Coyu - Unexpected Souvenir.beats.json'
What may I be doing wrong? The ... .beats.json
is automatically generated, isn't it?
Hi gbibbo,
Thank you for your comment.
The error is raised when the .beat.json
file is generated actually. I think it is because the code can't access the folder: "/usr/local/lib/python3.7/dist-packages/automix/../annotations/" which likely doesn't exist.
You should be able to resolve the issue if you manually create this folder.
If this doesn't work, try to do a local install with
pip install . --editable
and then run the code locally.