first commit

This commit is contained in:
YYJ-aaaa 2024-11-26 11:09:38 +08:00
parent 4185f7b93b
commit d175a4bb6b
8 changed files with 1266 additions and 0 deletions

12
all_results.json Normal file
View File

@ -0,0 +1,12 @@
{
"epoch": 5.0,
"eval_accuracy": 0.9922928709055877,
"eval_loss": 0.03933868557214737,
"eval_runtime": 6.4711,
"eval_samples_per_second": 80.203,
"eval_steps_per_second": 10.045,
"train_loss": 0.10440107471431079,
"train_runtime": 430.0921,
"train_samples_per_second": 34.167,
"train_steps_per_second": 4.278
}

33
config.json Normal file
View File

@ -0,0 +1,33 @@
{
"_name_or_path": "google/vit-base-patch16-224-in21k",
"architectures": [
"ViTForImageClassification"
],
"attention_probs_dropout_prob": 0.0,
"encoder_stride": 16,
"finetuning_task": "image-classification",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.0,
"hidden_size": 768,
"id2label": {
"0": "no",
"1": "yes"
},
"image_size": 224,
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"no": "0",
"yes": "1"
},
"layer_norm_eps": 1e-12,
"model_type": "vit",
"num_attention_heads": 12,
"num_channels": 3,
"num_hidden_layers": 12,
"patch_size": 16,
"problem_type": "single_label_classification",
"qkv_bias": true,
"torch_dtype": "float32",
"transformers_version": "4.36.0.dev0"
}

8
eval_results.json Normal file
View File

@ -0,0 +1,8 @@
{
"epoch": 5.0,
"eval_accuracy": 0.9922928709055877,
"eval_loss": 0.03933868557214737,
"eval_runtime": 6.4711,
"eval_samples_per_second": 80.203,
"eval_steps_per_second": 10.045
}

BIN
model.safetensors (Stored with Git LFS) Normal file

Binary file not shown.

22
preprocessor_config.json Normal file
View File

@ -0,0 +1,22 @@
{
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "ViTImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"resample": 2,
"rescale_factor": 0.00392156862745098,
"size": {
"height": 224,
"width": 224
}
}

7
train_results.json Normal file
View File

@ -0,0 +1,7 @@
{
"epoch": 5.0,
"train_loss": 0.10440107471431079,
"train_runtime": 430.0921,
"train_samples_per_second": 34.167,
"train_steps_per_second": 4.278
}

1178
trainer_state.json Normal file

File diff suppressed because it is too large Load Diff

BIN
training_args.bin (Stored with Git LFS) Normal file

Binary file not shown.