Skip to content

Commit

Permalink
Fix project export (cvat-ai#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Zhiltsov authored Feb 26, 2021
1 parent 68b1212 commit 9a88cad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datumaro/components/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ def categories(_):

return self.transform(_DatasetFilter)

def export(self, save_dir: str, format, **kwargs):
dataset = Dataset.from_extractors(self, env=self.env)
dataset.export(save_dir, format, **kwargs)

def transform_project(self, method, save_dir=None, **method_kwargs):
# NOTE: probably this function should be in the ViewModel layer
if isinstance(method, str):
Expand Down

0 comments on commit 9a88cad

Please sign in to comment.