-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run_facewarp.py error #9
Comments
Hi lzxzy, Thanks for the bug report. Just some questions:
@srajotte I have added you since you'll probably have a better idea of this than I do. Would it help if we had the core dump file? (Not that I dabble in such things...) |
For now, having the answer to the three points you mentioned would be more helpful than a core dump. Assuming FaceWarperServer successfully compiled, a possible source of the problem is if the destination directory doesn't exist or the source files (images, keypoints, etc.) don't exist. FaceWarperServer assumes that all input files are valid and exist. If a file or the destination directory doesn't exist, there is a high probability of a crash. I suppose the Python script that @lzxzy is using is DepthNets/cyclegan/data/celeba/run_facewarp.py. In this script, if a file doesn't exist, an error message will be printed, but the command will still be sent to FaceWarperServer. @lzxzy do you get a message starting with "PB" on the standard output before FaceWarperServer crashes? |
When I was running this a while ago, the python script would simply hang if a file or directory doesn’t exist, rather than segfault. If the example command in the facewarper works, then this would imply that maybe there’s a bug in my data prep script. |
Indeed, thinking about it again, I don't think a missing file/folder would generate a Segmentation fault. In this situation, FaceWarperServer should either hang or abort, but not segfault. Knowing if the example works correctly would really help to pinpoint the source of the problem. |
Thanks for your reply
It seems pass the build, and When I
Looks make successfully also.
|
If you execute FaceWarperServer by itself (run build/FaceWarperServer), does it segfault? |
Yes , when I run |
and when run the example you raised , I got nothing. Nothing output either error imformation |
If FaceWarperServer crashes with a segfault by itself, then there is a problem with the executable. I don't know what might cause this problem. My first hypothesis would be an incompatibility with one of the shared libraries (zlib/libpng/freeglut/opengl). |
Ok, thanks for your reply |
What is the operating system you're using? Hmm so maybe |
ubuntu 16.04 |
when I use |
@srajotte is there an easy way for him to figure out the versions of all the libraries which the server is dependent on? I know this doesn't help much, but if you have Ubuntu 18.04 (rather than 16.04) it should work. We've both compiled and run it successfully on this version. |
You can use @lzxzy you might want to try to run this command and copy the output to see if something seems strange. Since you are using a different distribution version, the version of all the libraries will probably be different. It isn't a bad thing, but it makes spotting a problem very difficult. Another thing that would help is run |
Thanks for reply, I had tried use |
Thanks!!! We would love to know what’s different between the two Ubuntu versions. It would really help out others in the future who may get stuck as well. |
Hi, I have tried the |
Your problem looks similar to this problem on StackOverflow. For some reason, your executable doesn't link to |
Yeah I think it's the same error as me, but I run the command nothing change. I think it maybe Nvidia driver with OpenGL occur some error or something else. |
Hi guys , tanks for your suggestions. I'm happy to tell you I solved the problem. It seems that you are right @srajotte . but ues |
Good news! Thanks for taking the time to try to solve this problem. |
This should solve the linking problem seen on some systems (see issue #9).
Cool if it's fixed we can close the issue. With regard to to the face rotation, see this section of the readme in the With the If you have any more questions regarding this, you can open up a new issue and we'll discuss it there. |
when I run shell
python runfacewarp.py --results_dir=frontalized_faces
I got the error Segmentation fault(core dumped)
It seemed the FaceWarperServer which was compiled has some problem
but I through the build and cmake got nothing
So, what's the problem is this, thank you
The text was updated successfully, but these errors were encountered: