This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Commit e47da99
Flickr30k (#285)
* max instances for debugging
* b
* printing devices
* moving tensors?
* self
* p
* p
* l
* l
* fixing heap?
* stop logging and printing
* less prints
* printing devices
* p
* .
* devices
* device
* test
* testing not sampling
* testing not using model again
* test not moving tensors
* not printing
* trying image subset
* debugging model
* going back to full (model is slow?)
* right number of instances
* distribut
* more potential hard negatives
* non-distributed
* distributed + adding another seen set
* fixing evaluation method
* format
* testing fixed eval
* fixing variable
* fixing training var
* testing new eval again
* fix
* fix
* fix?
* changing k to 5
* float
* moving labels to gpu
* long
* trying hopefully fixed loss function
* fix
* testing out the whole thing
* setting max instances to debug in distributed
* debug stuff
* fixing num images
* hopefully fixing the dataset reader in dist
* full data
* testing out brand new changes
* deleting some old comments
* fixing validation bug
* testing on 1 gpu for now
* feature cache broken?
* switching to tensor fields and stuff
* fix
* print device
* trying to not move the batch?
* moving small batches to cpu
* not printing device
* deleting old tensor?
* debug
* printing memory allocation
* moving tensor to cpu immediately?
* deleting batch?
* debug
* debug
* debug
* does this work?
* switching to eval and no grad
* fix
* mask list
* backbone roll
* typo
* log
* debug
* notes
* testing no grad
* testing validation batch size of 1
* bug
* didn't have the right variable?
* don't need to softmax?
* trying flickr30k with 8 batch and dummy captions
* full flickr?
* batch size 1
* testing training batches for validation
* Testing out val stuff
* updating reader (test will fail for now)
* debug statements to figure out why val isn't worki
* testing if top images always have same scores
* getting rid of caption debugging step
* using the right caption var
* updating reader to mirror vilbert training setup
* full dataset (dummy caption embeddings)
* switching to real caption embeddings
* testing caching hard negatives
* log
* limit instances to test caching
* delete faiss
* more cache tests
* one more log statement
* single epoch to calculate hard negatives
* need to import logging
* don't log misses anymore (too slow)
* using consistent hash function (test # instances)
* Flickr30k batching (#277)
merge main + caching captions
* test caching captions and hard negatives on full
* don't log cache hits
* logging training labels to debug
* switching val to 4 way mc
* can we overfit
* not 1k instances
* not logging + overfit
* not overfit
* even fewer instances
* all instances
* even more overfitting
* back to normal
* b
* bkac to normal
* log loss and stuff again
* reset
* don't include hard negatives in case there's a bug
* batch size of 1
* more epochs
* only correct answer and hard negatives
* Cleanup
* Fix error in caption caching
* Find hard negatives even when we don't have enough instances
* O(1) algorithm for finding a random number with one exception
* Make sure the wrong caption comes from a different image
* Cross entropy loss
* trying overfitting with full instances
* use full dataset without learning rate scheduler
* don't limit instances and don't log
* batch size, scheduler, wandb
* comment out wandb
* full dataset no hard negatives
* don't log loss
* giving the correct answer a cheat word
* use local feature cache
* logging cache stuff
* different local feature cache dir
* switching to cheat box
* bug
* something up with some boxes
* no cheating and no hard negatives
* seeing is a really big batch size works
* bug
* testing 64 bs
* batch size 32
* batch size 48
* full training with 32 batch size no hard negatives
* more gradient accumulation steps
* trying to train with 10% of the data
* fix
* bumping up the learning rate, don't correct bias
* gradient accumulation + hard negatives
* use local feature cache
* changing params back
* trying real validation
* no hard negatives
* hard negatives and not real validation
* no hard negatives + real validation
* calc hn
* fixing predictors
* fix
* fix
* fix
* fix
* cleaning up PR (in progress)
* cleaning things up
* more cleanup
* change warmup steps
* only validate every ~5 epochs
* printing shapes
* more logging
* fix log
* try cat instead of stack
* different logging
* test
* fix
* try batches per epoch
* bug
* get rid of log statement
* use local feature cache
* log
* logging cache miss
* switching back to old captions to use cache
* switching back to preprocesing captions
* using nfs
* Disabling hard negatives to test epoch strat
* not logging cache misses
* write to local cache (faster)
* epoch multiplier
* no hard negatives
* hard negatives
* lowering number of warmup steps
* no hard negatives
* hard negatives
* no hard negatives
* hard negatives
* Trying Jiasen's featurizer (1x epoch mult)
* null image stuff
* null image
* don't featurize captions (no hn)
* adding vilbert ir model tests
* cleanup + test distributed
* cleanup + dist
* test distributed
* don't use shard_iterable
* fix feature dir
* changelog
* reformat
* log shapes
* removing unused vars
* using old features
* style
* lint
* lint
* don't log shapes
* lint
* fixing type
* debug
* changing test files to hopefully fix test
* using cloud link for data dir
* cleanup
* delete print
* comment
* cleanup
* fixing test assert
* committing a bunch of fixes
* not distributed
* fixing metrics
* Adding test files + upping max instances
* fixes
* Switching back to nfs cache
* renaming n
* update comment
* fix
* making test deterministic?
* sorting files to hopefully achieve consistency
Co-authored-by: Dirk Groeneveld <dirkg@allenai.org>1 parent fb35b2d commit e47da99
32 files changed
Lines changed: 1178 additions & 2 deletions
File tree
- allennlp_models/vision
- dataset_readers
- models
- predictors
- test_fixtures/vision
- flickr30k
- sentences
- images/flickr30k
- tests
- vision
- dataset_readers
- models
- training_config/vision
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
102 | | - | |
103 | | - | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
Lines changed: 138 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments