-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
fit-model-simple
gets Segmentation fault when using BFM2017 model in Ubuntu 16
#260
Comments
Hi! We'll need to know on what line it crashes, and ideally you'd have a look at the call stack and the variables. I recommend you do a |
@patrikhuber I think this error happens because the size of eos/include/eos/render/render_affine.hpp Line 104 in 9a51161
|
Yes indeed. The BFM doesn't come with texture coordinates, and you're trying to extract/remap texture, so that for sure can't work. |
I agree there should perhaps be a better error message than just a segfault, so we can leave this open until we've added better error messaging. |
@patrikhuber I specified But I met same seg fault error, it's because of The uv params I specified is following. 1) texture_coordinateshttps://drive.google.com/open?id=19LfglO8Fjh0wEU8mSO2yeFemvTeiKZcP
2) texture_triangle_indiceshttps://drive.google.com/open?id=1YguZtPUA1SHS87pt67SR_S7CRoeoiXYH
|
Uv coordinates are usually between 0 and 1, and this is what eos expects. The values of your texture_coordinates look a bit weird. Also you better check if the texture_triangle_indices should start at zero or one, this should be in the documentation, if not, you can check the ones of the SFM. But if you load a model with texture coords (even if they're wrong), |
@patrikhuber I think my I have have another question. Is there a way to run |
You can just comment the line in the fit-model-simple code that extracts the texture. The example is well documented and if you have a look at it, you'll find it immediately. Then it should of course work just fine. In eos v1.1.0, I've done some improvements with regards to meshes that have a different number of texture triangle indices to the mesh's triangle indices. The |
Use this texture coordinates from 3DMMasSTN repository for BFM model. |
@saikiran321 |
@patrikhuber The generated obj is below. It seems that not only the texture, but also the expression is not much reflected in BFM. Is this right? On the other hands, mouth is opened when I tried to use same picture and SFM model. |
@kidapu The |
@patrikhuber Although I changed the regularisation value(lamda) between ※I changed the value of lamda here. I think the accuracy of BFM is lower than that of SFM. |
@kidapu Make sure you only change the lambda of the expression fitting, and not the lambda of both the identity and expression fitting. It looks from your screenshot like you might only have changed lambda for the identity shape fitting. |
@patrikhuber I think It's here, is calling Is there any other place where I can specify lamda for expression fitting? (I'm sorry I ask questions one after another ... 🙇) |
@kidapu Oh okay I see what's going on.
What you probably want is to use |
@patrikhuber |
@patrikhuber When I run I think this happens becsuse |
@kidapu Yes, of course you can't combine the blendshapes from the SFM with the BFM, as they would have a completely different topology/number of vertices. If you're using the BFM2009, then I believe there's an expression model "out there on the internet", made from the FaceWarehouse data, available for academic use I think. I think it's originally from the 3DDFA paper and the one we also used for our 3DMMasSTN work, where you can find a link. People have also discussed this already in other eos issues, try searching through them. If you're using the BFM2017, it already includes an expression PCA model, so you can skip loading any separate blendshapes. |
Hi, I am trying to perform texture extraction from BFM fitting. Have you by any chance tried texture extraction with BFM, and could therefore refer to texture coordinate data for it ? Thank you |
Hi @BenjBarral, I don't have any uv coords for the BFM2017. Perhaps you can retopologise the ones from the BFM2009, ask the authors, create them by yourself, search the web/publications if anyone has a set of uv coords for the BFM2017, etc. |
I am closing this, since the original issue was a segfault in Feel free to still use this issue if people want to continue the discussion about BFM2017 texture coordinates, I guess if somebody had/created/shared them, it would be useful to quite a few people. |
fit-model-simple
gets Segmentation fault when using BFM model in Ubuntu 16fit-model-simple
gets Segmentation fault when using BFM2017 model in Ubuntu 16
hi, have u fixed it and generating goog result successfully, i met same problem using bfm 2009 model. |
Hi @lvZic, Indeed |
When I run this command, I met Segmentation fault.
When I analyze core file with gdb, the result is below.
The
fit-model-simple
run well with using sfm model. But when using BFM model, it gets seg fault.I generated
bfm2017-1_bfm_nomouth.bin
frommodel2017-1_bfm_nomouth.h5
, is downloaed from this url.Please let me know if you have any solution.
The text was updated successfully, but these errors were encountered: