Building blocks for recreating darknet networks in pytorch
Project description
Building blocks to recreate Darknet networks in Pytorch
Why another framework
pytorch-yolo2 is working perfectly fine,
but does not easily allow a user to modify an existing network.
This is why I decided to create a library,
that gives the user all the necessary building blocks, to recreate any darknet network.
This library has everything you need to control your network,
weight loading & saving, datasets, dataloaders and data augmentation.
Where it started as library to recreate the darknet networks in PyTorch, it has since grown into a more general purpose single-shot object detection library.
Installing
First install PyTorch and Torchvision.
Then clone this repository and run one of the following commands:
# If you just want to use Lightnet
pip install brambox # Optional (needed for training)
pip install .
# If you want to develop Lightnet
pip install pillow opencv-python
pip install -r develop.txt
This project is python 3.7 and higher so on some systems you might want to use 'pip3.7' instead of 'pip'
How to use
Click Here for the API documentation and guides on how to use this library.
The examples folder contains code snippets to train and test networks with lightnet. For examples on how to implement your own networks, you can take a look at the files in lightnet/models.
If you are using a different version than the latest, you can generate the documentation yourself by running
make clean html
in the docs folder. This does require some dependencies, like Sphinx. The easiest way to install them is by using the -r develop.txt option when installing lightnet.
Cite
If you use Lightnet in your research, please cite it.
@misc{lightnet18,
author = {Tanguy Ophoff},
title = {Lightnet: Building Blocks to Recreate Darknet Networks in Pytorch},
howpublished = {\url{https://gitlab.com/EAVISE/lightnet}},
year = {2018}
}
Main Contributors
Here is a list of people that made noteworthy contributions and helped to get this project where it stands today!
Project details
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 lightnet-4.0.0.tar.gz
.
File metadata
- Download URL: lightnet-4.0.0.tar.gz
- Upload date:
- Size: 166.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024d40a53500c768632908149133a07d549f9e6de6df4648afd04d66d6f8e048 |
|
MD5 | e97ba4aeca94a5494e0711cf0343635b |
|
BLAKE2b-256 | 8f25c30bbbbbed30e1a9d8ad2de16cb7bc7aa15d70a8b31810044d21991193d4 |
File details
Details for the file lightnet-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: lightnet-4.0.0-py3-none-any.whl
- Upload date:
- Size: 225.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1401682e40de3e9a6bc1a725da920591913e9570e763f805ed9fb2d30042f3ad |
|
MD5 | c103a00ce1299465bd3bc93d050e7975 |
|
BLAKE2b-256 | 5406e91218aab3eaaf9e11f8c109ec1653316ac16776a60b5eae0b28a3f3444a |