Closed jim79 closed 2 years ago
You have to pass track not track.audio
@faroit , Thank you for the pointer and also sorry to trouble you further.
Ended up with :
"ValueError: only one element tensors can be converted to Python scalars"
estimates['vocals'] = estimates['vocals'].detach().cpu().numpy()[0]
estimates['drums'] = estimates['drums'].detach().cpu().numpy()[0]
But this leads to memory error
MemoryError: Unable to allocate 1.05 PiB for an array with shape (2, 12163922, 12163922) and data type float32
Thank you jim
Have you compared with https://github.com/sigsep/open-unmix-pytorch/blob/master/openunmix/evaluate.py ?
You likely just have a shape issue
@fariot, You are right; thank you for the time and patience. This did the trick.
estimates['vocals'] = estimates['vocals'].detach().cpu().numpy()[0].T
estimates['drums'] = estimates['drums'].detach().cpu().numpy()[0].T
jim
Hi, This may be a very naive question. I am trying to evaluate my model using museval. Stuck in this error message "AttributeError: 'numpy.ndarray' object has no attribute 'targets' " Kindly find my code and the error message below. Thank you jim
================= error message=========================