Skip to main content

Building blocks for recreating darknet networks in pytorch

Project description

Logo

Building blocks to recreate Darknet networks in Pytorch
Version Documentation Pipeline Ko-Fi
Python PyTorch
VOC COCO

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 -r develop.txt

This project is python 3.6 and higher so on some systems you might want to use 'pip3.6' 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

lightnet-3.1.0.tar.gz (161.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightnet-3.1.0-py3-none-any.whl (211.7 kB view details)

Uploaded Python 3

File details

Details for the file lightnet-3.1.0.tar.gz.

File metadata

  • Download URL: lightnet-3.1.0.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for lightnet-3.1.0.tar.gz
Algorithm Hash digest
SHA256 b7c044eed0292e5cf22ede5c086799266b36208c382591d391e2234a80aba814
MD5 40c6d13f7920afa9d8083462f166e409
BLAKE2b-256 da059a7b918761474e163b78f115fb4b3fb888664253611392b0816a4314f9e8

See more details on using hashes here.

File details

Details for the file lightnet-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: lightnet-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 211.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for lightnet-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 198dccade74cbf78b8cbb4615b9025fdb15dbd2d6fcc6e568ebbb81e2d11f496
MD5 839aec4970ba03c309f2e1063fa66d44
BLAKE2b-256 b38b8b63e85357efd383bd94fe72dd01535d02a8374695e0da5a23b4bf745099

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page