Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
almazan committed Aug 23, 2019
1 parent 65e0c3a commit 180bffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ python -m dirtorch.extract_features --dataset DATASET --checkpoint PATH_TO_MODEL

where `--output` is used to specify the destination where the features will be saved. The rest of the parameters are the same as seen above.

For example, this is how the script can be used to extract a feature representation for each one of the images in the RParis6K dataset using the `Resnet-101-AP-GeM.pt` model, and storing them in `dirtorch/data/rparis6k_features.npy`:
For example, this is how the script can be used to extract a feature representation for each one of the images in the RParis6K dataset using the `Resnet-101-AP-GeM.pt` model, and storing them in `rparis6k_features.npy`:

```
cd $DIR_ROOT
export DB_ROOT=/PATH/TO/YOUR/DATASETS
python -m dirtorch.extract_features --dataset RParis6K
--checkpoint dirtorch/data/Resnet101-AP-GeM.pt
--output dirtorch/data/rparis6k_features.npy
--output rparis6k_features.npy
--whiten Landmarks_clean --whitenp 0.25 --gpu 0
```

Expand Down

0 comments on commit 180bffc

Please sign in to comment.