def test_mobilenetv2(self):
    try:
        import onnx
        from dlpy.model_conversion.onnx_transforms import Transformer, OpTypePattern, ConstToInitializer, InitReshape, InitUnsqueeze, FuseMulAddBN
        from dlpy.model_conversion.onnx_graph import OnnxGraph
        from onnx import helper, numpy_helper
    except:
        unittest.TestCase.skipTest(self, 'onnx package not found')
    from dlpy.model import Model
    if (self.data_dir_local is None):
        unittest.TestCase.skipTest(self, 'DLPY_DATA_DIR_LOCAL is not set in the environment variables')
    path = os.path.join(self.data_dir_local, 'mobilenetv2-1.0.onnx')
    onnx_model = onnx.load_model(path)
    model1 = Model.from_onnx_model(self.s, onnx_model, output_model_table='mobilenetv2', offsets=(255 * [0.485, 0.456, 0.406]), norm_stds=(255 * [0.229, 0.224, 0.225]))
def test_mobilenetv2(self):
    try:
        import onnx
        from dlpy.model_conversion.onnx_transforms import Transformer, OpTypePattern, ConstToInitializer, InitReshape, InitUnsqueeze, FuseMulAddBN
        from dlpy.model_conversion.onnx_graph import OnnxGraph
        from onnx import helper, numpy_helper
    except:
        unittest.TestCase.skipTest(self, 'onnx package not found')
    from dlpy.model import Model
    if (self.data_dir_local is None):
        unittest.TestCase.skipTest(self, 'DLPY_DATA_DIR_LOCAL is not set in the environment variables')
    path = os.path.join(self.data_dir_local, 'mobilenetv2-1.0.onnx')
    onnx_model = onnx.load_model(path)
    model1 = Model.from_onnx_model(self.s, onnx_model, output_model_table='mobilenetv2', offsets=(255 * [0.485, 0.456, 0.406]), norm_stds=(255 * [0.229, 0.224, 0.225]))