Skip to content

Add multi-threads support to samples crop #2794

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
Currently, there are 4 crop transforms can generate a list of samples, and we crop the images in a for loop.
After some testing, I found that if executing in multi-threads, it can be much faster.
So it would be useful to add num_workers support to these transforms, similar to the CacheDataset.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions