Efficient-Det Implementation in Keras
Project description
EfficientDet
EfficientDet Implementation in Keras focused on clean code and readability. Training will be logged with Tensorboard. To take a look at the training progress do: tensorboard --logdir logs This repo also includes the option of using wandb.ai for experiment tracking.
Installation
Via PIP (recommended)
Split into 3 ways to install. This is due to the way tensorflow needs to be installed to correctly work with CUDA. The first installation does not include tensorflow and is recommended to use.
pip install efficient-det
You can include a [cpu] or [gpu] tag to include the respective tensorflow version. Includes tensorflow dependency:
Via Docker
Runs with tensorflow:2.3.0-gpu. Depending on system CUDA version you might need to use another version. See this for more info.
Install docker and nvidia container toolkit on host system
sudo apt-get install -y docker.io nvidia-container-toolkit
Build Docker Image
sudo docker build . -t edet
From Source
- Clone Repository
git clone git@git.hhu.de:zeboz100/efficientdet.git
- Build it
pip install -r requirements.txt
Usage
PIP
Training
python3 -m efficient_det.run_training --dataset_path /path/to/dataset
Run a Hyperparameter Search:
python3 -m efficient_det.run_hyper_parameter_search --dataset_path
/path/to/dataset --num_tries 100 --gpus_per_trial 0.5
Source
Execute all commands in efficientdet/
Set PYTHONPATH :
export PYTHONPATH="$PWD/src"
Training
python3 src/efficient_det/train.py --dataset_path /path/to/dataset/
Hyperparameter Search:
python3 src/efficient_det/train.py --dataset_path /path/to/dataset/
Docker
Run Container
sudo docker run --gpus all -it edet bash
and then proceed with the PIP instructions.
To run all tests
python3 -m unittest
To test loaded model
You can test the loaded model via notebook or from a script.
-
Notebook in examples/visualize_rsults.ipynb
-
You need to set dataset path
-
You need to set path to trained model
Execute Script from efficientdet/
python3 example/visualize_results.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file efficient-det-0.1.3.tar.gz
.
File metadata
- Download URL: efficient-det-0.1.3.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c87c90f8be8eb7fed385d9989bc8334db91cade936b7739fa95444ab1a991d38 |
|
MD5 | dbcb8167cf375ca4446ba7ef980903e3 |
|
BLAKE2b-256 | 2ebce1f3b75f6414729888eb69fa8d4aa5fcdb5eaed64c3470ff96bdd31c93c4 |
File details
Details for the file efficient_det-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: efficient_det-0.1.3-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd26d075526e33a2996d8f7c59cefe36659bed9913bb4d66191b74902d786c7b |
|
MD5 | 61cfbb05f593b3c03e76950bc4bce226 |
|
BLAKE2b-256 | 1b45aeaa6af2191d223a1901eed49149745a888482ab0f2682167ca4bcbbb8e0 |