Skip to content

Object Detection With Multiband Imagery #1998

Answered by AdeelH
natedailey7 asked this question in Q&A
Discussion options

You must be logged in to vote

FasterRCNN is what RV uses by default for object detection, so instead of passing in a model you can let RV build the model for you by specifying a ModelConfig.

Here's how you would do it:

in_channels = 4
data_cfg = ObjectDetectionGeoDataConfig(
    class_names=class_config.names,
    class_colors=class_config.colors,
    img_channels=in_channels, # <---------- in_channels goes here
    num_workers=0,
)
solver_cfg = SolverConfig(
    batch_sz=8,
    lr=0.005,
)
model_cfg = ObjectDetectionModelConfig(backbone='resnet50', pretrained=True)
learner_cfg = ObjectDetectionLearnerConfig(
    data=data_cfg, 
    solver=solver_cfg,
    model=model_cfg, 
)
learner = ObjectDetectionLearner(
    cfg=l…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@AdeelH
Comment options

@AdeelH
Comment options

@natedailey7
Comment options

@natedailey7
Comment options

@AdeelH
Comment options

Answer selected by natedailey7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants