{"id":1369,"url":"https://github.com/ytakzk/CoreML-samples","last_synced_at":"2025-08-02T04:31:56.111Z","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-06-12T12:50:28.606Z","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,"purl":"pkg:github/ytakzk/CoreML-samples","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytakzk%2FCoreML-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334613,"owners_count":24233793,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-05T20:15:44.872Z","updated_at":"2025-08-02T04:31:51.090Z","avatar_url":"https://github.com/ytakzk.png","language":"Jupyter Notebook","funding_links":[],"categories":["Machine Learning"],"sub_categories":["Other Hardware","Other free courses"],"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"}