How can I get higher accuracy
#1
by
blackmaksym
- opened
I am trying to use your LLM with signals from SIGID wiki website and the results are totally away from 0.99. Can you tell me what do I do wrong?
Here is my code:
waveform, sample_rate = torchaudio.load(wav_path)
# Resample to 16kHz if necessary
if sample_rate != 16000:
resampler = torchaudio.transforms.Resample(orig_freq=sample_rate, new_freq=16000)
waveform = resampler(waveform)
# Preprocess the audio (extract features)
inputs = feature_extractor(waveform.squeeze().numpy(), 16000, return_tensors="pt")