Error processing video: 'NoneType' object is not subscriptable #2365
benjaminficusmicrocarpa
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Whisper module failed to output transcript with output of the captioned error.
My code first download the video from website (such as youtube) and generate the transcript using Whisper.
My code that called out the whisper:
def transcribe_audio(audio_path): audio = whisper.load_audio(audio_path) model = whisper.load_model("medium", device="cuda" if torch.cuda.is_available() else "cpu") result = whisper.transcribe(model, audio, #language="zh", #vad=True, beam_size=5, best_of=5, temperature=(0.0, 0.2, 0.4, 0.6, 0.8, 1.0), ) return result
When running the code on RunPod with GPU 1 x RTX 2000 Ada, 6 vCPU 31 GB RAM, the captioned error occurs.
Interesting, when running the code in WSL, no such error popped up.
Beta Was this translation helpful? Give feedback.
All reactions