Skip to content

Commit

Permalink
bug(dataset): fix dataset label size calculate (#1027)
Browse files Browse the repository at this point in the history
fix dataset label size calculate
  • Loading branch information
tianweidut authored Aug 28, 2022
1 parent bc1ed6c commit 113a513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/starwhale/api/_impl/dataset/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def make_swds(self) -> DatasetSummary:
)

total_data_size += data_size
total_label_size += len(label)
total_label_size += sys.getsizeof(label)
increased_rows += 1

self._copy_files(map_path_sign)
Expand Down
4 changes: 2 additions & 2 deletions example/mnist/dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: mnist
data_dir: data
data_filter: "t10k-image*"
label_filter: "t10k-label*"
process: mnist.process:DataSetProcessExecutor
#process: mnist.process:RawDataSetProcessExecutor
#process: mnist.process:DataSetProcessExecutor
process: mnist.process:RawDataSetProcessExecutor
#process: mnist.process:LinkRawDataSetProcessExecutor

desc: MNIST data and label test dataset
Expand Down

0 comments on commit 113a513

Please sign in to comment.