File size: 3,809 Bytes
08ec965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
## Download datasets

### VOC2007
To download [Pascal VOC 2007 train and validation data](http://host.robots.ox.ac.uk/pascal/VOC/voc2007/): 
```
cd datasets/VOC2007/
bash download_voc07.sh
```
The dataset should be organized as : 

```
./datasets/VOC2007/VOCdevkit
                    β”œβ”€β”€ VOC2007/
                        β”œβ”€β”€ JPEGImages
                        β”œβ”€β”€ Annotations
                        ...
```
### VOC2012

To download [Pascal VOC 2012 train and validation data](http://host.robots.ox.ac.uk/pascal/VOC/voc2012/): 
```
cd datasets/VOC2012/
bash download_voc12.sh
```
The dataset should be organized as : 

```
./datasets/VOC2012/VOCdevkit
                    β”œβ”€β”€ VOC2012/
                        β”œβ”€β”€ JPEGImages
                        β”œβ”€β”€ Annotations
                        ...
```

### COCO
To download [COCO dataset](https://cocodataset.org/#home): 
```
cd datasets/COCO/
bash download_coco.sh
```
The dataset should be organized as : 
```
./datasets/COCO/
               β”œβ”€β”€ images/
               β”œβ”€β”€ annotations/
```

### CUB
To download [CUB 200-2011](http://www.vision.caltech.edu/visipedia/CUB-200-2011.html):
```
cd datasets/CUB/
bash download_cub.sh
```

The data should be organized as
```
./datasets/CUB/CUB_200_2011
                    β”œβ”€β”€ images/
                    β”œβ”€β”€ images.txt
                    β”œβ”€β”€ image_sizes.txt
                        ...
```
The `image_sizes.txt` file can be generated by `/dataset/CUB/compute_image_size.py` 


### ImageNet
The data should be organized as
```
./datasets/ImageNet/
                    β”œβ”€β”€ ILSVRC
                        β”œβ”€β”€ Annoations
                        β”œβ”€β”€ Data
                        β”œβ”€β”€ Detection
                        β”œβ”€β”€ ImageSets
                    β”œβ”€β”€ LOC_synset_mapping.txt
                    β”œβ”€β”€ LOC_val_solution.csv

                        ...
```

### ECSSD
To download [ECSSD](https://www.cse.cuhk.edu.hk/leojia/projects/hsaliency/dataset.html):
```
cd ../datasets/ECSSD
bash download_data.sh
```

The dataset should be organized as:

```
../datasets/ECSSD/
                  β”œβ”€β”€ img
                  β”œβ”€β”€ gt
```

### DUTS
To download [DUTS](http://saliencydetection.net/duts/#org3aad434):
```
cd ../datasets/DUTS_Test
bash download_data.sh
```

The dataset should be organized as:
```
../datasets/DUTS_Test/
                     β”œβ”€β”€ img
                     β”œβ”€β”€ gt
```


### DUT-OMRON
To downlaod [DUT_OMRON](http://saliencydetection.net/dut-omron/#org96c3bab):
```
cd ../datasets/DUT-OMRON
bash download_data.sh
```

The dataset should be organized as:
```
../datasets/DUT-OMRON/
                     β”œβ”€β”€ img
                     β”œβ”€β”€ gt
```


## Download DINO checkpoint

### DINO pretrained checkpoints

We initialize the model weights by using dino pretrained weights. To download the dino model, please launch the following commands:
```
wget https://dl.fbaipublicfiles.com/dino/dino_deitsmall16_pretrain/dino_deitsmall16_pretrain.pth # vit-s/16
wget https://dl.fbaipublicfiles.com/dino/dino_deitsmall8_pretrain/dino_deitsmall8_pretrain.pth # vit-s/8
wget https://dl.fbaipublicfiles.com/dino/dino_vitbase16_pretrain/dino_vitbase16_pretrain.pth # vit-b/16
```

### DINO finetuned linear classifiers on ImageNet

Since Dino offered finetuned linear classifiers on ImageNet, we can simply download them by following commands:
```
wget https://dl.fbaipublicfiles.com/dino/dino_deitsmall16_pretrain/dino_deitsmall16_linearweights.pth #vit-s/16
wget https://dl.fbaipublicfiles.com/dino/dino_deitsmall8_pretrain/dino_deitsmall8_linearweights.pth # vit-s/8
wget https://dl.fbaipublicfiles.com/dino/dino_vitbase16_pretrain/dino_vitbase16_linearweights.pth # vit-b/16
```