Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Dec 20, 2024
1 parent 3c10162 commit 20fc9de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion data_juicer/ops/base_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def __init__(self, *args, **kwargs):
self.history_key = kwargs.get('history_key', 'history')

self.batch_size = kwargs.get('batch_size', 1000)
self.concurrency = kwargs.get('concurrency', 1)

# whether the model can be accelerated using cuda
_accelerator = kwargs.get('accelerator', None)
Expand Down
5 changes: 0 additions & 5 deletions data_juicer/ops/mapper/image_captioning_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,6 @@ def process_batched(self, samples, rank=None):
:param samples:
:return:
"""
import pyarrow as pa

if isinstance(samples, pa.Table):
samples = samples.to_pydict()

# reconstruct samples from "dict of lists" to "list of dicts"
reconstructed_samples = []
for i in range(len(samples[self.text_key])):
Expand Down

0 comments on commit 20fc9de

Please sign in to comment.