Remove deprecated task in load_dataset (#33433)
This commit is contained in:
committed by
GitHub
parent
91f19a5b18
commit
42babe8548
@@ -282,7 +282,6 @@ def main():
|
|||||||
data_args.dataset_name,
|
data_args.dataset_name,
|
||||||
data_args.dataset_config_name,
|
data_args.dataset_config_name,
|
||||||
cache_dir=model_args.cache_dir,
|
cache_dir=model_args.cache_dir,
|
||||||
task="image-classification",
|
|
||||||
token=model_args.token,
|
token=model_args.token,
|
||||||
trust_remote_code=model_args.trust_remote_code,
|
trust_remote_code=model_args.trust_remote_code,
|
||||||
)
|
)
|
||||||
@@ -296,7 +295,6 @@ def main():
|
|||||||
"imagefolder",
|
"imagefolder",
|
||||||
data_files=data_files,
|
data_files=data_files,
|
||||||
cache_dir=model_args.cache_dir,
|
cache_dir=model_args.cache_dir,
|
||||||
task="image-classification",
|
|
||||||
)
|
)
|
||||||
# See more about loading any type of standard or custom dataset (from files, python dict, pandas DataFrame, etc) at
|
# See more about loading any type of standard or custom dataset (from files, python dict, pandas DataFrame, etc) at
|
||||||
# https://huggingface.co/docs/datasets/loading_datasets.
|
# https://huggingface.co/docs/datasets/loading_datasets.
|
||||||
|
|||||||
Reference in New Issue
Block a user