Coder Social home page Coder Social logo

facefusion-onnxrun's Introduction

本套程序是对最近火热的换脸程序 https://github.com/facefusion/facefusion 的剥离。在官方程序里,定义了太多的.py文件和函数模块,模块之间的嵌套太复杂, 因此我重新编写了Python程序,我的程序里只有7个.py文件,换脸程序里一共包含5个模块, 除去main.py和utils.py文件,在我的程序里每个模块对应一个.py文件,接着我编写了C++程序。

onnx文件在百度云盘,链接:https://pan.baidu.com/s/12Fw2lqkhxWD5Xbk5A2Q2YQ 提取码:sz78

facefusion-onnxrun's People

Contributors

hpc203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

facefusion-onnxrun's Issues

Host files in Google Drive

Hi,

Im from Brasil and never reach the SMS from Baidu.

Can you share the models/weights on Google Drive, please?

Thanks.

c++代码楼主测试过了吗,好几个明显的bug是跑不过的。

this->input_image.resize(3 * image_area);
size_t single_chn_size = image_area * sizeof(float);
memcpy(this->input_image.data(), (float *)bgrChannels[0].data, single_chn_size); //明显的越界
memcpy(this->input_image.data() + image_area, (float *)bgrChannels[1].data, single_chn_size);
memcpy(this->input_image.data() + image_area * 2, (float *)bgrChannels[2].data, single_chn_size);

c++ run error start read model_matrix.bin Segmentation fault (core dumped)

./build/facefusion-onnxrun --weights ./weights/ --out ./sample_out/ --source ./images/1.jpg --target ./images/2.jpg
weights_dir: /Data2/wyw/facefusion-onnxrun-add_cmake/weights
out_dir: /Data2/wyw/facefusion-onnxrun-add_cmake/sample_out
Yolov8Face input name: images
Yolov8Face output name: output0
Face68Landmarks input name: input
Face68Landmarks ouput name: landmarks_xyscore
Face68Landmarks ouput name: heatmaps
FaceEmbdding input name: input.1
FaceEmbdding output name: 683
SwapFace input name: target
SwapFace input name: source
SwapFace output name: output
start read model_matrix.bin
Segmentation fault (core dumped)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.