Closed Tetsujinfr closed 2 years ago
OK,
so after some more search I found a solution which worked like magic. I needed to set a sys variable to true and then no more TF memory crash.
export TF_FORCE_GPU_ALLOW_GROWTH=true
(spleeter-iG7E_J6Q-py3.8) tetsfr@tetsfr:~/spleeter$ spleeter separate -o output audio_example.mp3
INFO:spleeter:File output/audio_example/vocals.wav written succesfully
INFO:spleeter:File output/audio_example/accompaniment.wav written succesfully
Oh boy, I hate so much TF. Problem solved anyway, closing this.
I have installed spleeter through poetry.
I activate the poetry virtual env where all the dependencies have been installed.
When I run the spleeter test command I get this long rant and I can see that my GPU RAM usage goes up and max out at 23.7GB (I have a 24GB GPU card, which I think should be enough):
I have read that it may come from tf not seeing cudnn but when check my python3 environment from the virtual env, I do not see any tf issue at load time:
Any idea on what is wrong?
Could that come from my CUDA v11.3 version and some issues with TF2.5 or with Spleeter?
On my regular python3 environment, I have TF2.8 installed and it works fine with other repo I have tried, but from experience TF is a backward compatible nightmare so, hum yeah.
Thanks for your help