g-luo
commited on
Commit
•
ddc1e72
0
Parent(s):
Add weights
Browse files
weights/g3/132/ckpts/.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
last.ckpt filter=lfs diff=lfs merge=lfs -text
|
weights/g3/132/ckpts/last.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:addd82667bc32d409150b43a4403abbf77da3a969f1b5487ad2769139db47c8e
|
3 |
+
size 219262999
|
weights/g3/132/config.yaml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
data_dir: /shared/g-luo/public/geolocation_via_guidebook_grounding
|
2 |
+
out_dir: /shared/g-luo/geoguessr/models/im2gps_kb/public
|
3 |
+
wandb_dir: geolocation_via_guidebook_grounding
|
4 |
+
seed: 132
|
5 |
+
model_params:
|
6 |
+
arch: resnet50
|
7 |
+
setting: image_clip_clues
|
8 |
+
name: resnet50_image_clip_clues_fixed-attn-sup
|
9 |
+
weights: ${data_dir}/weights/isn_epoch=014-val_loss=18.4833.ckpt
|
10 |
+
batch_size: 128
|
11 |
+
val_check_interval: 1000
|
12 |
+
optim:
|
13 |
+
params:
|
14 |
+
lr: 0.01
|
15 |
+
momentum: 0.9
|
16 |
+
weight_decay: 0.0001
|
17 |
+
attention_lr: 0.001
|
18 |
+
scheduler:
|
19 |
+
params:
|
20 |
+
gamma: 0.5
|
21 |
+
milestones:
|
22 |
+
- 4
|
23 |
+
- 8
|
24 |
+
- 12
|
25 |
+
- 13
|
26 |
+
- 14
|
27 |
+
- 15
|
28 |
+
loss_weight: ${data_dir}/dataset/loss_weight/countries.json
|
29 |
+
partitionings:
|
30 |
+
ptype: default
|
31 |
+
shortnames:
|
32 |
+
- countries
|
33 |
+
files:
|
34 |
+
- ${data_dir}/dataset/s2_cells/countries.csv
|
35 |
+
skiprows: 0
|
36 |
+
msgpack_train_dir: ${data_dir}/dataset/train/msgpack
|
37 |
+
msgpack_val_dir: ${data_dir}/dataset/val/msgpack
|
38 |
+
train_meta_path: ${data_dir}/dataset/train/train.csv
|
39 |
+
val_meta_path: ${data_dir}/dataset/val/val.csv
|
40 |
+
train_label_mapping: ${data_dir}/dataset/train/label_mapping/countries.json
|
41 |
+
val_label_mapping: ${data_dir}/dataset/val/label_mapping/countries.json
|
42 |
+
key_img_id: id
|
43 |
+
key_img_encoded: image
|
44 |
+
num_workers_per_loader: 6
|
45 |
+
attn_beta: 1.0
|
46 |
+
attn_image_size: 768
|
47 |
+
attn_text_size: 768
|
48 |
+
text_features_file: ${data_dir}/dataset/features/guidebook_roberta_base.pkl
|
49 |
+
image_features_file: ${data_dir}/dataset/features/streetview_clip_rn50x16.pkl
|
50 |
+
attn_layer_norm_type: sigmoid
|
51 |
+
attn_input_norm_type: batch_norm
|
52 |
+
text_labels_file: ${data_dir}/dataset/pseudo_labels/countries.json
|
53 |
+
attn_loss_weight: 50
|
54 |
+
attn_loss_alpha: 0.75
|
55 |
+
attn_loss_type: bce
|
56 |
+
trainer_params:
|
57 |
+
gpus: 1
|
58 |
+
max_epochs: 15
|
59 |
+
precision: 16
|
60 |
+
reload_dataloaders_every_n_epochs: 1
|
weights/isn_epoch=014-val_loss=18.4833.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96e22842ab9af12ec1e801717cd8f662a723e433eb573ae575c25839f5492964
|
3 |
+
size 571821130
|