In this repository, we introduce two methods to deploy Frequency Regularization Models on Android devices: set up Linux environment and develop an android application.
The folder NOM
is code of our Android application. Folders future_work
, class_presentation
,proposal_and_literature_review
, report
, source_code_frequency_regularization
are the related documentation or materials used in this project.
.
├── README.md
├── NOM (code of Android application)
│ └── ...
├── future_work
│ └── future_plan.pdf
├── class_presentation
│ └── DeploymentOnMobile.pptx
├── proposal_and_literature_review
│ └── ...
├── report
│ ├── IEEE_format
│ ├── spring_conference_format
│ └── raw_data
│ │ ├── 1st_data
│ │ └── ...
└── source_code_frequency_regularization
└── ...
-
Start an Android emulator (e.g. Genymotion) and choose Android vesion == 12.0.x.
-
Install Termux to deploy the Linux environment. DONOT download Termux on Google Play.
-
Update termux, install wget, proot, and git.
apt-get update && apt-get upgrade -y apt-get install wget -y apt-get install proot -y apt-get install git -y
-
Download a script to deploy ubutu in termux.
git clone https://github.com/MFDGaming/ubuntu-in-termux.git
-
Move to script folder and give its execution permission.
cd ubuntu-in-termux chmod +x ubuntu.sh
-
Run the script and start ubuntu environment.
./ubuntu.sh -y ./startubuntu.sh
-
Run the system update command to refresh the APT repositories cache. This is necessary because many times after installing a fresh minimal Debian or Ubuntu Linux, it won’t recognize any packages to install. It is because there is no list of packages in the cache, that the system can identify to install.
apt update && apt upgrade
-
Install sudo on ubuntu server.
apt install sudo
-
Install Python and python-pip tool to deploy our Frequency Regulazation package quickly. Use
python --version
to check its version should be larger or same to 3.10.12.sudo apt install python3 sudo apt-get -y install python3-pip
-
Install Frequency Regulazation package. You will see
Successfully installed frereg-0.1.0
while deploying it well.pip3 install frereg
-
Download an Android emulator (e.g. Android Studio Hedgehog) and choose version == 2023.1.1.x.
-
Download our source code.
-
Make sure the project structure is correct and rebuild the gradle file.
Android Gradle Plugin Version: 7.1.0 Gradle Version: 7.2
-
Run the source code and select the image you want to implement segmentation.
-
Download the APK on your own Android phone [click here].
-
Click the Application on your own phone.
Milestones | Status |
---|---|
Package Up Frequency Regularization | ✔️ Completed |
Implement Linux Envrionment | ✔️ Completed |
Implement Python Library on Android | ✔️ Completed |
Develop Android Application with FR | ✔️ Completed |
Develop Advanced User Interfaces and Functionalities | 🔜 Upcoming |
Expand More Models not only U-Net | 🔜 Upcoming |
(Wenhao You and Leo Chang contributed equally to this work.)
If you find our deployment of Frequency Regularization technique on Android Devices or utilize it in your research, we kindly encourage you to cite our paper:
@ARTICLE{fr_android,
author={You, Wenhao and Chang, Leo and Dong, Guanfang, and Basu, Anup},
title={Deployment of Frequency Regularization on Android Devices},
year={2023},
}