1 Star 0 Fork 12

daoos / first-order-model-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

first-order-model-java

介绍

让静态图片动起来,这是first-order-model最让人兴奋的地方

  1. 目前网上全部是以python语言开发的,java程序员想要研究和使用还是有些难度的。
  2. 本项目得益于DJL,可以让java运行AI模型,DJL是一个java的deeplean工具,可以调用TensorFlow,pyTorch,mxnet等等AI引擎。java程序员可以入坑。

模型下载地址

https://pan.baidu.com/s/1veqKtJiHpIBk4eMIv9Zn0Q 密码: 1234

1、运行后效果图(视频内容只是技术研究使用,如果侵犯,请通知删除,谢谢)

源图 源视频 图片效果

Required Software

本版本在以下平台测试通过:

  • windows7 64bit
  • jdk1.8.0_45
  • DJL 0.11.0
  • opencv4.3
  • javaccp1.5.3

使用源码生成模型

1、python源码模型名称vox-adv-cpk.pth.tar在百度网盘中 2、git clone https://gitee.com/endlesshh/fisrt-order-model 3、按要求安装相应的包 4、demo.py --config config/vox-256.yaml --driving_video data/ds1.mp4 --source_image sup-mat/3m.jpg --checkpoint 模型路径/vox-adv-cpk.pth.tar --relative --adapt_scale 5、demo.py 在65 和85行去掉注释,保存模型

源项目地址

  1. https://github.com/AliaksandrSiarohin/first-order-model(源项目)
  2. https://gitee.com/endlesshh/fisrt-order-model(为了适配DJL修改了模型参数,以当前项目导出的模型)
BSD 3-Clause License Copyright (c) 2020, endless All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

java版本的图像动作驱动-First Order Motion Model。给定一张源图片,给定一个驱动视频,生成一段视频,其中主角是源图片,动作是驱动视频中的动作。 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/daoos_admin/first-order-model-java.git
git@gitee.com:daoos_admin/first-order-model-java.git
daoos_admin
first-order-model-java
first-order-model-java
master

搜索帮助