# Weakly-supervised phrase grounding
Some files not available currently for anonymity.

## Prepare Data
Download glove.6B.300d.txt.

Download flickr30k dataset at [Annotation and Sentence](http://web.engr.illinois.edu/~bplumme2/Flickr30kEntities/) files to `data/flickr30k/Flickr30kEntities.tar.gz`. Then run the provided script `tools/download_flickr.sh` and `tools/process_flickr.sh` from the root of this repository.

Object detection & feature file: Download from [link](/to/be/uploaded) and put in `data/` directory.


## pretrained models
Download pretrained models at [link](/to/be/uploaded) and put it in the `saved/` directory.

## environment
python 3.7
pytorch 1.4.0
torchvision 0.5.0

## run model
### Training:
```
$ python main.py [--lr learningrate] [--batch batchsize]
```

### Evaluation
```
$ python main.py --eval
```
