{"id":17083867,"url":"https://github.com/ytakzk/coreml-samples","last_synced_at":"2025-06-12T12:37:19.751Z","repository":{"id":80122209,"uuid":"94381966","full_name":"ytakzk/CoreML-samples","owner":"ytakzk","description":"Sample code for Core ML using ResNet50 provided by Apple and a custom model generated by coremltools.","archived":false,"fork":false,"pushed_at":"2017-07-20T14:23:35.000Z","size":94288,"stargazers_count":44,"open_issues_count":1,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T15:21:10.442Z","etag":null,"topics":["coreml","coreml-framework","deep-learning","ios","ios11","ml","resnet","swift"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytakzk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-06-14T23:53:43.000Z","updated_at":"2025-03-25T00:08:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d48a4146-16cc-4061-8b0e-9ce2989ab229","html_url":"https://github.com/ytakzk/CoreML-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FCoreML-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FCoreML-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FCoreML-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FCoreML-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytakzk","download_url":"https://codeload.github.com/ytakzk/CoreML-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631676,"owners_count":21136562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coreml","coreml-framework","deep-learning","ios","ios11","ml","resnet","swift"],"created_at":"2024-10-14T13:04:01.514Z","updated_at":"2025-04-12T21:10:36.110Z","avatar_url":"https://github.com/ytakzk.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoreML-samples\n\nThis is the sample code for Core ML using ResNet50 provided by [Apple](https://developer.apple.com/machine-learning/).  \n[ResNet50](https://arxiv.org/abs/1512.03385) can categorize the input image to 1000 pre-trained categories.  \nWhat's more, this includes a sample code for coremltools converting keras model to mlmodel.\n\n\u003cimg src=\"./demo.png\" alt=\"demo\" title=\"demo\" width=\"300\"\u003e\n\n## Source Code for the prediction \n```\nguard let image = imageView.image, let ref = image.buffer() else {\n\n        return\n}\n\ndo {\n\n    // predict\n    let output = try model.prediction(image: ref)\n\n    print(output.classLabel)\n    print(output.classLabelProbs)\n\n} catch {\n\n    print(error)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2Fcoreml-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytakzk%2Fcoreml-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytakzk%2Fcoreml-samples/lists"}