{"id":21802507,"url":"https://github.com/qengineering/tensorflow_lite_segmentation_rpi_64-bit","last_synced_at":"2025-07-25T17:34:17.170Z","repository":{"id":50712531,"uuid":"247716829","full_name":"Qengineering/TensorFlow_Lite_Segmentation_RPi_64-bit","owner":"Qengineering","description":"TensorFlow Lite segmentation on Raspberry Pi 4 aka Unet at 7.2 FPS with 64-bit OS","archived":false,"fork":false,"pushed_at":"2023-01-25T09:44:34.000Z","size":12080,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T09:23:43.540Z","etag":null,"topics":["armv7","armv8","cpp","deep-learning","raspberry-pi-4","segmentation","semantic-segmentation","tensorflow-examples","tensorflow-lite","ubuntu1804","unet","unet-image-segmentation","unet-segmentation","unet-tensorflow"],"latest_commit_sha":null,"homepage":"https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qengineering.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":"2020-03-16T13:59:54.000Z","updated_at":"2025-03-16T12:28:57.000Z","dependencies_parsed_at":"2023-02-14T06:31:21.556Z","dependency_job_id":null,"html_url":"https://github.com/Qengineering/TensorFlow_Lite_Segmentation_RPi_64-bit","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/Qengineering%2FTensorFlow_Lite_Segmentation_RPi_64-bit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FTensorFlow_Lite_Segmentation_RPi_64-bit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FTensorFlow_Lite_Segmentation_RPi_64-bit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FTensorFlow_Lite_Segmentation_RPi_64-bit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qengineering","download_url":"https://codeload.github.com/Qengineering/TensorFlow_Lite_Segmentation_RPi_64-bit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764857,"owners_count":21158164,"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":["armv7","armv8","cpp","deep-learning","raspberry-pi-4","segmentation","semantic-segmentation","tensorflow-examples","tensorflow-lite","ubuntu1804","unet","unet-image-segmentation","unet-segmentation","unet-tensorflow"],"created_at":"2024-11-27T11:29:09.500Z","updated_at":"2025-04-13T18:42:32.308Z","avatar_url":"https://github.com/Qengineering.png","language":"C++","readme":"![output image](https://qengineering.eu/images/SDcard16GB_tiny.jpg) Find this example on our [SD-image](https://github.com/Qengineering/RPi-image)\n# TensorFlow_Lite_Segmentation_RPi_64-bit\n![output image]( https://qengineering.eu/images/Unet_64.jpg )\u003cbr/\u003e\n## TensorFlow Lite Segmentation running on bare Raspberry Pi 4 with 64-bit OS\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\u003cbr/\u003e\u003cbr/\u003e\nA fast C++ implementation of TensorFlow Lite Unet on a bare Raspberry Pi 4.\nOnce overclocked to 1850 MHz, the app runs at 7.2 FPS!\nSpecial made for a bare Raspberry Pi 4 see [Q-engineering deep learning examples](https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html)\n\n------------\n\nPapers: https://arxiv.org/abs/1606.00915 \u003cbr/\u003e\nTraining set: VOC2017 \u003cbr/\u003e\nSize: 257x257 \u003cbr/\u003e\n\n------------\n\n## Benchmark.\nFrame rate Unet Lite : 4.0 FPS (RPi 4 @ 1900 MHz - 32 bits OS) \u003cbr/\u003e\nFrame rate Unet Lite : 7.2 FPS (RPi 4 @ 1875 MHz - 64 bits OS) \u003cbr/\u003e\n\n------------\n\n## Dependencies.\u003cbr/\u003e\nTo run the application, you have to:\n- A raspberry Pi 4 with a 64-bit operating system. It can be the Raspberry 64-bit OS, or Ubuntu 18.04 / 20.04. [Install 64-bit OS](https://qengineering.eu/install-raspberry-64-os.html) \u003cbr/\u003e\n- TensorFlow Lite framework installed. [Install TensorFlow Lite](https://qengineering.eu/install-tensorflow-2-lite-on-raspberry-64-os.html) \u003cbr/\u003e\n- OpenCV 64 bit installed. [Install OpenCV 4.5](https://qengineering.eu/install-opencv-4.5-on-raspberry-64-os.html) \u003cbr/\u003e\n- Code::Blocks installed. (```$ sudo apt-get install codeblocks```)\n\n------------\n\n## Installing the app.\nTo extract and run the network in Code::Blocks \u003cbr/\u003e\n$ mkdir *MyDir* \u003cbr/\u003e\n$ cd *MyDir* \u003cbr/\u003e\n$ wget https://github.com/Qengineering/TensorFlow_Lite_Segmentation_RPi_64-bit/archive/refs/heads/master.zip \u003cbr/\u003e\n$ unzip -j master.zip \u003cbr/\u003e\nRemove master.zip and README.md as they are no longer needed. \u003cbr/\u003e \n$ rm master.zip \u003cbr/\u003e\n$ rm README.md \u003cbr/\u003e \u003cbr/\u003e\nYour *MyDir* folder must now look like this: \u003cbr/\u003e \ncat.jpg.mp4 \u003cbr/\u003e\ndeeplabv3_257_mv_gpu.tflite \u003cbr/\u003e\nTestUnet.cpb \u003cbr/\u003e\nUnet.cpp\u003cbr/\u003e\n\n------------\n\n## Running the app.\nRun TestUnet.cpb withCode::Blocks. More info or\u003cbr/\u003e \nif you want to connect a camera to the app, follow the instructions at [Hands-On](https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html#HandsOn).\u003cbr/\u003e\nI fact you can run this example on any aarch64 Linux system. \u003cbr/\u003e\nSee the movie at: https://www.youtube.com/watch?v=Kh9DLMgCIIE\n\n------------\n\n[![paypal](https://qengineering.eu/images/TipJarSmall4.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL) \n\n\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Ftensorflow_lite_segmentation_rpi_64-bit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqengineering%2Ftensorflow_lite_segmentation_rpi_64-bit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Ftensorflow_lite_segmentation_rpi_64-bit/lists"}