Breaking Change: Making key objects picklable
1 unresolved thread
1 unresolved thread
As mentioned in bob.bio.face!64 (merged) the small hacks made in bob.bio.base to handle pickled stuff is giving more headaches than it should.
So, I decided to make some key objects picklable.
Edited by Tiago de Freitas Pereira
Merge request reports
Activity
added 1 commit
- 322070d8 - Temporally add bob.pipelines as dependency [conda]
mentioned in merge request bob.learn.linear!12 (merged)
78 return d 79 80 def __setstate__(self, d): 81 self.__dict__ = d 82 shape = self.gmm_shape_from_dict(d) 83 self.__init__(shape[0], shape[1]) 84 self.update_dict(d) 85 86 87 class ISVBase(_ISVBase_C): 88 __doc__ = _ISVBase_C.__doc__ 89 90 @staticmethod 91 def to_dict(isv_base): 92 isv_data = dict() 93 isv_data["gmm"] = GMMMachine.to_dict(isv_base.ubm) We always have to make sure we are exposing the python class and not the c++ bonded ones, otherwise, we'll not have the getstate and setstate methods
Edited by Tiago de Freitas Pereirachanged this line in version 7 of the diff
changed milestone to %Bob 9.0.0
added 1 commit
- 5921c042 - Removed Z-T-ZT Normalization from this package
mentioned in commit 4cfcee92
Please register or sign in to reply