Closed cfoch closed 5 years ago
Hi,
I think this is the expected error. You're passing a model to fit_shape_and_pose
that doesn't actually contain expressions (even though you call it morphablemodel_with_expressions
). When you construct it, you do not pass it an expression model (i.e. blendshapes in this case):
morphablemodel_with_expressions = eos.morphablemodel.MorphableModel(model.get_shape_model(),
model.get_color_model(),
# eos.morphablemodel.PcaModel(),
texture_coordinates=model.get_texture_coordinates())
Hi, yes, that was the problem. I had to pass to it blendshapes
morphablemodel_with_expressions = eos.morphablemodel.MorphableModel(
model.get_shape_model(),
blendshapes,
color_model=eos.morphablemodel.PcaModel(),
texture_coordinates=model.get_texture_coordinates()
I think this can be closed. Thanks!
In
eos-py==1.0.1
which is the one pip install by default, I get the following error:This is produced by doing:
The code to reproduce the error is here: https://gist.github.com/cfoch/1ef5976bbabeb24af20a59c00d84055c
in which I basically do...
and to create landmarks: