Esempio n. 1
0
    def __init__(self, phase):
        """

        """
        super(LaneNet, self).__init__()
        self._net_flag = CFG.MODEL.FRONT_END

        self._frontend = lanenet_front_end.LaneNetFrondEnd(
            phase=phase, net_flag=self._net_flag)
        self._backend = lanenet_back_end.LaneNetBackEnd(phase=phase)
Esempio n. 2
0
    def __init__(self, phase, net_flag='vgg', reuse=False):
        """

        """
        super(LaneNet, self).__init__()
        self._net_flag = net_flag
        self._reuse = reuse

        self._frontend = lanenet_front_end.LaneNetFrondEnd(phase=phase,
                                                           net_flag=net_flag)
        self._backend = lanenet_back_end.LaneNetBackEnd(phase=phase)
Esempio n. 3
0
    def __init__(self, phase, cfg):
        """
        """
        super(LaneNet, self).__init__()
        self._cfg = cfg
        self._net_flag = self._cfg.MODEL.FRONT_END

        self._frontend = lanenet_front_end.LaneNetFrondEnd(
            phase=phase, net_flag=self._net_flag, cfg=self._cfg)
        self._backend = lanenet_back_end.LaneNetBackEnd(  # 백엔드 정의
            phase=phase, cfg=self._cfg)
Esempio n. 4
0
    def __init__(self, phase, net_flag='vgg', reuse=False):
        """
        Python 中的 self 等价于 C++ 中的 self 指针和 Java、C# 中的 this 参数。
        :param: reuse:  设置 reuse=False 时,函数 get_variable() 表示创建变量
                        设置 reuse=True  时,函数 get_variable() 表示获取变量
        """
        super(LaneNet, self).__init__()
        self._net_flag = net_flag
        self._reuse = reuse

        self._frontend = lanenet_front_end.LaneNetFrondEnd(phase=phase,
                                                           net_flag=net_flag)

        self._backend = lanenet_back_end.LaneNetBackEnd(phase=phase)
    def __init__(self, phase, net_flag='vgg', reuse=False):
        """

        """
        super(LaneNet, self).__init__()
        self._net_flag = net_flag
        self._reuse = reuse
        if net_flag == 'mobilenet_v2':
            self._need_layer_norm = False
        else:
            self._need_layer_norm = True

        self._frontend = lanenet_front_end.LaneNetFrondEnd(phase=phase,
                                                           net_flag=net_flag)
        self._backend = lanenet_back_end.LaneNetBackEnd(phase=phase)