Make feature extractor pluggable

Summary: Make ResNetFeatureExtractor be an implementation of FeatureExtractorBase.

Reviewed By: davnov134

Differential Revision: D35433098

fbshipit-source-id: 0664a9166a88e150231cfe2eceba017ae55aed3a
This commit is contained in:
Jeremy Reizenstein
2022-05-18 08:50:18 -07:00
committed by Facebook GitHub Bot
parent cd7b885169
commit 9ec9d057cc
12 changed files with 151 additions and 57 deletions

View File

@@ -224,7 +224,8 @@ generic_model_args: GenericModel
└-- hypernet_args: SRNRaymarchHyperNet
└-- pixel_generator_args: SRNPixelGenerator
╘== IdrFeatureField
└-- image_feature_extractor_args: ResNetFeatureExtractor
└-- image_feature_extractor_*_args: FeatureExtractorBase
╘== ResNetFeatureExtractor
└-- view_sampler_args: ViewSampler
└-- feature_aggregator_*_args: FeatureAggregatorBase
╘== IdentityFeatureAggregator

View File

@@ -64,7 +64,7 @@ generic_model_args:
view_pooler_args:
view_sampler_args:
masked_sampling: false
image_feature_extractor_args:
image_feature_extractor_ResNetFeatureExtractor_args:
stages:
- 1
- 2

View File

@@ -1,6 +1,6 @@
generic_model_args:
image_feature_extractor_enabled: true
image_feature_extractor_args:
image_feature_extractor_class_type: ResNetFeatureExtractor
image_feature_extractor_ResNetFeatureExtractor_args:
add_images: true
add_masks: true
first_max_pool: true

View File

@@ -1,6 +1,6 @@
generic_model_args:
image_feature_extractor_enabled: true
image_feature_extractor_args:
image_feature_extractor_class_type: ResNetFeatureExtractor
image_feature_extractor_ResNetFeatureExtractor_args:
add_images: true
add_masks: true
first_max_pool: false

View File

@@ -1,6 +1,6 @@
generic_model_args:
image_feature_extractor_enabled: true
image_feature_extractor_args:
image_feature_extractor_class_type: ResNetFeatureExtractor
image_feature_extractor_ResNetFeatureExtractor_args:
stages:
- 1
- 2