{"action":"created","issue":{"url":"https://api.github.com/repos/onnx/onnx-coreml/issues/346","repository_url":"https://api.github.com/repos/onnx/onnx-coreml","labels_url":"https://api.github.com/repos/onnx/onnx-coreml/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/onnx/onnx-coreml/issues/346/comments","events_url":"https://api.github.com/repos/onnx/onnx-coreml/issues/346/events","html_url":"https://github.com/onnx/onnx-coreml/issues/346","id":370935285,"node_id":"MDU6SXNzdWUzNzA5MzUyODU=","number":346,"title":"Segmentation Fault","user":{"login":"nutszebra","id":10476902,"node_id":"MDQ6VXNlcjEwNDc2OTAy","avatar_url":"https://avatars0.githubusercontent.com/u/10476902?v=4","gravatar_id":"","url":"https://api.github.com/users/nutszebra","html_url":"https://github.com/nutszebra","followers_url":"https://api.github.com/users/nutszebra/followers","following_url":"https://api.github.com/users/nutszebra/following{/other_user}","gists_url":"https://api.github.com/users/nutszebra/gists{/gist_id}","starred_url":"https://api.github.com/users/nutszebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutszebra/subscriptions","organizations_url":"https://api.github.com/users/nutszebra/orgs","repos_url":"https://api.github.com/users/nutszebra/repos","events_url":"https://api.github.com/users/nutszebra/events{/privacy}","received_events_url":"https://api.github.com/users/nutszebra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-17T07:31:34Z","updated_at":"2018-10-17T15:16:23Z","closed_at":null,"author_association":"NONE","body":"When I use `convert` in onnx-coreml, segmentation fault arises.\r\nMy codes are:\r\n```python\r\nimport sys\r\nfrom onnx import onnx_pb\r\nfrom onnx_coreml import convert\r\nmodel_in = sys.argv[1]\r\nmodel_out = sys.argv[2]\r\nmodel_file = open(model_in, 'rb')\r\nmodel_proto = onnx_pb.ModelProto()\r\nmodel_proto.ParseFromString(model_file.read())\r\ncoreml_model = convert(model_proto, preprocessing_args={'image_scale': 1 / 255.}, image_input_names=['0'], image_output_names=['258'], deprocessing_args={'image_scale': 255.})\r\ncoreml_model.save(model_out)\r\n```\r\nAre there any ideas to avoid segmentation fault?\r\n\r\nMy environment is like this:\r\n```\r\npython (3.5.2)\r\nClick (7.0)\r\nnumpy (1.15.2)\r\nonnx (1.3.0)\r\nonnx-coreml (0.3.0)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/onnx/onnx-coreml/issues/comments/430670365","html_url":"https://github.com/onnx/onnx-coreml/issues/346#issuecomment-430670365","issue_url":"https://api.github.com/repos/onnx/onnx-coreml/issues/346","id":430670365,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY3MDM2NQ==","user":{"login":"aseemw","id":7546478,"node_id":"MDQ6VXNlcjc1NDY0Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/7546478?v=4","gravatar_id":"","url":"https://api.github.com/users/aseemw","html_url":"https://github.com/aseemw","followers_url":"https://api.github.com/users/aseemw/followers","following_url":"https://api.github.com/users/aseemw/following{/other_user}","gists_url":"https://api.github.com/users/aseemw/gists{/gist_id}","starred_url":"https://api.github.com/users/aseemw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseemw/subscriptions","organizations_url":"https://api.github.com/users/aseemw/orgs","repos_url":"https://api.github.com/users/aseemw/repos","events_url":"https://api.github.com/users/aseemw/events{/privacy}","received_events_url":"https://api.github.com/users/aseemw/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T15:16:23Z","updated_at":"2018-10-17T15:16:23Z","author_association":"COLLABORATOR","body":"Do you get an error message? \r\n\r\nPlease provide more information to reproduce the issue. "}}
{"actor":{"display_login":"aseemw"}}