Skip to content
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

when using custom pca model, raise error #213

Open
junhwanjang opened this issue Jul 24, 2018 · 8 comments
Open

when using custom pca model, raise error #213

junhwanjang opened this issue Jul 24, 2018 · 8 comments

Comments

@junhwanjang
Copy link

libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: The model file you are trying to load is in an old format. Please download the most recent model files.

I trained new custom pca model!(different vertices) but it didn't work on eos-model viewer...
When loading model in python, successful. I don't know why it does..

@patrikhuber
Copy link
Owner

Hi,
You need to use the same eos version to create the model and when using the model viewer. I suspect in your case the version difference is too large. A few months ago I updated the eos version of the model viewer in this branch: https://github.com/patrikhuber/eos-model-viewer/tree/update-eos-and-igl
If you have any further issues pertaining the model viewer please open an issue in the respective repository. As mentioned in the model-viewer readme, the model-viewer is quite experimental, not very polished code, and "you're on your own" using it. (It works just fine for us overall though, with the occasional hiccup.)

@KangolHsu
Copy link

I use eos-py1.0.1 python convert bfm2009 .mat file to bin flie the same error occurs.

@junhwanjang
Copy link
Author

eos version 0.15.1 would be a solution.

@patrikhuber
Copy link
Owner

@KangolHsu I'm not 100% sure I understand what you're doing, as your description is not quite clear. Do you get that error while converting the bfm2009?

If the error occurs in the eos-model-viewer, you can always build the model viewer with the latest eos version? And if it's an issue with the model-viewer, open an issue in that repo?

@KangolHsu
Copy link

@patrikhuber
I use the eos-py1.0.1 to convert 01_MorphableModel.mat to the .bin file which eso can be used by eos ,but it is still this error :
"The model file you are trying to load is in an old format. Please download the most recent model files."
When I use old version eos-py0.14.0 to convert it ,it works fine.

@KangolHsu
Copy link

when i converted 01_MorphableModel.mat done with eos-py0.14.0
when fit-model-simple.cpp run into this line

projected_vertices.push_back(

it occurs a read error,because mesh.texcoords is empty ,this is caused by convert script
model = eos.morphablemodel.MorphableModel(shape_model, color_model, vertex_definitions=None,

"texture_coordinates=[]"
where can i find the texture_coordinates of BFM2009?
thanks.

@KangolHsu
Copy link

I solved this by adding texture_coordinates data from the UV coords [here](https://github.com/anilbas/3DMMasSTN/blob/master/util/BFM_UV.mat)

patrikhuber added a commit that referenced this issue Jan 29, 2019
…r 1, 2, 3 or 4

The error is also different from the error when a model of version <1 is loaded.
This might help diagnose problems like #213.
@patrikhuber
Copy link
Owner

I think maybe the bfm2009 python converter script needs to be updated slightly to pass an empty set of texture coordinates? I'll re-open this, in case something needs updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants