Push model using huggingface_hub.
Browse files- README.md +103 -0
- config.json +3 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: DCAMA
|
| 3 |
+
language: en
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- few-shot segmentation
|
| 7 |
+
- distillation
|
| 8 |
+
- image-segmentation
|
| 9 |
+
name: DistillFSS-DCAMA
|
| 10 |
+
library: pytorch
|
| 11 |
+
ArXiv: '2512.05613'
|
| 12 |
+
repo_url: https://github.com/pasqualedem/DistillFSS
|
| 13 |
+
paper_url: https://arxiv.org/abs/2512.05613
|
| 14 |
+
parameters: "dataloader:\n num_workers: 0\ndataset:\n datasets:\n test_weedmap:\n\
|
| 15 |
+
\ prompt_images: 5\n test_root: data/weedmap/0_rotations_processed_003_test/RedEdge/003\n\
|
| 16 |
+
\ train_root: data/weedmap/0_rotations_processed_003_test/RedEdge/000\n preprocess:\n\
|
| 17 |
+
\ image_size: 384\n mean:\n - 0.485\n - 0.456\n - 0.406\n std:\n\
|
| 18 |
+
\ - 0.229\n - 0.224\n - 0.225\nmodel:\n name: distillator\n params:\n\
|
| 19 |
+
\ student:\n name: conv_distillator\n num_classes: 2\n teacher:\n\
|
| 20 |
+
\ backbone: swin\n backbone_checkpoint: checkpoints/swin_base_patch4_window12_384.pth\n\
|
| 21 |
+
\ concat_support: false\n image_size: 384\n model_checkpoint: checkpoints/swin_fold0_pascal_modcross_soft.pt\n\
|
| 22 |
+
\ name: dcama\npush_to_hub:\n organization: pasqualedem\n repo_name: DistillFSS_WeedMap_DCAMA_5shot\n\
|
| 23 |
+
refinement:\n hot_parameters:\n - model.conv1\n - model.conv2\n - model.conv3\n\
|
| 24 |
+
\ - model.mixer1\n - model.mixer2\n - model.mixer3\n - student\n iterations_is_num_classes:\
|
| 25 |
+
\ false\n loss:\n name: refine_distill\n lr: 0.001\n max_iterations: 500\n\
|
| 26 |
+
\ subsample: 1\n substitutor: paired\ntest:\n prompt_to_use: null\ntracker:\n\
|
| 27 |
+
\ cache_dir: tmp\n group: WeedMap\n log_frequency: 1\n project: FSSWeed\n tags:\n\
|
| 28 |
+
\ - WeedMap\n - Distill\n test_image_log_frequency: 10\n tmp_dir: tmp\n train_image_log_frequency:\
|
| 29 |
+
\ 25\n"
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
DistillFSS-DCAMA is a distilled version of the DCAMA model for a specific downstream segmentation task. The DistillFSS framework allows to distill large few-shot segmentation models into smaller and more efficient ones, while improving or maintaining their performance on the target task.
|
| 33 |
+
|
| 34 |
+
- Code: https://github.com/pasqualedem/DistillFSS
|
| 35 |
+
- Paper: https://arxiv.org/abs/2512.05613
|
| 36 |
+
|
| 37 |
+
YAML configuration:
|
| 38 |
+
```yaml
|
| 39 |
+
dataloader:
|
| 40 |
+
num_workers: 0
|
| 41 |
+
dataset:
|
| 42 |
+
datasets:
|
| 43 |
+
test_weedmap:
|
| 44 |
+
prompt_images: 5
|
| 45 |
+
test_root: data/weedmap/0_rotations_processed_003_test/RedEdge/003
|
| 46 |
+
train_root: data/weedmap/0_rotations_processed_003_test/RedEdge/000
|
| 47 |
+
preprocess:
|
| 48 |
+
image_size: 384
|
| 49 |
+
mean:
|
| 50 |
+
- 0.485
|
| 51 |
+
- 0.456
|
| 52 |
+
- 0.406
|
| 53 |
+
std:
|
| 54 |
+
- 0.229
|
| 55 |
+
- 0.224
|
| 56 |
+
- 0.225
|
| 57 |
+
model:
|
| 58 |
+
name: distillator
|
| 59 |
+
params:
|
| 60 |
+
student:
|
| 61 |
+
name: conv_distillator
|
| 62 |
+
num_classes: 2
|
| 63 |
+
teacher:
|
| 64 |
+
backbone: swin
|
| 65 |
+
backbone_checkpoint: checkpoints/swin_base_patch4_window12_384.pth
|
| 66 |
+
concat_support: false
|
| 67 |
+
image_size: 384
|
| 68 |
+
model_checkpoint: checkpoints/swin_fold0_pascal_modcross_soft.pt
|
| 69 |
+
name: dcama
|
| 70 |
+
push_to_hub:
|
| 71 |
+
organization: pasqualedem
|
| 72 |
+
repo_name: DistillFSS_WeedMap_DCAMA_5shot
|
| 73 |
+
refinement:
|
| 74 |
+
hot_parameters:
|
| 75 |
+
- model.conv1
|
| 76 |
+
- model.conv2
|
| 77 |
+
- model.conv3
|
| 78 |
+
- model.mixer1
|
| 79 |
+
- model.mixer2
|
| 80 |
+
- model.mixer3
|
| 81 |
+
- student
|
| 82 |
+
iterations_is_num_classes: false
|
| 83 |
+
loss:
|
| 84 |
+
name: refine_distill
|
| 85 |
+
lr: 0.001
|
| 86 |
+
max_iterations: 500
|
| 87 |
+
subsample: 1
|
| 88 |
+
substitutor: paired
|
| 89 |
+
test:
|
| 90 |
+
prompt_to_use: null
|
| 91 |
+
tracker:
|
| 92 |
+
cache_dir: tmp
|
| 93 |
+
group: WeedMap
|
| 94 |
+
log_frequency: 1
|
| 95 |
+
project: FSSWeed
|
| 96 |
+
tags:
|
| 97 |
+
- WeedMap
|
| 98 |
+
- Distill
|
| 99 |
+
test_image_log_frequency: 10
|
| 100 |
+
tmp_dir: tmp
|
| 101 |
+
train_image_log_frequency: 25
|
| 102 |
+
|
| 103 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"num_classes": 2
|
| 3 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e6e6e38c496e436303f5f313e33805f681656444e12640a88d702d13a923e30
|
| 3 |
+
size 554599424
|