def deviation_network(self, input_shape, network_depth):
        '''
        construct the deviation network-based detection model
        '''
        if network_depth == 4:
            model = self.dev_network_d(input_shape)
        elif network_depth == 2:
            model = self.dev_network_s(input_shape)
        elif network_depth == 1:
            model = self.dev_network_linear(input_shape)
        else:
            sys.exit("The network depth is not set properly")
        rms = RMSprop(clipnorm=1.)
        model.compile(loss=self.deviation_loss, optimizer=rms)
        return model

        construct the deviation network-based detection model
        
adbench/baseline/DevNet/run.py