deepdisc.model.models
Classes
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
|
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
|
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
|
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
|
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
|
CascadeROIHeads with added redshift point estimate capability. Follows the detectron2 CascadeROIHeads class init |
|
ROIHead with added redshift point estimate capability. Follows the detectron2 StandardROIHead class init |
|
ROIHead with added redshift pdf capability. Follows the detectron2 StandardROIHead class init, except for |
|
CascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for |
Functions
|
Return a model formed from a LazyConfig with the backbone |
Module Contents
- return_lazy_model(cfg, freeze=True)[source]
Return a model formed from a LazyConfig with the backbone frozen. Only the head layers will be trained.
- Parameters:
cfg (.py file) – a LazyConfig
- Return type:
torch model
- class WeightedRedshiftPDFCasROIHeads(num_components: int, zloss_factor: float, weights: List[float], zbins: List[float], *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class CNNRedshiftPDFCasROIHeads(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class RedshiftPDFCasROIHeadsGold(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class RedshiftPDFCasROIHeads(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class OldRedshiftPDFCasROIHeads(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class RedshiftPointCasROIHeads(zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHeads with added redshift point estimate capability. Follows the detectron2 CascadeROIHeads class init
- class RedshiftPointROIHeads(zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_head: torch.nn.Module, box_predictor: torch.nn.Module, mask_in_features: List[str] | None = None, mask_pooler: detectron2.modeling.poolers.ROIPooler | None = None, mask_head: torch.nn.Module | None = None, keypoint_in_features: List[str] | None = None, keypoint_pooler: detectron2.modeling.poolers.ROIPooler | None = None, keypoint_head: torch.nn.Module | None = None, train_on_pred_boxes: bool = False, **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.StandardROIHeadsROIHead with added redshift point estimate capability. Follows the detectron2 StandardROIHead class init
- class RedshiftPDFROIHeads(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_head: torch.nn.Module, box_predictor: torch.nn.Module, mask_in_features: List[str] | None = None, mask_pooler: detectron2.modeling.poolers.ROIPooler | None = None, mask_head: torch.nn.Module | None = None, keypoint_in_features: List[str] | None = None, keypoint_pooler: detectron2.modeling.poolers.ROIPooler | None = None, keypoint_head: torch.nn.Module | None = None, train_on_pred_boxes: bool = False, **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.StandardROIHeadsROIHead with added redshift pdf capability. Follows the detectron2 StandardROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network
- class OldEBVRedshiftPDFCasROIHeads(num_components: int, zloss_factor: float, *, box_in_features: List[str], box_pooler: detectron2.modeling.poolers.ROIPooler, box_heads: List[torch.nn.Module], box_predictors: List[torch.nn.Module], proposal_matchers: List[detectron2.modeling.matcher.Matcher], **kwargs)[source]
Bases:
detectron2.modeling.roi_heads.CascadeROIHeadsCascadeROIHead with added redshift pdf capability. Follows the detectron2 CascadeROIHead class init, except for
- Parameters:
num_components (int) – Number of gaussian components in the Mixture Density Network