File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
luxonis_ml/data/exporters Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ def __init__(
2828 self .grouped_image_sources = grouped_image_sources
2929
3030 @classmethod
31- def from_dataset (cls , ldf : "LuxonisDataset" ) -> "PreparedLDF" :
31+ def from_dataset (cls , dataset : "LuxonisDataset" ) -> "PreparedLDF" :
3232 """Prepare a dataset for export into the LDF representation."""
33- splits = ldf .get_splits ()
33+ splits = dataset .get_splits ()
3434 if splits is None :
3535 raise ValueError ("Cannot export dataset without splits" )
3636
37- df = ldf ._load_df_offline (raise_when_empty = True ).with_row_count (
37+ df = dataset ._load_df_offline (raise_when_empty = True ).with_row_count (
3838 "row_idx"
3939 )
4040
@@ -53,7 +53,7 @@ def resolve_path(
5353 pl .struct (["file" , "uuid" ])
5454 .map_elements (
5555 lambda r : resolve_path (
56- r ["file" ], r ["uuid" ], str (ldf .media_path )
56+ r ["file" ], r ["uuid" ], str (dataset .media_path )
5757 ),
5858 return_dtype = pl .Utf8 ,
5959 )
You can’t perform that action at this time.
0 commit comments