Commit Graph

2255 Commits

Author SHA1 Message Date
umbralada ac4e765a4a
added free_alphabet function; this function used for free alphabet. (#1805) 2023-09-01 23:15:01 +02:00
ck 30b044abd6
improve code for parser.c using int32_t for major, minor and revision of .weights file's header. (#7983)
Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
2023-09-01 17:26:36 +02:00
Matthew Jones 640edd2778
Fix unhandled negative resize augmentation. Propagate OpenCV errors back to C logger. (#8565) 2023-09-01 17:25:48 +02:00
Muhammad Maaz 5a9970b24a
Add support for less or more frequent mAP calculation while training (#4918)
* Feature: Add support to pass '-mAP_epochs' from command line.

'-mAP_epochs' decide after how many epochs mAP should be calculated. Default value is 4 which means the mAP will be calculated after each 4 epochs.
2023-09-01 16:20:25 +02:00
Stefano Sinigardi 291cdb9ccd
enable packaging (#8837) 2023-08-31 11:32:51 +02:00
Stefano Sinigardi a2f20d7069
use ansi escape sequence vt100 ESC[H ESC[J to clear screen in a portable way (win10+ supported!) (#8834) 2023-08-27 23:49:28 +02:00
David C. Schedl 538c4353ff
Configure when to write weights. (#7932)
Co-authored-by: schedldave <david.schedl@jku.at>
Co-authored-by: Schedl David <P22598@fhooe.at>
Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
2023-08-26 04:05:40 +02:00
zhiliu6 82eb049fdc
Support label image filename with multiple extension. (#6667) 2023-08-26 03:52:25 +02:00
Stefano Sinigardi 2f4ab0887c
Gl integration (#8833)
* Start adding support for running darknet from OpenGL textures

* Get CUDA-GL interop working (at least without segfaults...)

* Copy the GL texture to the CUDA input buffer

* Remove printf statements

* Code cleanup

* Fix a function call

* Remove the #ifdef GPU guard in darknet.h

* Use the width and height from the network instead of hard-coding

* Install libgles2-mesa-dev for some ubuntu targets

* Get the build working on Windows

* Add an OpenGL-CUDA integration option for CMake

* Bump the version-date in vcpkg.json

* Remove ifdef in darknet.h for the network_predict_gl_texture() function

* Use target_compile_definitions to set CUDA_OPENGL_INTEGRATION flag

* Re-add the #ifdef CUDA_OPENGL_INTEGRATION guard

---------

Co-authored-by: Brian Schwind <brianmschwind@gmail.com>
2023-08-26 03:50:00 +02:00
CSTEZCAN dfc70de682
Adding new cards, sorting cuda compute (#8792)
Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
2023-08-26 03:41:40 +02:00
mwohlm eb313288a5
Set option ENABLE_SSE_AND_AVX_FLAGS after all dependent variables have been defined. (#8597) 2023-08-26 02:54:28 +02:00
dekk.Mars 2fa6307b17
mini fix (#5662)
FileNotFoundError: Could not find module

Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
2023-08-26 02:50:44 +02:00
Juuso Alasuutari 68100fb3a8
Fix format string conversion specifiers (#6192)
Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>
Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
2023-08-26 02:41:03 +02:00
Cristi Fati c87e33eb06
Fix thread synchronization bug + many more (#8562)
* Minor: float fps (useful for small values - e.g. CPU)
* Fix multiple code readability issues
* Better synchoronize threads (when user interrupts video)
* Better thread objects handling
* Pass data via arguments instead of global like variables - 0
* Minor code readability fixes
* CTypes definitions
* Pass data via arguments instead of global like variables - 1
* Code reordering + (minor) renames
* Pass data via arguments instead of global like variables - 2
2023-08-26 01:56:16 +02:00
Cristi Fati ef8ad4ae2d
Fix CPU only project build failure (#8555) 2023-08-26 01:55:36 +02:00
mhwahdan ea4f126cea
Added docker support + 1 command installation using docker-compose (#8578)
* Added cpu docker support
* add gpu docker support + docker compose for ease of use
2023-08-26 01:49:28 +02:00
Stefano Sinigardi d5e0450290
upgrade to cuda 12.2 (#8832) 2023-08-26 01:41:27 +02:00
Stefano Sinigardi f3a50b9aee
add kmeansiou to build targets (#8831) 2023-08-25 22:11:50 +02:00
Stefano Sinigardi d47d72cb70
minor spelling fixes (#8830)
* minor spelling fixes
* fix spacing
* bump stb to latest and greatest
2023-08-25 16:47:31 +02:00
Juuso Alasuutari 6a9dc6a6f8
Update stb libraries to latest from upstream (#5941)
* Update stb_image_write to v1.14

Source-commit: 2bb4a0accd4003c1db4c24533981e01b1adfd656
Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>

* Update stb_image to v2.25

Source-commit: 0224a44a10564a214595797b4c88323f79a5f934
Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>

---------

Signed-off-by: Juuso Alasuutari <juuso.alasuutari@gmail.com>
2023-08-25 15:56:43 +02:00
juraev 2bb27c182c
Update darknet_images.py (#8559)
Safer and better type check.
2023-08-25 15:32:52 +02:00
Yuriy Savitskiy 38a5b489da
Fix segfault for batch_detection_example (#8478)
Co-authored-by: Yuriy Savitskiy <yuriy.savitskiy@vicuesoft.com>
2023-08-25 15:30:33 +02:00
Stefano Sinigardi a87fe0b40d
update github actions (#8829)
* update github actions
* consolidate versions
* bump minimum cmake version
2023-08-24 19:16:28 +02:00
Tobit Flatscher d2c3788539
feat: Move set_batch_network to public API (#8782) 2023-08-02 08:54:08 +02:00
Tobit Flatscher 5915c2e09a
feat: Allow package to be used directly with ROS/ROS 2 by providing package manifest (#8783) 2023-08-02 08:53:25 +02:00
Stefano Sinigardi 9bf13a09d8
update build script to workaround vcpkg integrated in vs (#8818) 2023-08-02 08:50:59 +02:00
Stéphane Charette fb2c3b0d6d
Update README.md
remove bad links to google groups and reddit
2023-06-20 12:25:59 -07:00
Stéphane Charette 69005fb598
Update README.md
Link to new repo in readme
2023-06-20 12:09:53 -07:00
Stéphane Charette 8c2e3ad5b8
Update README.md
link to FAQ and Discord
2023-06-20 12:01:49 -07:00
Stéphane Charette 59c86222c5
better logging for filename/function/line on CUDA and CUDNN error; logging of full backtrace on Linux when an error causes Darknet to exit (#8791) 2023-05-06 20:19:30 +02:00
Stefano Sinigardi ed59050950
fix errors in CI (#8753)
* update build scripts

* add pkg-config on osx

* re-enable building with older opencv versions
2023-03-03 18:24:13 +01:00
Stefano Sinigardi 0faed3e60e
add missing dependencies (#8694) 2022-11-04 14:27:17 +01:00
Stéphane Charette 62e5549cef
Make sure best.weights is the most recent weights for a given mAP% (#8670)
* issue #8308: memory leaks in map

* update the window title with some training stats

* make sure _best.weights is the most recent weights with that mAP%
2022-09-21 14:03:47 +03:00
Stefano Sinigardi 96f08de683
restore Windows PowerShell compatibility (#8607)
* fix IsWindowsPowershell visibility

* add missing closing braces

* use proper flag

* non-interactive deploy of cuda

* set default host triplet

* add a CI test for legacy Windows PowerShell

* add powershell as shell name explicitly, otherwise github actions are already defaulting to pwsh
2022-08-16 20:20:48 +02:00
AlexeyAB84 b10dd93873 fix activation silu to swish for yolov7/x.cfg 2022-08-11 14:44:15 +03:00
AlexeyAB84 c484fcca49 Added yolov7.cfg and yolov7x.cfg 2022-08-11 14:40:04 +03:00
Alexey 25505164a3
Update README.md 2022-07-18 00:24:59 +03:00
AlexeyAB84 ecace9a36d minor fix 2022-07-07 23:33:45 +03:00
AlexeyAB84 a02b5b83a6 Added yolov7-tiny.cfg 2022-07-07 22:19:18 +03:00
Alexey 69514cac9e
Update README.md 2022-07-07 05:44:53 +03:00
Stefano Sinigardi 1ee19442ee
update to cuda 11.7, update pthreads4w cmake module, upgrade ps1 scripts (#8586) 2022-07-01 16:46:41 +02:00
Akash Patel eaee5060d5
- Fix warning -Werror=format-security (#8525)
Co-authored-by: Jeremy Prater <silverevo03@gmail.com>
2022-06-08 15:38:53 +02:00
Scott Martin 4a7c2802e0
Allow image_detection to receive a cv2 image; remove duplicate darknet import (#8387) 2022-05-17 02:04:54 +03:00
Sergey Nuzhny 695d562918
Fixed issues 8510 and 8511 (#8516)
* Fixed issues 8510 and 8511

* Update yolo.c

Return fprintf
2022-05-17 01:57:30 +03:00
Stefano Sinigardi 8a0bf84c19
various fixes (#8398)
* re-enable opencv on osx

* enable all and all-major architecture flags for cuda

* update build script

* use proper path separator

* [windows-cuda] bump to 11.6.1

* [windows-cuda] some fixes from CI runs

* make deploy-cuda.ps1 work also when called from outside its folder

* bump to cuda 11.6 also on linux

* deploy custom cmake modules if requested by the user

* fix cmake module source path

* use proper clause for dll copy
2022-03-07 01:41:08 +03:00
Adam Cuellar 2c137d16f6
Fix conv_lstm cuda errors and nan's (#8388) 2022-03-03 06:12:18 +03:00
Stéphane Charette b4d03f8802
issue #8308: memory leaks in map (#8314)
* issue #8308: memory leaks in map

* update the window title with some training stats
2022-01-09 05:50:40 +03:00
jenhaoyang 47aa6cceb6
Update Readme.txt URL Typo (#8285)
Update Readme.txt Typo
2022-01-08 05:13:03 +03:00
Stefano Sinigardi 57910b1fa9
[CI] build dependencies in release-only mode (#8304)
* enable release-only triplet on windows

* add debug tmate

* use release-only triplets also for linux and osx
2021-12-22 12:20:27 +01:00
Stefano Sinigardi 967b72db11
improve compatibility with vs2022 (#8295) 2021-12-17 15:05:24 +01:00