Thank you! We'll be in touch ASAP.
Something went wrong, please try again or contact us directly at contact@dagshub.com
Deci-AI:master
deci-ai:bugfix/infra-000_ci
import copy from typing import Union from omegaconf import DictConfig from super_gradients.training.utils.hydra_utils import load_arch_params from super_gradients.training.utils.utils import HpmStruct from super_gradients.training.models.detection_models.customizable_detector import CustomizableDetector DEFAULT_SSD_MOBILENET_V1_ARCH_PARAMS = load_arch_params("ssd_mobilenetv1_arch_params") DEFAULT_SSD_LITE_MOBILENET_V2_ARCH_PARAMS = load_arch_params("ssd_lite_mobilenetv2_arch_params") class SSDMobileNetV1(CustomizableDetector): def __init__(self, arch_params: Union[HpmStruct, DictConfig], in_channels: int = 3): merged_arch_params = HpmStruct(**copy.deepcopy(DEFAULT_SSD_MOBILENET_V1_ARCH_PARAMS)) merged_arch_params.override(**arch_params.to_dict()) super().__init__(merged_arch_params, in_channels=in_channels) class SSDLiteMobileNetV2(CustomizableDetector): def __init__(self, arch_params: Union[HpmStruct, DictConfig], in_channels: int = 3): merged_arch_params = HpmStruct(**copy.deepcopy(DEFAULT_SSD_LITE_MOBILENET_V2_ARCH_PARAMS)) merged_arch_params.override(**arch_params.to_dict()) super().__init__(merged_arch_params, in_channels=in_channels)
Press p or to see the previous file or, n or to see the next file