You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a morphable model and an MMFitter and a LucasKanadeMMFitter, I want to call the _fit() or fit_from_shape() method on an image. The image has landmarks in a .pts file. I am getting an error that 'str' object is not callable, with the trace leading to inside the _prepare_image function on the line: feature_image = self.holistic_features(tmp_image). Would you have any explanation for this?
From what I know, this is an issue where it expected a different type (such as an Image class) but it got a string type instead. I also came across this error when initializing the LucasKanadeMMFitter and specifying lk_algorithm_cls = 'SimultaneousForwardAdditive' instead of leaving it as the default (SimultaneousForwardAdditive) which is of Type type instead of Type string.
I am not sure if this is the reason, but it says in the comments that _prepare_image expects a menpo.image.Image or subclass and a menpo.shape.PointCloud but for some reason when I import the images using menpo.io.import_image() and image.landmarks['PTS'] they give me objects of type menpo.image.base.Image and menpo.shape.pointcloud.PointCloud.
Any help would be greatly appreciated!
Jerry
The text was updated successfully, but these errors were encountered:
After creating a morphable model and an MMFitter and a LucasKanadeMMFitter, I want to call the _fit() or fit_from_shape() method on an image. The image has landmarks in a .pts file. I am getting an error that 'str' object is not callable, with the trace leading to inside the _prepare_image function on the line: feature_image = self.holistic_features(tmp_image). Would you have any explanation for this?
From what I know, this is an issue where it expected a different type (such as an Image class) but it got a string type instead. I also came across this error when initializing the LucasKanadeMMFitter and specifying lk_algorithm_cls = 'SimultaneousForwardAdditive' instead of leaving it as the default (SimultaneousForwardAdditive) which is of Type type instead of Type string.
I am not sure if this is the reason, but it says in the comments that _prepare_image expects a menpo.image.Image or subclass and a menpo.shape.PointCloud but for some reason when I import the images using menpo.io.import_image() and image.landmarks['PTS'] they give me objects of type menpo.image.base.Image and menpo.shape.pointcloud.PointCloud.
Any help would be greatly appreciated!
Jerry
The text was updated successfully, but these errors were encountered: