ultralytics 8.0.160 Classify dataset scanning and caching (#4502)
This commit is contained in:
parent
b890e1c937
commit
c7ceb84fb6
5 changed files with 102 additions and 23 deletions
|
|
@ -77,7 +77,7 @@ class ClassificationValidator(BaseValidator):
|
|||
return self.metrics.results_dict
|
||||
|
||||
def build_dataset(self, img_path):
|
||||
return ClassificationDataset(root=img_path, args=self.args, augment=False)
|
||||
return ClassificationDataset(root=img_path, args=self.args, augment=False, prefix=self.args.split)
|
||||
|
||||
def get_dataloader(self, dataset_path, batch_size):
|
||||
"""Builds and returns a data loader for classification tasks with given parameters."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue