Skip to content

UNet example for salient object detection

Notifications You must be signed in to change notification settings

appfabtech/UNetExample

 
 

Repository files navigation

UNet Example

The repository contains code for a PyTorch Live salient object detection prototype. The prototype uses the u2netp model for the salient object detection task and runs on-device. It runs on Android and iOS.

How was this project bootstrapped?

The project was bootstrapped with the following command:

npx torchlive-cli init UNetExample --template react-native-template-pytorch-live

Unused packages were removed and react-native upgraded to version 0.64.3.

Screenshots

Android iOS
Screenshot of UNetExample on Android Screenshot of UNetExample on iOS

Run project in emulator or on a device

Prerequisites

Install React Native development depencencies. Follow the instructions for Setting up the development environment as provided on the React Native website.

Install project dependencies

Run yarn install to install the project dependencies.

Start Metro server

Start the Metro server, which is needed to build the app bundle (containing the transpiled TypeScript code in the <PROJECT>/src directory).

yarn start

Android

Build the apk for Android and install and run on the emulator (or on a physical device if connected via USB).

yarn android

See instructions on the React Native website for how to build the app in release variant.

iOS

Install CocoaPod dependencies

(cd ios && pod install)

Build the prototype app for iOS and run it in the simulator.

yarn ios

or use the following command to open the Xcode workspace in Xcode to build and run it.

xed ios/UNetExample.xcworkspace

See instructions on the React Native website for how to build the app in release scheme.

About

UNet example for salient object detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 34.7%
  • Java 31.5%
  • Objective-C 20.0%
  • JavaScript 8.5%
  • Ruby 2.8%
  • Swift 1.4%
  • C 1.1%