File size: 2,518 Bytes
7ffb04e
d0d00fc
7ffb04e
 
 
 
 
 
 
 
 
 
 
6efffe5
7ffb04e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
title: Transfer learning results (%)
license: mit  
task_categories:
- image-classification
tags:
- transfer-learning
- resnet
- vit
- vit-hybrid        
- swin-transformer  
---

# Transfer Learning Results

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.

## πŸ“‚ Directory Structure

```text
.
β”œβ”€β”€ ResNet-34/
β”‚   β”œβ”€β”€ config.json              # Model configuration parameters
β”‚   β”œβ”€β”€ model.safetensors        # Model weights file
β”‚   └── training_args.bin        # Training hyperparameters and arguments
β”œβ”€β”€ Swin Transformer/
β”‚   β”œβ”€β”€ config.json
β”‚   β”œβ”€β”€ model.safetensors
β”‚   └── training_args.bin
β”œβ”€β”€ ViT/
β”‚   β”œβ”€β”€ config.json
β”‚   β”œβ”€β”€ model.safetensors
β”‚   └── training_args.bin
└── ViT-H/
    β”œβ”€β”€ config.json
    β”œβ”€β”€ model.safetensors
    └── training_args.bin

```

## πŸš€ Usage

You can download the model weights for a specific continual learning method using the `huggingface_hub` SDK:

```python
from huggingface_hub import hf_hub_download

# Example: Download Swin Transformer model weights
REPO_ID = "Dataset-and-Model/transfer-learning"
config_path = hf_hub_download(
    repo_id=REPO_ID,
    filename="Swin Transformer/config.json",
    repo_type="model"
)
model_weight_path = hf_hub_download(
    repo_id=REPO_ID,
    filename="Swin Transformer/model.safetensors",
    repo_type="model"
)
training_args_path = hf_hub_download(
    repo_id=REPO_ID,
    filename="Swin Transformer/training_args.bin",
    repo_type="model"
)

print(f"Weights successfully downloaded to: {model_weight_path}")
```

## πŸ—οΈ Base Models

The fine-tuning and continual learning experiments in this study are built upon the following pre-trained models provided by Hugging Face:
* **ResNet-34** (e.g., `microsoft/resnet-34`)
* **Vision Transformer (ViT)** (e.g., `google/vit-large-patch32-384`)
* **ViT Hybrid** (e.g., `google/vit-hybrid-base-bit-384`)
* **SWIN Transformer** (e.g., `microsoft/swin-large-patch4-window12-384`)

## πŸ“œ License

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.