We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the configuration files:
# dataset.yaml # @package _group_ class_name: dataloaders.datasets.COCODataset data_dir: ${storage.data_dir}/Docs class_labels: [1, 2] num_classes: 2
and
# model.yaml # @package _group_ module: class_name: segmentation.maskrcnn.models.DateOutliner top: class_name: torchvision.models.detection.mask_rcnn.MaskRCNNPredictor params: num_classes: ${dataset.num_classes}
Is there a way to add perform arithmetic operations with a paramete. So as to obtain config.model.top.num_classes as 3 (2+1)?
config.model.top.num_classes
(2+1)
I have tried many variations, but I have not managed to get it to work:
Below are examples that won't work:
top: class_name: torchvision.models.detection.mask_rcnn.MaskRCNNPredictor params: num_classes: ${dataset.num_classes + 1}
top: class_name: torchvision.models.detection.mask_rcnn.MaskRCNNPredictor params: num_classes: ${dataset.num_classes++}
The text was updated successfully, but these errors were encountered:
This is not currently supported. There is a feature request in OmegaConf for it.
Sorry, something went wrong.
No branches or pull requests
Consider the configuration files:
and
Is there a way to add perform arithmetic operations with a paramete. So as to obtain
config.model.top.num_classes
as 3(2+1)
?I have tried many variations, but I have not managed to get it to work:
Below are examples that won't work:
The text was updated successfully, but these errors were encountered: