diff --git a/sleap/info/feature_suggestions.py b/sleap/info/feature_suggestions.py index 51f9038a5..a5f773fa7 100644 --- a/sleap/info/feature_suggestions.py +++ b/sleap/info/feature_suggestions.py @@ -644,7 +644,7 @@ class ParallelFeaturePipeline(object): def get(self, video_idx): """Apply pipeline to single video by idx. Can be called in process.""" video_dict = self.videos_as_dicts[video_idx] - video = cattr.structure(video_dict, Video) + video = Video.cattr().structure(video_dict, Video) group_offset = video_idx * self.pipeline.n_clusters # t0 = time() diff --git a/sleap/io/asyncvideo.py b/sleap/io/asyncvideo.py index c48d21a8b..88876607e 100644 --- a/sleap/io/asyncvideo.py +++ b/sleap/io/asyncvideo.py @@ -166,7 +166,7 @@ def run(self): break if "video" in request: - self.video = cattr.structure(request["video"], Video) + self.video = Video.cattr().structure(request["video"], Video) logger.debug(f"loaded video: {self.video.filename}") if self.video is not None: