Closed arthurwolf closed 2 months ago
Running into the same error. @PABannier any thoughts?
This commit doesn't exist indeed, probably it just wasn't pushed to upstream? https://github.com/PABannier/encodec.cpp/tree/e50cd96d28c89f6c1343c291042b14bab6f3b83b
There is a branch debug_bark_and_encodec, i've tried to use latest commit from it instead and got somehow runnable bark.cpp, yet it generates barely recognisable speech.
@PABannier , once you have some time for it, please check if some commit should be pushed to encodec.cpp or, probably the reference within bark.cpp. should be updated to point to existing commit
Thank you for both projects btw.
lack commit about encodec_set_sample_rate
@engineer1109 @CoruNethron @sefaalper @arthurwolf This should be fixed with #139 . Could you give it another try?
@PABannier thanks!
Going through the process now. First (minor) issue:
At the step:
python3 -m pip install -r bark/requirements.txt
At that point I'm inside of build/
, there's no bark/
.
I'm guessing you meant the requiremenents.txt
in /
of the project, so I did that:
cd ..
python3 -m pip install -r requirements.txt
Next issue, at:
python3 convert.py --dir-model ./models --out-dir ./ggml_weights/
I get:
╰─(base) ⠠⠵ python3 convert.py --dir-model ./models --out-dir ./ggml_weights/
usage: convert.py [-h] --dir-model DIR_MODEL --vocab-path VOCAB_PATH --out-dir
OUT_DIR [--use-f16]
convert.py: error: the following arguments are required: --vocab-path
I tried:
find . -name '*vocab*'
and it returned nothing/found nothing.
@PABannier
Thank you, missing encodec.cpp commit issue is fixed indeed. Very impressive!
@arthurwolf
Regarding steps to make it work:
git clone --recursive https://github.com/PABannier/bark.cpp.git
cd bark.cpp
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..
python3 -m pip install -r requirements.txt
python3 download_weights.py --download-dir ./models
wget https://huggingface.co/suno/bark/raw/main/vocab.txt
mv ./vocab.txt ./models/
python3 convert.py --dir-model ./models --vocab-path ./models --out-dir ./ggml_weights/
cd ./encodec.cpp/
python3 convert.py --dir-model ./../models --out-dir ./../ggml_weights/ --use-f16
cd ../
mv ./ggml_weights/ggml-model.bin ./encodec_weights.bin
./build/examples/main/main -m ./ggml_weights/ -p "this is an audio"
play ./output.wav
P.S. Not sure if this is appropriate here, but my son was born while I was writing this post. I'm happy. )
@CoruNethron I'll add these in the instructions! Congratulations for your newborn!
@CoruNethron Congratulations!
Regarding steps to make it work:
Thank you so much, I really wish more people would post their working-steps like this in these situations, that's very very nice of you. I'll try them soon.
(also, congratulations !! good luck not sleeping for a while)
Closing this as the instructions have been updated.
Git clone submodules recursive fails, but I was able to manually fix that.
But then when I do
cmake --build . --config Release
I get:any ideas? thanks!