forked from facebookresearch/vissl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document improvements (facebookresearch#459)
Summary: Pull Request resolved: facebookresearch#459 Reviewed By: prigoyal Differential Revision: D31935819 Pulled By: iseessel fbshipit-source-id: 2597dede102e2faf52cade370e76a53b0ce52af7
- Loading branch information
1 parent
8901487
commit db500ec
Showing
55 changed files
with
930 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
configs/config/benchmark/instance_retrieval/eval_resnet_1gpu_copydays.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# @package _global_ | ||
config: | ||
DISTRIBUTED: | ||
NUM_PROC_PER_NODE: 1 | ||
MODEL: | ||
FEATURE_EVAL_SETTINGS: | ||
EVAL_MODE_ON: True | ||
FREEZE_TRUNK_ONLY: True | ||
EXTRACT_TRUNK_FEATURES_ONLY: True | ||
SHOULD_FLATTEN_FEATS: false | ||
LINEAR_EVAL_FEAT_POOL_OPS_MAP: [ | ||
["res4", ["Identity", []]] | ||
] | ||
TRUNK: | ||
NAME: resnet | ||
RESNETS: | ||
DEPTH: 50 | ||
WEIGHTS_INIT: | ||
############################# OSS model #################################### | ||
PARAMS_FILE: <your model weights> | ||
STATE_DICT_KEY_NAME: classy_state_dict | ||
############ example settings for torchvision model rn50 ################### | ||
# PARAMS_FILE: https://download.pytorch.org/models/resnet50-19c8e357.pth | ||
# STATE_DICT_KEY_NAME: "" | ||
# APPEND_PREFIX: "trunk.base_model._feature_blocks." | ||
IMG_RETRIEVAL: | ||
############################# Dataset Information #################################### | ||
EVAL_DATASET_NAME: copydays | ||
TRAIN_DATASET_NAME: copydays/train | ||
DATASET_PATH: <enter dataset path> | ||
# Number of training samples to use. -1 uses all the samples in the dataset. | ||
NUM_TRAINING_SAMPLES: -1 | ||
# Number of query samples to use. -1 uses all the samples in the dataset. | ||
NUM_QUERY_SAMPLES: -1 | ||
# Number of database samples to use. -1 uses all the samples in the dataset. | ||
NUM_DATABASE_SAMPLES: -1 | ||
# Sets data limits for the number of training, query, and database samples. | ||
DEBUG_MODE: False | ||
############################# Data Processing Hypers #################################### | ||
RESIZE_IMG: 224 | ||
TRAIN_PCA_WHITENING: True | ||
N_PCA: 1024 | ||
FEATS_PROCESSING_TYPE: rmac # l2 norm not recommended | ||
SPATIAL_LEVELS: 3 | ||
# RN50 - res5 | ||
# N_PCA: 2048 | ||
# valid only for GeM pooling of features | ||
GEM_POOL_POWER: 4.0 | ||
# Whether or not to apply L2 norm after the features have been post-processed. | ||
# Normalization is heavily recommended based on experiments run. | ||
NORMALIZE_FEATURES: True | ||
# Whether or not to use distractor images. | ||
USE_DISTRACTORS: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.