Comments (4)
@p0p4k Great, it worked, thank you!
I suspect there was a problem on my side during my first attempt: I was not using an appropriate build inside monotonic_align, so at the time i did some workarounds that could have resulted in an empty audio array.
Just for documentation sake, I needed extra steps:
inside monotonic_align, I had to:
mkdir -p build/lib.linux-x86_64-cpython-310/monotonic_align
python setup.py build_ext --inplace
then (because it failed to move the files for some reason)
cp build/lib.linux-x86_64-cpython-310/monotonic_align/core.cpython-310-x86_64-linux-gnu.so monotonic_align/
from vits2_pytorch.
Hi, the inference.ipynb is supposed to be a standalone notebook and can be adopted to colab with some changes. The colab notebook is inside notebooks
folder for trainings.
Can you maybe explore the wav data using numpy, and play it inside the notebook before saving? What are you using to save the files?
from vits2_pytorch.
Hi @p0p4k , I am saving the audio like this:
from scipy.io.wavfile import write
audio_path = "./output_audio.wav"
write(audio_path, hps.data.sampling_rate, audio.astype('int16'))
print(f"Audio saved to {audio_path}")
But it is writing as if the contents of "audio" is empty.
I would really appreciate if you could get this running outside of the Notebook/Colab environment, as a regular .py script =)
Thank you
from vits2_pytorch.
@Subarasheese I removed all the notebooks and now this repo contains inference.py files. Also, can you double check the contents of audio array before saving?
from vits2_pytorch.
Related Issues (20)
- will more ckpts will be add later?
- KeyError when training the Chinese dataset HOT 4
- New feature: Deleting the old .pth files when training HOT 3
- ValueError: too many values to unpack (expected 2) HOT 5
- Checkpoint saves? HOT 1
- about duration-discriminator training objective HOT 8
- DurationDiscriminatorType error HOT 5
- how to know whether the model is fitting HOT 1
- Duration Discriminator problem HOT 18
- Training stuck HOT 18
- Where is L_mse? HOT 11
- colab error HOT 3
- Bad quality audio when infer with custom condition HOT 1
- good, how this combine to the bert-vits2? HOT 2
- Keep training on existed checkpoint HOT 3
- Training doesn´t start when speaker IDs isn´t sequential from 0 HOT 1
- hop size issue HOT 1
- Training using SDP (and with DP by ratio?) HOT 6
- Have anyone tried to decrease the feature channels of the model?
- AlignerNet instead of MAS HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vits2_pytorch.