rslearn.models.pick_features¶
pick_features ¶
PickFeatures module.
PickFeatures ¶
Bases: IntermediateComponent
Picks a subset of feature maps in a multi-scale feature map list.
Source code in rslearn/models/pick_features.py
forward ¶
forward(intermediates: Any, context: ModelContext) -> FeatureMaps
Pick a subset of the features.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
intermediates
|
Any
|
the output from the previous component, which must be a FeatureMaps. |
required |
context
|
ModelContext
|
the model context. |
required |