Davinci部署安装

  1. 下载
    github地址:https://github.com/edp963/davinci

    wget https://github.com/edp963/davinci/releases/download/v0.3.0-beta.4/davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip
    

    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

  2. 解压安装包

    [root@cdh01 soft]# unzip davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip -d /root/soft/davinci
    [root@cdh01 davinci]# ll
    总用量 24
    drwxr-xr-x. 2 root root  212 4月  28 13:23 bin
    drwxr-xr-x. 2 root root   85 4月  28 14:16 config
    drwxr-xr-x. 2 root root 4096 11月 27 19:40 davinci-ui
    drwxr-xr-x. 2 root root 8192 11月 27 19:42 lib
    drwxr-xr-x. 2 root root   36 4月  28 13:37 logs
    -rw-r--r--. 1 root root 7703 11月 27 10:50 README.md
    drwxr-xr-x. 2 root root    6 11月 27 17:31 userfiles
    
  3. 环境准备

    1. java 1.8以上
    2. mysql5.5以上
    3. phantomjs 见(https://blog.csdn.net/weixin_43215250/article/details/89635561)
  4. 配置环境变量

    [root@cdh01 soft]# cat /etc/profile.d/davinci.sh 
    export DAVINCI3_HOME=/root/soft/davinci
    [root@cdh01 soft]# source /etc/profile
    
  5. 初始化数据库

    1. 修改 bin 目录下 initdb.sh
      mysql -P 3306 -h localhost -u root -p123456 davinci0.3 < $DAVINCI3_HOME/bin/davinci.sql
      
    2. 运行初始化数据库脚本
      注意:Davinci0.3 系统数据库中包含存储过程,在创建数据库时请务必赋予执行权限
      sh bin/initdb.sh
      
  6. 初始化配置

    [root@cdh01 davinci]# cd config
    [root@cdh01 config]# mv application.yml.example application.yml
    [root@cdh01 config]# vim application.yml
    

    server 配置:

    server:
      protocol: http
      address: 192.168.154.101
      port: 8080
    
      # Userd for mail and download services, can be empty, careful configuration
      # By default, 'server.address' and 'server.port' is used as the string value.
      # access:
      #  address:
      #  port:
    

    server.access.address和server.access.port表示真实访问地址和端口,默认不开启,其值默认为server.address和server.port。
    由于davinci0.3.0_beta3使用邮箱注册新的账号,所以server的address不能使用127.0.0.1,在邮箱中生成的验证链接会使用这个address地址。
    datasource 配置:

    spring:
      mvc:
        async:
          request-timeout: 30s
    
      ## davinci datasouce config
      datasource:
        url: jdbc:mysql://localhost:3306/davinci0.3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
        username: root
        password: 123456
        driver-class-name: com.mysql.jdbc.Driver
        initial-size: 2
        min-idle: 1
        max-wait: 60000
        max-active: 10
    

    mail 配置:
    在这里插入图片描述

    spring:
      	mail:
    	    host: smtp.163.com
    	    port: 25
    	    username: xxxxxxx@163.com
    	    password: xxxxxx
    	    nickname: Davinci
    	
    	    properties:
    	      smtp:
    	        starttls:
    	          enable: true
    	          required: true
    	        auth: true
    	      mail:
    	        smtp:
    	          ssl:
    	            enable: false
    

    phantomjs 配置:
    phantomjs 是用来定时发送报表截图的,只需要配置安装好的 phantomjs 可执行文件地址即可

    phantomjs_home: /root/soft/phantomjs
    
  7. 启动Davinci

    [root@cdh01 davinci]# bin/start-server.sh
    ...
    

    访问地址: http://192.168.154.101:8080/
    username: super@davinci.com
    password: 123456在这里插入图片描述

  • 3
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
Davinci 是一种先进的人工智能模型训练框架,可以用于自然语言处理和语音合成等任务。在 Window 操作系统上部署 Davinci 需要以下几个步骤。 首先,确保您的计算机满足 Davinci 的系统要求。Davinci 要求电脑系统为64位的 Windows 10或更高版本,并且至少具有16 GB 的内存。同时,您需要保证在电脑上已经安装了 CUDA 和 cuDNN 的最新版本,以支持 DNN 模型的加速计算。 接下来,您需要下载并安装适用于 Windows 的 CUDA 和 cuDNN 工具包。这些工具包可以到官方网站上进行下载,并按照安装指南进行安装安装完成后,您需要将 CUDA 和 cuDNN 的路径添加到系统的环境变量中,以便能够正确地引用这些工具包。 然后,在您的 Python 开发环境中安装 Davinci。可以使用 pip 安装指令,在命令行中输入 pip install -i https://pypi.douban.com/simple "davinci" 来安装 Davinci。等待安装完成后,您就可以在 Python 中引用 Davinci,并开始使用它进行模型训练和任务处理了。 最后,在您的代码中使用 Davinci 进行任务处理。您需要加载相应的模型,通过 Davinci 提供的 API 进行文本/语音处理,根据您的需求进行模型训练和生成文本或语音。可以根据 Davinci 的官方文档和示例代码来了解更多关于如何使用 Davinci 的详细信息。 总结起来,部署 Davinci 在 Window 上需要满足系统要求、安装 CUDA 和 cuDNN 工具包、安装 Davinci Python 包,并在代码中使用 Davinci 进行任务处理。希望以上回答能够对您有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值