--- license: apache-2.0 tags: - generated_from_trainer datasets: - food101 metrics: - accuracy model-index: - name: swin-finetuned-food101 results: - task: type: image-classification name: Image Classification dataset: name: food101 type: food101 args: default metrics: - type: accuracy value: 0.9210297029702971 name: Accuracy - task: type: image-classification name: Image Classification dataset: name: food101 type: food101 config: default split: validation metrics: - type: accuracy value: 0.9135841584158416 name: Accuracy verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYWJlN2FmOTBlNDE4NjRmNjM4ZjZlNDhiN2M3YzhhZjNjOTA1OTQyZDJmNTI4Y2JjZmViOWQ1NmFhZjhhMzI0MSIsInZlcnNpb24iOjF9.fVN0KnTOV4oR8lO905BcvQJKuG9nrhtvU0kla5yvEx-f0-OprAHuQ4-DjISBBe7wSEIgPQ-hLpNX2gRbT8dnCg - type: precision value: 0.9151645786633058 name: Precision Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzBhNjg2YTkzNTlhZGZkMzY3ZWI4NzhiNDU1Y2FiMzdjMWNkNmJiNTJhNjM3MDVjMjRkZGUyODIzODYyNTVmNiIsInZlcnNpb24iOjF9.i90eiwNXpAMyf1kGef4eIohSxbD6Zc_QKvQEnNZy_phurmeB5bhqGq2x2VlOvmnJydjbpLm4-FBAktM7a59mCA - type: precision value: 0.9135841584158416 name: Precision Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOGJmYzdkNTZiNmM0NzdiOTI0YTRkZTU4MDBjZjQzYzcyNzA0MjI2Mzc5ZjA5MzQ4NDg2MjA3OTkyOTlmM2RkYiIsInZlcnNpb24iOjF9.g8hKuh10se7PeRHifkMincuAZeo3ZxHOmuUMGSCNN-h0tNLS5Q5Ro_xI-X5tkkQ2Nmw8qCNDlGkE6lch5VybDw - type: precision value: 0.915164578663306 name: Precision Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiODUwOWI5OWFmZWUyNDVjOTFiNTA2ZGQwMDQxYTg4Yzc1MTljN2M2ZjdkOWEzNzhhOGVmYjgwY2RmMTg1NTY4YiIsInZlcnNpb24iOjF9.bv2fUQZBILzGx6eBCYVoABAKBsPToKhC5kI8h1ggZNCJZ-DOW7gkYK66K0y5USqguJgwwH5yk2J_hl5xo7TZDA - type: recall value: 0.9135841584158414 name: Recall Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTJjOGMyZGMzNDgyNzM5NDdjMzE5MDMxMzcwZDhiOTY0MWMxZDQxZGVlMDIxMDkxMGMyOTRkOGI2M2E4NmI0NSIsInZlcnNpb24iOjF9.tfi_hRqQPZYXMnsOAERnKvs54W7Jd1t9ZWfScm39gGdl4mlj39DIZHGgWScHUEKuoeVc1rF9Vdc4-5dNnJluBw - type: recall value: 0.9135841584158416 name: Recall Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTlkZTJhYWQ2N2FjMzhmNDhlNWVmNGYxMzg4ZGJjZmUzNjE3NGVlNjYyZTZjYjc0MjgyNDRlMTMyMjg3ZWQxZCIsInZlcnNpb24iOjF9.Ee1lfbeqP9eKI8x6NO2pmjpLxb9AGc2y-Eb_WNxDvvuJnUNHSkFGD_kEO24AmtD7lr-MnaiWPwWubffdWGevCA - type: recall value: 0.9135841584158416 name: Recall Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYWE4OTE0N2QxYzcxY2E3MDY1ZWMyZDRmZDU3NTE0ZGM0ZjVjYTA4ZmY3YWViNzg4Njk2NTg5MTNjNmRiMGUxMyIsInZlcnNpb24iOjF9.BzwI1f-9BxFsh2xm-JXqlE1EbKz0lwZRHwKsGfEwr2oMZcM690eP5RCjcv7tbgWrENEKmGamso-jPHF3jehnCg - type: f1 value: 0.9138785016966742 name: F1 Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMWExNjlmNDJmMjhjMTYyZjUzZDk0M2VjMDk4OGViZTQ4MTk0MzRmYTFkZjMwNmIwZTNhNWViYTBkZDJmNDRhOCIsInZlcnNpb24iOjF9.mXfXw0BAKgPHvxwxeEenItHFDygRgX7HcX7w1ERonbEAceuIW3641oUC1dHQc6aexTHST6OXDmly3b95R9txAg - type: f1 value: 0.9135841584158415 name: F1 Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNGZkNzI1NjcxNGU2YjFhNDIzN2EwNzM3YzAxZGMxMTU5MGI0NDA2NTU0MjFiNmMyNTZiOTBlNGNmMWUzMGQ4NCIsInZlcnNpb24iOjF9.cLhcQ7fHC0y9w2IKewYAvFmc2iIN630hljXBUQIF9QIss9Sip2RPwOvEhKe6iskAEUQhIz5KxN0no1n1Iw3oBQ - type: f1 value: 0.9138785016966743 name: F1 Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzEzNGI3YzkzOWVjYzk3MDc0MmIyZTNiYjRhZjY3NGZjM2NjZTI5YmVmYjI2OTBhZmUzZDUzMDA3NzczOTViZSIsInZlcnNpb24iOjF9.sbvcl_tEjGiUWhITGzx3Nb2q2cJMwkHMMj8zuXIc0ZL_mPiQHFD5DocQcDVnNOItiem5L3fMzu5srWhGMrXjDg - type: loss value: 0.30761435627937317 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYTRhYzM5MTE5YmQxM2U5NmQ4YjM2YTQ5ZmI1YzI4NmYyMTJkZTBjZjFmYTMxYzNjNTBjNWUwNjc3Zjc2ZWU3NSIsInZlcnNpb24iOjF9.sAsKpKbJXlsjcw6RWo-FqxLnURBHBOq9OmJ1uEwHQdXLT8uPqEfIXi5xyB1TTcm8pj0xhUiyGbW5us7PYrm9CA --- # swin-finetuned-food101 This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224](https://huggingface.co/microsoft/swin-base-patch4-window7-224) on the food101 dataset. It achieves the following results on the evaluation set: - Loss: 0.2772 - Accuracy: 0.9210 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 5e-05 - train_batch_size: 16 - eval_batch_size: 16 - seed: 42 - gradient_accumulation_steps: 4 - total_train_batch_size: 64 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - lr_scheduler_warmup_ratio: 0.1 - num_epochs: 3 ### Training results | Training Loss | Epoch | Step | Validation Loss | Accuracy | |:-------------:|:-----:|:----:|:---------------:|:--------:| | 0.5077 | 1.0 | 1183 | 0.3851 | 0.8893 | | 0.3523 | 2.0 | 2366 | 0.3124 | 0.9088 | | 0.1158 | 3.0 | 3549 | 0.2772 | 0.9210 | ### Framework versions - Transformers 4.19.2 - Pytorch 1.11.0+cu113 - Datasets 2.2.2 - Tokenizers 0.12.1