Object Detection With Multiband Imagery #1998
-
I want to perform object detection on 4 band imagery, and I'm not sure what model I can use. Based on this post, I tried using a FasterRCNN model with this line of code in my
I end up with the following error:
As seen in this tutorial, the parameter
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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 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=learner_cfg,
output_dir='path',
train_ds=train_ds,
valid_ds=val_ds,
) |
Beta Was this translation helpful? Give feedback.
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: