Dataset-and-Model commited on
Commit
7ffb04e
ยท
verified ยท
1 Parent(s): c5d0d07

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +159 -0
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Continual 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** ๅ”่ญฐ้‡‹ๅ‡บใ€‚ๆ‚จๅฏไปฅ่‡ช็”ฑๅœฐๅœจๅญธ่ก“็ ”็ฉถๆˆ–ๅ•†ๆฅญ้ …็›ฎไธญ้€ฒ่กŒ่ผ‰ๅ…ฅใ€ไฟฎ๏ฟฝ๏ฟฝ๏ฟฝ่ˆ‡ๅˆ†็™ผ๏ผŒๆƒŸ้ ˆไฟ็•™ๅŽŸไฝœ่€…ไน‹ๅผ•็”จ่ณ‡่จŠใ€‚