Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9ea2d84
[refactor] delete files
yunkai1841 Jun 15, 2023
fb6df91
[refactor] add necessary files
yunkai1841 Jun 16, 2023
bc3adb5
[refactor] change sqlite filename
yunkai1841 Jun 16, 2023
f56587d
[refactor] fix Makefile
yunkai1841 Jun 16, 2023
033335e
[refactor] move semseg data file
yunkai1841 Jun 16, 2023
5b6694f
add cfg file
yunkai1841 Jun 16, 2023
a8195b8
rename exec file `lightnet`
yunkai1841 Jun 17, 2023
36014b1
add generated file
Jun 17, 2023
f13d628
init sphinx docs
yunkai1841 Jun 17, 2023
9a5d98a
add requirements for docs
yunkai1841 Jun 17, 2023
f5099e3
update docs
yunkai1841 Jun 17, 2023
abe0595
add file
Jun 19, 2023
bc3e4cf
add wider face data
Jun 19, 2023
7bb26d6
add lightNet wider_face
Jun 19, 2023
9eddfcc
remove sparse
Jun 19, 2023
49f43f1
Create docs.yml
yunkai1841 Jun 20, 2023
0e00568
Merge pull request #1 from yunkai1841/update-docs
yunkai1841 Jun 20, 2023
0f5d50d
[fix] fix yolo param
Jun 25, 2023
fb3d439
add crowdhuman training params
Jun 26, 2023
fc0a1ef
remove mask classes for crowdhuman
yunkai1841 Jun 26, 2023
8c36fe6
change class to 2
Jul 1, 2023
b5a5272
change resolution of wider_face cfg
yunkai1841 Jul 2, 2023
15e7315
fix burn_in
yunkai1841 Jul 2, 2023
fc2dc5d
add crowdhuman 1024 cfg
Jul 2, 2023
9cfc79d
update docs
yunkai1841 Sep 17, 2023
1cb0aac
Merge pull request #2 from yunkai1841/update-docs
yunkai1841 Sep 17, 2023
57bdbb0
Merge remote-tracking branch 'upstream/master'
yunkai1841 Sep 17, 2023
6b099b6
uncomment ARCH option in Makefile
yunkai1841 Sep 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy docs to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup Python
uses: actions/setup-python@v3.1.4
- name: Install requirements
run: pip install -r requirements.txt
working-directory: ./docs
- name: Build docs
run: make html
working-directory: ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './docs/build/html/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
177 changes: 172 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
*.dSYM
*.csv
*.out
*.png
*.so
*.exe
*.dll
*.lib
*.dylib
*.pyc
*~
chart*.png
bad*.list
anchors.txt
counters_per_class.txt
mnist/
caffe/
grasp/
Expand All @@ -19,6 +22,7 @@ opencv/
convnet/
decaf/
submission/
dataset/

temp/
build/darknet/*
Expand All @@ -29,6 +33,9 @@ vcpkg_installed/
!build/darknet/YoloWrapper.cs
.fuse*
*.weights
*.db
*.sqlite

build/*.cmake
build/*.ninja
build/*.txt
Expand All @@ -53,15 +60,175 @@ Thumbs.db
.vs/
.vscode/

# Managed by CMake
#src/version.h

# Build artifacts
lib/
share/
include/darknet/
uselib
uselib_track
darknet
lightNet
lightnet
vcpkg/

docs/build/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
12 changes: 12 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
YOLO LICENSE
Version 2, July 29 2016

THIS SOFTWARE LICENSE IS PROVIDED "ALL CAPS" SO THAT YOU KNOW IT IS SUPER
SERIOUS AND YOU DON'T MESS AROUND WITH COPYRIGHT LAW BECAUSE YOU WILL GET IN
TROUBLE HERE ARE SOME OTHER BUZZWORDS COMMONLY IN THESE THINGS WARRANTIES
LIABILITY CONTRACT TORT LIABLE CLAIMS RESTRICTION MERCHANTABILITY. NOW HERE'S
THE REAL LICENSE:

0. Darknet is public domain.
1. Do whatever you want with it.
2. Stop emailing me about it!
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LIBSO=0
ZED_CAMERA=0
ZED_CAMERA_v2_8=0

#* GPU=0, OPENCV=0 is not supported
# set GPU=1 and CUDNN=1 to speedup on GPU
# set CUDNN_HALF=1 to further speedup 3 x times (Mixed-precision on Tensor Cores) GPU: Volta, Xavier, Turing and higher
# set AVX=1 and OPENMP=1 to speedup on CPU (if error occurs then set AVX=0)
Expand Down Expand Up @@ -54,7 +55,7 @@ ARCH= -gencode arch=compute_86,code=[sm_86,compute_86]


VPATH=./src/
EXEC=lightNet
EXEC=lightnet
OBJDIR=./obj/

ifeq ($(LIBSO), 1)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LightNet
# Lightnet

LightNet is a deep learning framework based on the popular darknet platform, designed to create efficient and high-speed Convolutional Neural Networks (CNNs) for computer vision tasks. The framework has been improved and optimized to provide a more versatile and powerful solution for various deep learning challenges.
lightnet is a deep learning framework based on the popular darknet platform, designed to create efficient and high-speed Convolutional Neural Networks (CNNs) for computer vision tasks. The framework has been improved and optimized to provide a more versatile and powerful solution for various deep learning challenges.

## Table of Contents

Expand Down Expand Up @@ -65,12 +65,12 @@ You can find examples of using LightNet's features in the examples directory. Th

### Inference for Detection
```
./lightNet detector [test/demo] data/bdd100k.data cfg/lightNet-BDD100K-1280x960.cfg weights/lightNet-BDD100K-1280x960.weights [image_name/video_name]
./lightnet detector [test/demo] data/bdd100k.data cfg/lightNet-BDD100K-1280x960.cfg weights/lightNet-BDD100K-1280x960.weights [image_name/video_name]
```

### Inference for Segmentation
```
./lightNet segmenter [test/demo] data/bdd100k-semseg.data cfg/lightSeg-BDD100K-laneMarker-1280x960.cfg weights/lightSeg-BDD100K-laneMarker-1280x960.weights [image_name/video_name]
./lightnet segmenter [test/demo] data/bdd100k-semseg.data cfg/lightSeg-BDD100K-laneMarker-1280x960.cfg weights/lightSeg-BDD100K-laneMarker-1280x960.weights [image_name/video_name]
```
## Results

Expand All @@ -85,4 +85,4 @@ You can find examples of using LightNet's features in the examples directory. Th

## License

LightNet is released under the same YOLO license as darknet. You are free to use, modify, and distribute the code as long as you retain the license notice.
lightnet is released under the same YOLO license as darknet. You are free to use, modify, and distribute the code as long as you retain the license notice.
Loading