Comments (11)
This means that the combined segmentation map is only zeros.
It might be a problem with the landmarks or the segmentation.
I like the idea of an iOS port! It can be a great contribution! Are you willing to share the code?
from face_swap.
the log:
faces found = 1
faces found = 1
vecR [0.0029098843;
0.15772882;
-0.037092187]
vecT [1.9298197;
-21.032534;
-1098.7878]
exprW [-0.39331913;
0.17700461;
-0.29514793;
0.11593564;
-0.42752558;
0.24469842;
2.8671944;
0.7221989;
-1.1991261;
0.099073336;
0.20576096;
1.0124749;
-0.44310626;
-0.098507486;
-1.0734005;
-0.24701883;
-0.37821278;
0.3187601;
1.1587392;
1.8510281;
1.3205831;
0.76069188;
-0.029121373;
-0.0070772283;
1.1604365;
0.0073522874;
0.24649803;
-0.02893436;
-0.24754204]
vecR [-0.034498993;
0.077174194;
-0.13330679]
vecT [4.0268807;
-32.977039;
-924.23651]
exprW [-0.24939266;
0.39104307;
-0.17418325;
0.77485698;
-0.11051087;
0.25302994;
1.5111284;
-1.7924082;
-0.21672148;
-0.19027816;
-0.27793592;
1.3636755;
0.03324154;
-0.012820265;
-1.6727974;
-0.12949848;
-0.047394246;
0.91332167;
0.16732536;
0.04252547;
0.11279398;
0.49106297;
-0.008773597;
-0.21201798;
1.1952631;
0.24981749;
0.021493442;
-0.29385114;
-0.26967478]
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Face swap failed!
I found here :
cv::Mat rendered_img;
m_face_renderer->render(m_vecR, m_vecT);
m_face_renderer->getFrameBuffer(rendered_img);
rendered_img data is zeros, I think the issues is here? Am I right?
I will share the porting code till the app can run on iOS, but I might not enough time to support the code.
from face_swap.
I can't track the problem from this log. What images have you used?
from face_swap.
I import some debug images, as follows:
cv::Mat debug_src_mesh_img = fs.debugSourceMesh();
cv::Mat debug_tgt_mesh_img = fs.debugTargetMesh();
cv::Mat debug_src_lms_img = fs.debugSourceLandmarks();
cv::Mat debug_tgt_lms_img = fs.debugTargetLandmarks();
cv::Mat debug_src_mesh_wire_img = fs.debugSourceMeshWireframe();
cv::Mat debug_tgt_mesh_wire_img = fs.debugTargetMeshWireframe();
BTW: face segment need to big memory more then 1GB, I have to generate them by Mac OS APP
from face_swap.
I found the rendered_img.data is zero, so opengles porting is not right?
m_face_renderer->render(m_vecR, m_vecT);
m_face_renderer->getFrameBuffer(rendered_img);
from face_swap.
What is the OpenGL ES version? It has to be equivalent to OpenGL 1.5 (without shaders).
from face_swap.
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
from face_swap.
I have to use opengl es1, delete es2.0, now I test it... god bless me
from face_swap.
I already change opengl es2 to es1, no lucky:), rendered_img is still zero.
I ongly add a function beacause es2 does not provide it.
void gluPerspective(double fovy , double aspect , double zNear , double zFar)
{
// Start in projection mode.
//glMatrixMode(GL_PROJECTION);
//glLoadIdentity();
double xmin, xmax, ymin, ymax;
ymax = zNear * tan(fovy * M_PI / 360.0);
ymin = -ymax;
xmin = ymin * aspect;
xmax = ymax * aspect;
glFrustumf(xmin, xmax, ymin, ymax, zNear, zFar);
}
from face_swap.
Everything is ok but rendered_img:(
from face_swap.
So how to trace the problem in the next step? do you need more screetshots about it.
from face_swap.
Related Issues (20)
- Any suggestion for improve the face_swap precision? How to tune the parameter? HOT 2
- the video generated by image2video is shaking . HOT 10
- ubuntu run out of memory HOT 2
- dlib error
- libraries may not be found correctly HOT 6
- OpenCV installation error HOT 4
- Biding error---Configuring incomplete, errors occurred HOT 1
- "No module named 'face_swap_py'" error while using Python interface HOT 1
- How to use render in python? HOT 1
- "make -j8 of face_swap" error / IplImage temp = img HOT 1
- face is missing on some frame of video
- face_swap_image: command not found HOT 1
- FSGAN: Subject Agnostic Face Swapping and Reenactment HOT 1
- h
- is there a color correct option? HOT 1
- face_swap/face_swap_export.h is missing HOT 1
- Platform support
- Problem with Boost version. Trying to downgrade from 1.78 to 1.65.1 without luck. HOT 1
- Openblas and GFortran issue
- Facial expression drive?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face_swap.