Error in run_mae.py when specifying arguments
Author: SiyCHENG
Pull request: no

### System Info

I encountered an error while running the run_mae.py script with the following command:
```basg
(base) mima0000@mima0000deMacBook-Air ViTMAE % python run_mae.py \
    --model_name_or_path /Users/mima0000/本地文档/ViTMAE/mae_base \
    --dataset_name /Users/mima0000/本地文档/ViTMAE/Nuclear/ \
    --train_dir /Users/mima0000/本地文档/ViTMAE/Nuclear/train/* \
    --output_dir /Users/mima0000/本地文档/ViTMAE/Model \
    --remove_unused_columns False \
    --label_names pixel_values \
    --do_train \
    --do_eval
```
  I received the following traceback: 
```
  Traceback (most recent call last):
  File "/Users/mima0000/本地文档/ViTMAE/run_mae.py", line 412, in <module>
    main()
  File "/Users/mima0000/本地文档/ViTMAE/run_mae.py", line 182, in main
    model_args, data_args, training_args = parser.parse_args_into_dataclasses()
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mima0000/anaconda3/lib/python3.11/site-packages/transformers/hf_argparser.py", line 347, in parse_args_into_dataclasses
    raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {remaining_args}")
ValueError: Some specified arguments are not used by the HfArgumentParser: ['/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_10.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_2.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_3.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_4.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_5.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_6.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_7.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_8.jpg', '/Users/mima0000/本地文档/ViTMAE/Nuclear/train/sample_9.jpg']
```
It seems that the HfArgumentParser is reporting that some of the specified arguments are not used.
Could you please help me understand why these arguments are not recognized by the HfArgumentParser and how I can resolve this issue?
  

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction
```
(base) mima0000@mima0000deMacBook-Air ViTMAE % python run_mae.py \
    --model_name_or_path /Users/mima0000/本地文档/ViTMAE/mae_base \
    --dataset_name /Users/mima0000/本地文档/ViTMAE/Nuclear/ \
    --train_dir /Users/mima0000/本地文档/ViTMAE/Nuclear/train/* \
    --output_dir /Users/mima0000/本地文档/ViTMAE/Model \
    --remove_unused_columns False \
    --label_names pixel_values \
    --do_train \
    --do_eval
```
### Expected behavior

Train a mae_vit model with my own dataset

Comments:
```diff
(base) mima0000@mima0000deMacBook-Air ViTMAE % python run_mae.py \
    --model_name_or_path /Users/mima0000/本地文档/ViTMAE/mae_base \
    --dataset_name /Users/mima0000/本地文档/ViTMAE/Nuclear/ \
-    --train_dir /Users/mima0000/本地文档/ViTMAE/Nuclear/train/* \
+    --train_dir /Users/mima0000/本地文档/ViTMAE/Nuclear/train \
    --output_dir /Users/mima0000/本地文档/ViTMAE/Model \
    --remove_unused_columns False \
    --label_names pixel_values \
    --do_train \
    --do_eval
```
hey! Could you try with this? 

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.