Comments (11)
great thanks!
from audio-webui.
What does it do?
from audio-webui.
try it, it improves the audio quality a lot
from audio-webui.
Looks like it resamples to 44khz, which is higher than models usually output, and it tries to fix some of the imprecision, also looks like it applies stereo, which should sound better.
i can see why you want that, i'll add it to the utils soon.
from audio-webui.
this improves a quality a lot
sample_rate = 44100
def main(prompt):
pipe = diffusers.AudioLDMPipeline.from_pretrained("cvssp/audioldm-s-full-v2", torch_dtype=torch.float16).to("cuda")
audio = pipe(prompt, num_inference_steps=10, audio_length_in_s=a.duration).audios[0]
audio_resampled = librosa.resample(audio, orig_sr=16000, target_sr=sample_rate)
audio_enhanced = enhance_audio(audio_resampled)
return audio_enhanced
def enhance_audio(a: numpy.ndarray):
octave_up = librosa.effects.pitch_shift(a, sr=sample_rate, n_steps=12, res_type="soxr_vhq")
return a + octave_up
from audio-webui.
I'll try it out, i'll most likely add it in utils though, not directly in audioldm here.
from audio-webui.
put it also into audioldm
, it is a must have, otherwise the quality is not good
from audio-webui.
I'm not sure how that code would enhance the audio, instead, it will just give it a higher pitch it seems. I'll test a bit further
from audio-webui.
Maybe that's just something with trying to use it separately.
Nevermind, i think i'm just missing something.
from audio-webui.
Oh yeah, it can definitely sound better, not always though.
Prompt: Chopping carrots on a wooden plank
seed: 2919297160245668629
other options default.
original.mp4
enhanced.mp4
from audio-webui.
that sounds great, much more cleaner
from audio-webui.
Related Issues (20)
- [BUG REPORT]
- Installation failed on Windows [BUG REPORT] HOT 3
- [FEATURE REQUEST] Image2SFX HOT 1
- SOS: Python Packages vs. GPU Performance insights?
- [QUESTION] Enable to run py command! HOT 6
- [BUG REPORT] ImportError: cannot import name 'set_documentation_group' from 'gradio_client.documentation' HOT 7
- [BUG REPORT] Forever loading, without any output (Similar to issue #199?) HOT 3
- [BUG REPORT] Unresponsive UI, Missing TensorboardX library, wrong torchvision version installed. HOT 4
- [BUG REPORT] HOT 1
- [FEATURE REQUEST] MusicGen-Remixer & MusicGen-Chord
- [BUG REPORT]
- During my installation process, I keep encountering persistent torch version conflict warnings. What exactly is happening here? I am using the install.bat script on a Windows operating system. HOT 3
- [BUG REPORT] cant install pytorch on windows HOT 2
- [BUG REPORT] cant download or cant strip audio HOT 1
- [QUESTION] reaching out for a contact, and to share some details about bark re: the tokens it uses HOT 1
- [FEATURE REQUEST] (Offering to help) - Unified model management HOT 7
- [BUG REPORT] Pinokio unable to install HOT 1
- [BUG REPORT] Launch error on Google Colab.
- [BUG REPORT] Cannot download YouTube audio
- [BUG REPORT] Install process constantly overwrites huggingface-hub to 0.19.0 and cannot continue HOT 1
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 audio-webui.