Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LuxonisTrain - v0.1.0 #102

Merged
merged 90 commits into from
Oct 9, 2024
Merged

LuxonisTrain - v0.1.0 #102

merged 90 commits into from
Oct 9, 2024

Conversation

DrejcPesjak and others added 30 commits February 20, 2024 03:44
* Added ResNet variants

* ResNet50 example

* Simplified example

* fixed resnet config

* [Automated] Updated coverage badge

---------

Co-authored-by: Martin Kozlovsky <martin.kozlovsky@luxonis.com>
Co-authored-by: GitHub Actions <actions@github.com>
* fixed incorrect class property call

* fixed exporter uploading

* uploadCheckpoint uploads on every checkpoint epoch

* fix temp files names

* updated callback readme

* pre-commit run
* option to source custom code in CLI

* removed empty dicts

* [Automated] Updated coverage badge

---------

Co-authored-by: GitHub Actions <actions@github.com>
* option to source custom code in CLI

* removed empty dicts

* fixed issue with removed tensor metadata in match case statements
* forbid extra fields in config

* fixed configs
* automatic inference of attach index based on type signature

* added inference for input and x names
* fixed link in docs

* fixed repvgg backbone

* fixed efficientnet
* upload logs to mlflow

* added mlflwo instance

* multithread log upload

* fixed upload logs

* fixed log file path

* removed exceptions

* logging exceptions

* fixed typo

* reverted exception

* moved line

* replaced warning with error log

* Update trainer.py
* add archiver CLI

* add archiver callback

* add max_det parameter to EfficientBBoxHead

* add enum to categorize tasks for the implemented heads

* add archiver tests

* adjust Archiver to new nn archive format

* pre-comit formatting

* add LDF creation and adjust to new nn archive format

* update requirements.txt

* add opencv-python to requirements.txt

* add support for ImplicitKeypointBBoxHead

* remove support for ObjectDetectionSSD

* Update requirements.txt

* Added mlflow and removed opencv

* [Automated] Updated coverage badge

* add support for SegmentationHead and BiSeNetHead

* base archiver tests on model from luxonis-train instead of torchvision

* adjust head parameters to changes in NN Archive

* adjust keypoint detection head parameters to changes in NN Archive

* bugfix - make sure self.max_det is used in nms

* add max_det parameter to ImplicitKeypointBBoxHead

* adjust task categorization for ImplicitKeypointBBoxHead

* fixing  Windows PermissionError occuring on file deletion

* fixing Windows PermissionError occuring on file deletion due to unreleased logging handlers

* add method to remove file handlers keeping the log file open

* add a logging statement at the end of archiving

* add optuna_integration to requirements.txt

* add hard-coded solution to determining is_softmax parameter

* added help

---------

Co-authored-by: Martin Kozlovský <martin.kozlovsky@luxonis.com>
Co-authored-by: GitHub Actions <actions@github.com>
* extend NN Archive generation test coverage to cover all implemented heads

* [Automated] Updated coverage badge

---------

Co-authored-by: GitHub Actions <actions@github.com>
* uploading all checkpoints

* fix names

* removed comment
* handling SIGTERM signal

* resume argument takes path
* handling SIGTERM signal

* resume argument takes path

* basic task group labels support

* updated requirements

* fixed tests

* fixed loader test

* Update luxonis_train/models/luxonis_model.py

Co-authored-by: conorsim <60359299+conorsim@users.noreply.github.com>

---------

Co-authored-by: conorsim <60359299+conorsim@users.noreply.github.com>
* option to set torch matmul precision for tensor cores

* updated readme
* fixed reset not being called

* added metric resets

* removed inheritance

* proper oks reset

* removed unnecessary resets

* added annotations
* Added seed to config for reproducibility

* fixed seg drawing when using torch deterministic backend

* added deterministic order of creating nodes

* removed seed from example config

* added reproducability to inspect

* formatting

---------

Co-authored-by: DrejcPesjak <dp8949@student.uni-lj.si>
Co-authored-by: Martin Kozlovský <martin.kozlovsky@luxonis.com>
* support for custom loaders and datasets

* updated configs

* custom loaders in inspect command

* updated inspect for multi-task labels

* removed custom loader from test config

* deleted comment

* deleted comment

* removed custom dataset

* removed comment

* skipping archiver test untill fixed in luxonis-ml

* [Automated] Updated coverage badge

---------

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Martin Kozlovsky <martin.kozlovsky@luxonis.com>
Co-authored-by: Martin Kozlovsky <martin.kozlovsky@luxonis.com>
Co-authored-by: Michal Sejak <hyas@seznam.cz>
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Martin Kozlovsky <martin.kozlovsky@luxonis.com>
@kozlov721 kozlov721 added the release New version release label Oct 9, 2024
@github-actions github-actions bot added tests Adding or changing tests DevOps Changes related to DevOps CLI Changes affecting the CLI labels Oct 9, 2024
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 96.98649% with 87 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@2e82131). Learn more about missing BASE report.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
luxonis_train/config/config.py 94.91% 17 Missing ⚠️
luxonis_train/nodes/blocks/blocks.py 92.18% 10 Missing ⚠️
luxonis_train/core/core.py 96.13% 8 Missing ⚠️
luxonis_train/core/utils/archive_utils.py 93.75% 7 Missing ⚠️
luxonis_train/core/utils/tune_utils.py 88.67% 6 Missing ⚠️
luxonis_train/models/luxonis_lightning.py 96.42% 4 Missing ⚠️
...nfig/predefined_models/keypoint_detection_model.py 93.61% 3 Missing ⚠️
luxonis_train/nodes/backbones/micronet/blocks.py 97.34% 3 Missing ⚠️
luxonis_train/nodes/base_node.py 97.58% 3 Missing ⚠️
...ched_modules/metrics/object_keypoint_similarity.py 94.59% 2 Missing ⚠️
... and 16 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage        ?   97.13%           
=======================================
  Files           ?      139           
  Lines           ?     6003           
  Branches        ?        0           
=======================================
  Hits            ?     5831           
  Misses          ?      172           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@klemen1999 klemen1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kozlov721 kozlov721 merged commit dafd1ee into main Oct 9, 2024
9 checks passed
@kozlov721 kozlov721 deleted the dev branch October 9, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Changes affecting the CLI DevOps Changes related to DevOps release New version release tests Adding or changing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants