]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
main : check if input files exist before proceeding (#1872)
authorDavidson Francis <redacted>
Mon, 19 Feb 2024 08:51:26 +0000 (05:51 -0300)
committerGitHub <redacted>
Mon, 19 Feb 2024 08:51:26 +0000 (10:51 +0200)
commitdda4b0ed06b9078c3f9167905192c66506a612f4
tree06d0dcc042d89a656ac0c12db8f114883cff10ba
parent07d04280bee6f8979f1a8529b09420b0dce2b05a
main : check if input files exist before proceeding (#1872)

Until the most recent commit (3d42463), the main.cpp sample file does
not check whether the input files exist or not. Consequently, the
model is loaded first before reporting whether there was a failure or
not when processing a file. In environments with HDD, this can take
about 50 seconds or more, depending on the loaded model.

This commit addresses this issue by checking in advance whether the
input files exist or not.
examples/main/main.cpp