{"id":15634649,"url":"https://github.com/tucan9389/depthprediction-coreml","last_synced_at":"2025-04-14T19:35:59.252Z","repository":{"id":49869091,"uuid":"197880919","full_name":"tucan9389/DepthPrediction-CoreML","owner":"tucan9389","description":"The example of running Depth Prediction using Core ML","archived":false,"fork":false,"pushed_at":"2021-06-15T14:32:24.000Z","size":55808,"stargazers_count":138,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T08:01:39.202Z","etag":null,"topics":["coreml","depth-prediction","fcrn-depthprediction","swift"],"latest_commit_sha":null,"homepage":"https://github.com/motlabs/awesome-ml-demos-with-ios","language":"Swift","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/tucan9389.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}},"created_at":"2019-07-20T04:45:48.000Z","updated_at":"2025-01-27T22:10:09.000Z","dependencies_parsed_at":"2022-09-01T17:32:37.246Z","dependency_job_id":null,"html_url":"https://github.com/tucan9389/DepthPrediction-CoreML","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/tucan9389%2FDepthPrediction-CoreML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tucan9389%2FDepthPrediction-CoreML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tucan9389%2FDepthPrediction-CoreML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tucan9389%2FDepthPrediction-CoreML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tucan9389","download_url":"https://codeload.github.com/tucan9389/DepthPrediction-CoreML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248946802,"owners_count":21187577,"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","depth-prediction","fcrn-depthprediction","swift"],"created_at":"2024-10-03T10:55:13.073Z","updated_at":"2025-04-14T19:35:59.220Z","avatar_url":"https://github.com/tucan9389.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DepthPrediction-CoreML\n\n![platform-ios](https://img.shields.io/badge/platform-ios-lightgrey.svg)\n![swift-version](https://img.shields.io/badge/swift-5.0-red.svg)\n![lisence](https://img.shields.io/badge/license-MIT-black.svg)\n\nThis project is Depth Prediction on iOS with Core ML.\u003cbr\u003eIf you are interested in iOS + Machine Learning, visit [here](https://github.com/motlabs/iOS-Proejcts-with-ML-Models) you can see various DEMOs.\u003cbr\u003e\n\n| GIF demo 1 | Screenshot 1 | Screenshot 2 | Screenshot 3 | Screenshot 4 |\n| ------------ | ------------ | ------------ | ------------ | ------------ |\n| \u003cimg src=\"https://user-images.githubusercontent.com/37643248/99881941-428dbd80-2c60-11eb-9c24-fdab5b110279.gif\" width=240px\u003e | \u003cimg src=\"resource/IMG_3623.PNG\" width=240px\u003e | \u003cimg src=\"resource/IMG_3626.PNG\" width=240px\u003e | \u003cimg src=\"resource/IMG_3627.PNG\" width=240px\u003e | \u003cimg src=\"resource/IMG_3629.PNG\" width=240px\u003e |\n\n## How it works\n\n\u003e When use Metal\n\n![image](https://user-images.githubusercontent.com/37643248/100520171-bdfeea00-31df-11eb-92f5-15e17fa10962.png)\n\n## Requirements\n\n- Xcode 10.2+\n- iOS 11.0+\n- Swift 5\n\n## Model\n\n### Download\n\nDownload model from [apple's model page](https://developer.apple.com/machine-learning/models/).\n\n### Matadata\n\n|            | input node    | output node    |   size   |\n| :--------: | :-----------: | :------------: | :----: |\n| FCRN     | `[1, 304, 228, 3]`\u003cbr\u003ename: `image` | `[1, 128, 160]`\u003cbr\u003ename: `depthmap` | 254.7 MB |\n| FCRNFP16 | `[1, 304, 228, 3]`\u003cbr\u003ename: `image` | `[1, 128, 160]`\u003cbr\u003ename: `depthmap` | 127.3 MB |\n\n### Inference Time\n\n| Device        | Inference Time | Total Time(GPU) | Total Time(CPU) |\n| ------------- | :-----: | :-----: | :-----------: |\n| iPhone 12 Pro Max | ⏲ | ⏲ | ⏲ |\n| iPhone 12 Pro | ⏲ | ⏲ | ⏲ |\n| iPhone 12     | ⏲ | ⏲ | ⏲ |\n| iPhone 12 Mini | ⏲ | ⏲ | ⏲ |\n| iPhone 11 Pro Max | ⏲ | ⏲ | ⏲ |\n| iPhone 11 Pro | **134 ms**  | **134 ms** | **149 ms** |\n| iPhone 11     | ⏲ | ⏲ | ⏲ |\n| iPhone SE(2nd) | ⏲ | ⏲ | ⏲ |\n| iPhone XS Max | 146 ms | ⏲ | 155 ms |\n| iPhone XS     | 146 ms | ⏲ | 151 ms |\n| iPhone XR     | 148 ms  | ⏲ | 154 ms |\n| iPhone X      | 624 ms  | ⏲ | 640 ms |\n| iPhone 8+     | 621 ms  | ⏲ | 634 ms |\n| iPhone 8      | 626 ms  | ⏲ | 639 ms |\n| iPhone 7+     | 595 ms  | ⏲ | 609 ms |\n| iPhone 7      | 612 ms  | ⏲ | 624 ms |\n| iPhone 6S+    | 1038 ms | ⏲ | 1051 ms |\n\n\n## See also\n\n- [motlabs/iOS-Proejcts-with-ML-Models](https://github.com/motlabs/iOS-Proejcts-with-ML-Models)\u003cbr\u003e\n  : The challenge using machine learning model created from tensorflow on iOS\n- [iro-cp/FCRN-DepthPrediction](https://github.com/iro-cp/FCRN-DepthPrediction)\u003cbr\u003e\n  : The repository prividing FCRN-DepthPrediction model\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftucan9389%2Fdepthprediction-coreml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftucan9389%2Fdepthprediction-coreml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftucan9389%2Fdepthprediction-coreml/lists"}