Update README.md
Browse files
README.md
CHANGED
|
@@ -77,83 +77,3 @@ The fine-tuning and continual learning experiments in this study are built upon
|
|
| 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** 協議釋出。您可以自由地在學術研究或商業項目中進行載入、修改與分發,惟須保留原作者之引用資訊。
|
|
|
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|