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ual learning results (%) on data separated by region groups
|
| 3 |
+
license: mit
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-classification
|
| 6 |
+
tags:
|
| 7 |
+
- transfer-learning
|
| 8 |
+
- resnet
|
| 9 |
+
- vit
|
| 10 |
+
- vit-hybrid
|
| 11 |
+
- swin-transformer
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Continual Learning Results (Region Groups)
|
| 15 |
+
|
| 16 |
+
This repository contains the weights and experimental results of transfer learning fine-tuning using several mainstream vision backbones. The method was evaluated based on Cross Entropy.
|
| 17 |
+
|
| 18 |
+
## ๐ Directory Structure
|
| 19 |
+
|
| 20 |
+
```text
|
| 21 |
+
.
|
| 22 |
+
โโโ ResNet-34/
|
| 23 |
+
โ โโโ config.json # Model configuration parameters
|
| 24 |
+
โ โโโ model.safetensors # Model weights file
|
| 25 |
+
โ โโโ training_args.bin # Training hyperparameters and arguments
|
| 26 |
+
โโโ Swin Transformer/
|
| 27 |
+
โ โโโ config.json
|
| 28 |
+
โ โโโ model.safetensors
|
| 29 |
+
โ โโโ training_args.bin
|
| 30 |
+
โโโ ViT/
|
| 31 |
+
โ โโโ config.json
|
| 32 |
+
โ โโโ model.safetensors
|
| 33 |
+
โ โโโ training_args.bin
|
| 34 |
+
โโโ ViT-H/
|
| 35 |
+
โโโ config.json
|
| 36 |
+
โโโ model.safetensors
|
| 37 |
+
โโโ training_args.bin
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## ๐ Usage
|
| 42 |
+
|
| 43 |
+
You can download the model weights for a specific continual learning method using the `huggingface_hub` SDK:
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from huggingface_hub import hf_hub_download
|
| 47 |
+
|
| 48 |
+
# Example: Download Swin Transformer model weights
|
| 49 |
+
REPO_ID = "Dataset-and-Model/transfer-learning"
|
| 50 |
+
config_path = hf_hub_download(
|
| 51 |
+
repo_id=REPO_ID,
|
| 52 |
+
filename="Swin Transformer/config.json",
|
| 53 |
+
repo_type="model"
|
| 54 |
+
)
|
| 55 |
+
model_weight_path = hf_hub_download(
|
| 56 |
+
repo_id=REPO_ID,
|
| 57 |
+
filename="Swin Transformer/model.safetensors",
|
| 58 |
+
repo_type="model"
|
| 59 |
+
)
|
| 60 |
+
training_args_path = hf_hub_download(
|
| 61 |
+
repo_id=REPO_ID,
|
| 62 |
+
filename="Swin Transformer/training_args.bin",
|
| 63 |
+
repo_type="model"
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
print(f"Weights successfully downloaded to: {model_weight_path}")
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## ๐๏ธ Base Models
|
| 70 |
+
|
| 71 |
+
The fine-tuning and continual learning experiments in this study are built upon the following pre-trained models provided by Hugging Face:
|
| 72 |
+
* **ResNet-34** (e.g., `microsoft/resnet-34`)
|
| 73 |
+
* **Vision Transformer (ViT)** (e.g., `google/vit-large-patch32-384`)
|
| 74 |
+
* **ViT Hybrid** (e.g., `google/vit-hybrid-base-bit-384`)
|
| 75 |
+
* **SWIN Transformer** (e.g., `microsoft/swin-large-patch4-window12-384`)
|
| 76 |
+
|
| 77 |
+
## ๐ License
|
| 78 |
+
|
| 79 |
+
These fine-tuned model weights are derived from the open-source architectures mentioned above and are released under the **MIT License**. You are free to use, modify, and distribute these weights in both academic research and commercial applications, provided that proper attribution to the original authors is maintained.
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
title: Continual learning results (%) on data separated by region groups
|
| 84 |
+
license: mit
|
| 85 |
+
task_categories:
|
| 86 |
+
- image-classification
|
| 87 |
+
tags:
|
| 88 |
+
- transfer-learning
|
| 89 |
+
- resnet
|
| 90 |
+
- vit
|
| 91 |
+
- vit-hybrid
|
| 92 |
+
- swin-transformer
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
# Continual Learning Results (Region Groups)
|
| 96 |
+
|
| 97 |
+
้ๅๅฒๅญๅบซๅ
ๅซไบๅบๆผๅคๅไธปๆต่ฆ่ฆบๆจกๅ้ฒ่ก Cross Entropy ๆนๆณๅพฎ่ชฟ๏ผFine-tuning๏ผๅพ็้ท็งปๅญธ็ฟ๏ผTransfer Learning๏ผๆฌ้่ๅฏฆ้ฉ็ตๆใ
|
| 98 |
+
|
| 99 |
+
## ๐ ่ณๆ็ตๆง (Directory Structure)
|
| 100 |
+
|
| 101 |
+
```text
|
| 102 |
+
.
|
| 103 |
+
โโโ ResNet-34/
|
| 104 |
+
โ โโโ config.json # ๆจกๅ็ธ้ๅๆธ
|
| 105 |
+
โ โโโ model.safetensors # ๆฌ้ๆช
|
| 106 |
+
โ โโโ training_args.bin # ่จ็ทดๆๆๆ่ถ
ๅๆธ่จญๅฎ
|
| 107 |
+
โโโ Swin Transformer/
|
| 108 |
+
โ โโโ config.json
|
| 109 |
+
โ โโโ model.safetensors
|
| 110 |
+
โ โโโ training_args.bin
|
| 111 |
+
โโโ ViT/
|
| 112 |
+
โ โโโ config.json
|
| 113 |
+
โ โโโ model.safetensors
|
| 114 |
+
โ โโโ training_args.bin
|
| 115 |
+
โโโ ViT-H/
|
| 116 |
+
โโโ config.json
|
| 117 |
+
โโโ model.safetensors
|
| 118 |
+
โโโ training_args.bin
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
## ๐ ๅฆไฝ่ผๅ
ฅๆๅฎๆนๆณ็ๆฌ้ (Usage)
|
| 122 |
+
|
| 123 |
+
ๆจๅฏไปฅไฝฟ็จ `huggingface_hub` SDK ไพไธ่ผ็นๅฎๆ็บๅญธ็ฟๆนๆณ็ๆฌ้ๆชๆก๏ผ
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
from huggingface_hub import hf_hub_download
|
| 127 |
+
|
| 128 |
+
# ็ฏไพ๏ผไธ่ผ Swin Transformer ็ๆจกๅๆฌ้
|
| 129 |
+
REPO_ID = "Dataset-and-Model/transfer-learning"
|
| 130 |
+
config_path = hf_hub_download(
|
| 131 |
+
repo_id=REPO_ID,
|
| 132 |
+
filename="Swin Transformer/config.json",
|
| 133 |
+
repo_type="model"
|
| 134 |
+
)
|
| 135 |
+
model_weight_path = hf_hub_download(
|
| 136 |
+
repo_id=REPO_ID,
|
| 137 |
+
filename="Swin Transformer/model.safetensors",
|
| 138 |
+
repo_type="model"
|
| 139 |
+
)
|
| 140 |
+
training_args_path = hf_hub_download(
|
| 141 |
+
repo_id=REPO_ID,
|
| 142 |
+
filename="Swin Transformer/training_args.bin",
|
| 143 |
+
repo_type="model"
|
| 144 |
+
)
|
| 145 |
+
|
| 146 |
+
print(f"ๆฌ้ๅทฒๆๅไธ่ผ่ณ: {model_weight_path}")
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
## ๐๏ธ ๅบ็คๆจกๅ่ชชๆ (Base Models)
|
| 150 |
+
|
| 151 |
+
ๆฌ็ ็ฉถ้ๅฐไปฅไธ็ฑ Hugging Face ๆไพ็้ ่จ็ทดๆจกๅ้ฒ่กไบ้ฃ็บๅญธ็ฟๅพฎ่ชฟ๏ผ
|
| 152 |
+
* **ResNet-34** (e.g., `microsoft/resnet-34`)
|
| 153 |
+
* **Vision Transformer (ViT)** (e.g., `google/vit-large-patch32-384`)
|
| 154 |
+
* **ViT Hybrid** (e.g., `google/vit-hybrid-base-bit-384`)
|
| 155 |
+
* **SWIN Transformer** (e.g., `microsoft/swin-large-patch4-window12-384`)
|
| 156 |
+
|
| 157 |
+
## ๐ ๆๆฌๅ่ญฐ (License)
|
| 158 |
+
|
| 159 |
+
ๆฌๅพฎ่ชฟๆจกๅ่ก็่ชไธ่ฟฐ้ๆบๆถๆง๏ผๆฌ้ๅ
จ้ขๆก็จ **MIT** ๅ่ญฐ้ๅบใๆจๅฏไปฅ่ช็ฑๅฐๅจๅญธ่ก็ ็ฉถๆๅๆฅญ้
็ฎไธญ้ฒ่ก่ผๅ
ฅใไฟฎ๏ฟฝ๏ฟฝ๏ฟฝ่ๅ็ผ๏ผๆ้ ไฟ็ๅไฝ่
ไนๅผ็จ่ณ่จใ
|