2 Star 13 Fork 12

endless / first-order-model-java

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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.

About

java版本的图像动作驱动-First Order Motion Model。给定一张源图片,给定一个驱动视频,生成一段视频,其中主角是源图片,动作是驱动视频中的动作。 expand collapse
Java and 2 more languages
BSD-3-Clause
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/endlesshh/first-order-model-java.git
git@gitee.com:endlesshh/first-order-model-java.git
endlesshh
first-order-model-java
first-order-model-java
master

Search