Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nanodet C API. Onnx and Libtorch (JIT) modules implementations and Li…
…btorch Installation. (#352) * Onnx and Jit tracing-scripting implementation with python and c api inference. Docs and tests have changed acordingly * Implementation of libtorch and torch vision installation as part of tool installation. * add licence and file name corection * style, inconclusive cppcheck fixes. * Fixes for C API initilization errors * Deleting no used code * macos cppcheck -> C style fixes * macos cppcheck -c style fixes * c-style pointer delceration fixes * c-style pointer delceration fixes * cpp casting casting fixes * bug fixes * Update projects/python/perception/object_detection_2d/nanodet/export_torchscript.py Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update install_torch_c_api.sh * Update dependencies/install_torch_c_api.sh Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/nanodet_c.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/nanodet_c.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/nanodet_c.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/nanodet_c.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/opendr_utils.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update include/target.h Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update nanodet.md * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update nanodet.md * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update Makefile * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/nanodet.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update nanodet.md * Update projects/c_api/Makefile Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/nanodet/README.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update eval_demo.py * Update projects/python/perception/object_detection_2d/nanodet/export_onnx.py Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/nanodet/README.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/nanodet/README.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * installing libtorch and vision with respect to CUDA of the user * better explanations of variables in optimization runtimes * small typing fixes * Fix dependency * Update dependencies.ini deleting torchmetrics * update docs for new data structures and utilities of c api * new source, samples, utilities and test for onnx C API. The new scripts are implemente the feed forward of almost all the onnx models that python api is provided. * bug fixes in onnx exporting. * Revert "update docs for new data structures and utilities of c api" This reverts commit 467c1f1. * Revert "bug fixes in onnx exporting." This reverts commit fcd4f9c. * Revert "Revert "bug fixes in onnx exporting."" This reverts commit 953a193. * Revert "new source, samples, utilities and test for onnx C API. The new scripts are implemente the feed forward of almost all the onnx models that python api is provided." This reverts commit 617572d. * Revert "bug fixes in onnx exporting." This reverts commit fcd4f9c. * revert last commits, change files for cpp styles as wiki says and better directory construction for easier navigation and new tools implementation. * change function name to be uniform with the others * doc for c nanodet * Added small Json parser and installation script for easier navigation and universal use for future c api * Update projects/c_api/README.md Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com> * Update dependencies/install_torch_c_api.sh Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com> * Update dependencies/install_torch_c_api.sh Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com> * Update install_torch_c_api.sh not need for specified vision version in sh * Update download_torch.py not need for environment variables to be passed * Update utilities.py delete additional print from debugging * Fixes * Fixes of suggestions Combine optimizations and inference in one script * Fixes of suggestions Add more JSON parser capabilities Fix face recognition threshold not readed from JSON * Fixes of suggestions Delete not used loggers. * Fixes of suggestions * added json parser in utilities * unnecessary use of filesystem, easier implementation in embeded * default directory for saves change to `temp` * change to warnings errors and exceptions * Transfer warnings for jit and ort simultaneously loaded from _load to infer. * Change naming style. All .cpp files have only CPP style naming and .c files have CPP style naming in CPP functions and C style in everything else. * license test update * Apply suggestions from code review Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Apply suggestions from code review * fixe bug to find cuda * add automatic random colors * better implementation of optimize * add XMLBaseDataset option * train bug fix * train bug fix * tipo fix * add changes and some better namings Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> Co-authored-by: ad-daniel <daniel.dias@epfl.ch> Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com> Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
- Loading branch information