Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcript fails 3.5.1-R2 #143

Closed
The3IC opened this issue Apr 26, 2024 · 24 comments
Closed

Transcript fails 3.5.1-R2 #143

The3IC opened this issue Apr 26, 2024 · 24 comments

Comments

@The3IC
Copy link

The3IC commented Apr 26, 2024

Opening a new error for this as this error seems to be independent of the character set problem.

Testing out transcript generation but it fails with error:

11:11:33: Operation 'Pre-processing' took 0.000000 seconds. Poll was called 0 times and took 0.000000 seconds. Yield was called 0 times and took 0.000000 seconds.
11:11:39: Error: In Whisper Transcription Effect, exception: invalid map<K, T> key
11:11:41: Operation 'OpenVINO Whisper Transcription' took 6.211000 seconds. Poll was called 1696 times and took 0.045100 seconds. Yield was called 36 times and took 0.021169 seconds.

Other OpenVivo functions work:

  • music generation
  • noise reduction

New test setup (same error occurs on both my desktop - as reported earlier - as well as my laptop (this report):
Windows 10 (latest version)
Audacity 3.5.1
OpenVivo 3.5.1-R2
Normal installations
Account with no "strange" characters

Generation setup:
model: base and large-V3
CPU and GPU as per attached screenshot
error seems to occur when loading model (see attached screeenshot)?

setupvivo

vivoerror

@RyanMetcalfeInt8
Copy link
Contributor

Hi @The3IC,

Thanks for reporting this as a separate issue. I'm a little bit surprised, actually, that you found it being unrelated to having special characters in the username. On one of my test systems, I get this error for a username that I created specifically with some special characters, and on other usernames using the same installation, it works.

Thanks,
Ryan

@bluemoehre
Copy link

I checked with both username variants on my machine and the logged error occurs all time. I also assume it is not related to the ASCII/Unicode thing.

@RyanMetcalfeInt8
Copy link
Contributor

@bluemoehre, got it -- thanks for confirming that.

Sorry for the delay -- Let me find some time to dig into the root cause on the one machine / account that I can reproduce this.

Thanks!

@fermarper
Copy link

Hello. Exactly the same problem on my computer.

23:20:51: Audacity 3.5.1
Log Cleared.
23:21:09: Operation 'Pre-processing' took 0,000000 seconds. Poll was called 0 times and took 0,000000 seconds. Yield was called 0 times and took 0,000000 seconds.
23:21:10: Error: In Whisper Transcription Effect, exception: whisper.cpp context creation / initialization failed
23:21:12: Operation 'OpenVINO Whisper Transcription' took 1,515000 seconds. Poll was called 396 times and took 0,033539 seconds. Yield was called 11 times and took 0,025412 seconds.
23:21:10: Error: whisper_ctx_init_openvino_encoder failed for device = GPU

@RyanMetcalfeInt8
Copy link
Contributor

Hello. Exactly the same problem on my computer.

23:20:51: Audacity 3.5.1 Log Cleared. 23:21:09: Operation 'Pre-processing' took 0,000000 seconds. Poll was called 0 times and took 0,000000 seconds. Yield was called 0 times and took 0,000000 seconds. 23:21:10: Error: In Whisper Transcription Effect, exception: whisper.cpp context creation / initialization failed 23:21:12: Operation 'OpenVINO Whisper Transcription' took 1,515000 seconds. Poll was called 396 times and took 0,033539 seconds. Yield was called 11 times and took 0,025412 seconds. 23:21:10: Error: whisper_ctx_init_openvino_encoder failed for device = GPU

Hi @fermarper, this one is also a whisper_ctx_init_openvino_encoder failed, but I don't see invalid map<K, T> key, so it seems a bit different to me. Does it work on CPU, and what kind of GPU do you have?

@fermarper
Copy link

Good morning.
Indeed, when I select CPU it opens fine, but the subtitles appear with symbols. They are not real subtitles.
Regarding the GPU of my computer, I attach characteristics. Best regards. Thanks for your help.
GPU

@RyanMetcalfeInt8
Copy link
Contributor

Hi @The3IC, @bluemoehre,

On your system, would you mind capturing a log from the installer for me?

It can be done like this (from a cmd.exe window):

audacity-win-v3.5.1-R2-64bit-OpenVINO-AI-Plugins.exe /LOG=installer_log.txt

You only need to run the very beginning of the installer, until the 'welcome' screen shows up (attached pic):
image

You can just hit 'cancel' at that point. I really am only interested in the message at the end about whether it detected your system to support AVX2 or not. For example, on mine it looks like this:

2024-05-02 09:20:03.127   This system supports AVX2

Since you successfully used the older set of plugins, I assume your system also supports AVX2 -- so I am making sure that this is indeed reflected in your log.

Thanks,
Ryan

@fermarper
Copy link

fermarper commented May 2, 2024 via email

@The3IC
Copy link
Author

The3IC commented May 2, 2024

@RyanMetcalfeInt8 here is the log. A couple of observations, no idea if this is a problem:

  • the name of the temp directory is a bit weird but it seems to have been created?
  • see screenshot with access problem?

access

Installer error?

  • the temporary directory is left even after the install is terminated, the installer should preferable clean out any temporary stuff that it creates.

og opened. (Time zone: UTC+03:00)
2024-05-02 19:44:34.527 Setup version: Inno Setup version 6.2.2
2024-05-02 19:44:34.527 Original Setup EXE: C:\Users\Håkan\Downloads\audacity-win-v3.5.1-R2-64bit-OpenVINO-AI-Plugins.exe
2024-05-02 19:44:34.527 Setup command line: /SL5="$205B4,74900827,832512,C:\Users\Håkan\Downloads\audacity-win-v3.5.1-R2-64bit-OpenVINO-AI-Plugins.exe" /SPAWNWND=$105B2 /NOTIFYWND=$704D8 /LOG=installer_log.txt
2024-05-02 19:44:34.527 Compatibility mode: Yes (Installer)
2024-05-02 19:44:34.527 Windows version: 10.0.19045 (NT platform: Yes)
2024-05-02 19:44:34.527 64-bit Windows: Yes
2024-05-02 19:44:34.527 Processor architecture: x64
2024-05-02 19:44:34.527 User privileges: Administrative
2024-05-02 19:44:34.527 Administrative install mode: Yes
2024-05-02 19:44:34.527 Install mode root key: HKEY_LOCAL_MACHINE
2024-05-02 19:44:34.527 64-bit install mode: Yes
2024-05-02 19:44:34.527 Created temporary directory: C:\Users\HKAN~1\AppData\Local\Temp\is-KNJJP.tmp
2024-05-02 19:44:34.527 -- DLL function import --
2024-05-02 19:44:34.527 Function name: IsProcessorFeaturePresent
2024-05-02 19:44:34.527 DLL name: kernel32.dll
2024-05-02 19:44:34.527 Dest DLL name: kernel32.dll
2024-05-02 19:44:34.527 Importing the DLL function.
2024-05-02 19:44:34.527 Successfully imported the DLL function. Delay loaded? No
2024-05-02 19:44:34.589 This system supports AVX2
2024-05-02 19:44:34.672 FindAudacity called
2024-05-02 19:45:12.317 Message box (Yes/No):

@RyanMetcalfeInt8
Copy link
Contributor

Hi @The3IC,

Thanks! Yes, the temp directory is created by the installation framework (Inno Setup), so it will have some weird name. This is expected. The access issues are also expected, as it will create the folder with elevated (admin) privileges.

And okay, great, looks like the AVX2 detection is working properly in your case.

btw, I think I've isolated the issue and working on a fix -- hoping to post a patched release by end of day today.

Thanks!
Ryan

@RyanMetcalfeInt8
Copy link
Contributor

the temporary directory is left even after the install is terminated, the installer should preferable clean out any temporary stuff that it creates.

Missed this one. Hmm, really? I'll double check this on my side -- it should be getting cleaned up automatically, as per this this documentation

...
Temporary directory used by Setup or Uninstall. This is not the value of the user's TEMP environment variable. It is a subdirectory of the user's temporary directory which is created by Setup or Uninstall at startup (with a name like "C:\WINDOWS\TEMP\IS-xxxxx.tmp"). All files and subdirectories in this directory are deleted when Setup or Uninstall exits. During Setup, this is primarily useful for extracting files that are to be executed in the [Run] section but aren't needed after the installation.
...

@The3IC
Copy link
Author

The3IC commented May 3, 2024

I guess it might be removed if you get to the end, but now when I cancelled in the middle, the directory was still there (as you can see from the screen grabs)

@fermarper
Copy link

fermarper commented May 3, 2024 via email

@Al51n
Copy link

Al51n commented May 3, 2024

I installed Audacity 5.1 and OpenVino 5.2R2.
When I go to transcribe I get the following error:
15:42:24: Audacity 3.5.1
15:42:24: Error: Failed to load shared library ‘avformat-60.dll’ (error 126: The specified module could not be found.)
15:42:24: Error: Failed to load shared library ‘avformat-59.dll’ (error 126: The specified module could not be found.)
15:42:24: Error: Failed to load shared library ‘avformat-58.dll’ (error 126: The specified module could not be found.)
15:42:24: Error: Failed to load shared library ‘avformat-57.dll’ (error 126: The specified module could not be found.)
15:42:24: Error: Failed to load shared library ‘avformat-55.dll’ (error 126: The specified module could not be found.)
15:42:31: Error: Failed to load shared library ‘avformat-60.dll’ (error 126: The specified module could not be found.)
15:42:31: Error: Failed to load shared library ‘avformat-59.dll’ (error 126: The specified module could not be found.)
15:42:31: Error: Failed to load shared library ‘avformat-58.dll’ (error 126: The specified module could not be found.)
15:42:31: Error: Failed to load shared library ‘avformat-57.dll’ (error 126: The specified module could not be found.)
15:42:31: Error: Failed to load shared library ‘avformat-55.dll’ (error 126: The specified module could not be found.)
15:42:38: Loaded 72 string 2.474609 Kb in size
15:42:38: Project loaded in 130 ms
15:43:08: Operation ‘Pre-processing’ took 0.000000 seconds. Poll was called 0 times and took 0.000000 seconds. Yield was called 0 times and took 0.000000 seconds.
15:43:12: Error: In Whisper Transcription Effect, exception: invalid map<K, T> key
15:43:20: Operation ‘OpenVINO Whisper Transcription’ took 3.875000 seconds. Poll was called 247 times and took 0.100867 seconds. Yield was called 40 times and took 0.039453 seconds

My PC is an up to date Win 10 with an i7-3770K processor & 16GB Ram. No graphics card. Running Win Pro.
I could see an issue having no graphics but I understood VinoAI was using the CPU.

@RyanMetcalfeInt8
Copy link
Contributor

Hi @Al51n,

Yes, you are experiencing the same issue. Fix is coming soon. I'll comment on this thread when it's ready.

Thanks!

@RyanMetcalfeInt8
Copy link
Contributor

Hi @The3IC, @bluemoehre, all,

The patch release is now available. Can you give it a shot and let me know if it's resolved for you?

https://github.com/intel/openvino-plugins-ai-audacity/releases/tag/v3.5.1-R2.1

Thanks!

@RyanMetcalfeInt8
Copy link
Contributor

By the way @The3IC, this version should also resolve the issue where the tmp directory was not getting cleaned up.

@fermarper
Copy link

fermarper commented May 3, 2024 via email

@RyanMetcalfeInt8
Copy link
Contributor

Hi @fermarper,

In your case does it fail on CPU as well? Just to note, that the failure signature in your case looked a little bit different than the one that @The3IC reported here.

Thanks,
Ryan

@fermarper
Copy link

fermarper commented May 3, 2024 via email

@RyanMetcalfeInt8
Copy link
Contributor

Choosing CPU works well. Thanks Fernando

Okay good. I think issues with your GPU are simply because NVidia devices aren't well supported by the OpenVINO framework... but again, glad to hear that CPU is now giving accurate results.

@fermarper
Copy link

fermarper commented May 4, 2024 via email

@The3IC
Copy link
Author

The3IC commented May 4, 2024

Hi @RyanMetcalfeInt8. Yes, seems the problem was solved, great!
Tested Finnish, but transcript and translation seemed to work using the on-chip GPU.
As far as I'm converned, you can close this.

btw, the installer is nice in the it does not remove models on the computer.

@RyanMetcalfeInt8
Copy link
Contributor

Thanks! Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants