first commit

This commit is contained in:
YYJ-aaaa 2024-12-25 17:39:32 +08:00
parent 12d39e2e51
commit ef64093785
9 changed files with 3567 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
checkpoint-*/

13
all_results.json Normal file
View File

@ -0,0 +1,13 @@
{
"epoch": 2.0,
"eval_accuracy": 0.9043314126763362,
"eval_loss": 0.23999236524105072,
"eval_runtime": 93.6052,
"eval_samples_per_second": 107.537,
"eval_steps_per_second": 3.365,
"total_flos": 5.679462069216204e+19,
"train_loss": 0.1848815517786954,
"train_runtime": 16137.6204,
"train_samples_per_second": 45.426,
"train_steps_per_second": 0.355
}

34
config.json Normal file
View File

@ -0,0 +1,34 @@
{
"_name_or_path": "google/vit-base-patch16-224-in21k",
"architectures": [
"ViTForImageClassification"
],
"attention_probs_dropout_prob": 0.0,
"encoder_stride": 16,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.0,
"hidden_size": 768,
"id2label": {
"0": "nude",
"1": "safe",
"2": "sexy"
},
"image_size": 224,
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"nude": 0,
"safe": 1,
"sexy": 2
},
"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.28.0"
}

8
eval_results.json Normal file
View File

@ -0,0 +1,8 @@
{
"epoch": 2.0,
"eval_accuracy": 0.9043314126763362,
"eval_loss": 0.23999236524105072,
"eval_runtime": 93.6052,
"eval_samples_per_second": 107.537,
"eval_steps_per_second": 3.365
}

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
}
}

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

Binary file not shown.

8
train_results.json Normal file
View File

@ -0,0 +1,8 @@
{
"epoch": 2.0,
"total_flos": 5.679462069216204e+19,
"train_loss": 0.1848815517786954,
"train_runtime": 16137.6204,
"train_samples_per_second": 45.426,
"train_steps_per_second": 0.355
}

3475
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.