Skip to content

为啥在界面的时候识别很快,用命令行识别时要好长时间? #20

Closed

Description

@bbeyondllove

python paraclipper/videoclipper.py --stage 1 --file bk_man_1.wav --output_dir ./output
这个命令执行大概要15秒左右,音频才3秒。不过在界面执行是很快的,找不到问题在哪。

Activity

  1. R1ckShi commented on Mar 7, 2024

    @R1ckShi
    Collaborator

    命令行调用在stage1需要load模型,通过gradio调用是模型的加载相关操作已经在启动服务时完成了。

  2. bbeyondllove commented on Mar 7, 2024

    @bbeyondllove
    Author

    命令行调用在stage1需要load模型,通过gradio调用是模型的加载相关操作已经在启动服务时完成了。

    嗯,那是不是可以做成http api,先加载模型,然后命令行相当于client来调用,这样应该会快很多

  3. R1ckShi commented on Mar 7, 2024

    @R1ckShi
    Collaborator

    是可以的,但是我觉得这个应用的场景很少有批量自动调用的,都需要结合每一条视频的识别结果去选择需要的段落。所以主要推的是gradio界面的调用方式。

  4. locked and limited conversation to collaborators on May 17, 2024
  5. converted this issue into a discussion #58 on May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions