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

Fix: Python example API that caused Memory leak. #6668

Merged
merged 1 commit into from
Sep 25, 2020
Merged

Fix: Python example API that caused Memory leak. #6668

merged 1 commit into from
Sep 25, 2020

Conversation

Shaing
Copy link

@Shaing Shaing commented Sep 15, 2020

Hi:
I tested the python API and the memory leak was fast growing, and I checked the darknet.py where I found free_image(), according IMAGE structure, I added the free function after detect_image() to free IMAGE from make_image, and everything was fine!

Thx,
A.H.

@AlexeyAB AlexeyAB merged commit 622b175 into AlexeyAB:master Sep 25, 2020
@ron5569
Copy link

ron5569 commented Sep 26, 2020

Hey
Do you have a solution also for batch prediction?
Namely for

def batch_detection(network, images, class_names, class_colors,

Thanks!

BogdanovKirill pushed a commit to 3dEYE/darknet that referenced this pull request Oct 21, 2020
commit 8297b1b
Author: AlexeyAB <[email protected]>
Date:   Tue Oct 20 05:37:49 2020 +0300

    Added some hyper-params to the yolov4-tiny_contrastive.cfg

commit 88936e0
Author: AlexeyAB <[email protected]>
Date:   Tue Oct 20 05:34:37 2020 +0300

    Added some hyper-params to the yolov4-tiny_contrastive.cfg

commit 7a28aad
Author: AlexeyAB <[email protected]>
Date:   Tue Oct 20 02:49:24 2020 +0300

    yolov4-tiny_contrastive.cfg

commit d65909f
Author: Alexey <[email protected]>
Date:   Sun Oct 11 15:54:55 2020 +0300

    Update README.md

commit 91b5dd2
Author: Alexey <[email protected]>
Date:   Wed Oct 7 01:14:00 2020 +0300

    Update README.md

commit f8afd1b
Merge: 9db0ed9 860d529
Author: Alexey <[email protected]>
Date:   Mon Oct 5 06:46:27 2020 +0300

    Merge pull request AlexeyAB#6719 from cenit/dev/cenit/llvm12

    fix compatibility with newer clang

commit 9db0ed9
Merge: 622b175 05a88b2
Author: Alexey <[email protected]>
Date:   Fri Sep 25 07:10:57 2020 +0300

    Merge pull request AlexeyAB#6642 from zk2ly/zk2ly-patch-1

    Update darknet_images.py

commit 622b175
Merge: fdb1841 5aa9fdd
Author: Alexey <[email protected]>
Date:   Fri Sep 25 07:03:16 2020 +0300

    Merge pull request AlexeyAB#6668 from Shaing/master

    Fix: Python example API that caused Memory leak.

commit 860d529
Author: Stefano Sinigardi <[email protected]>
Date:   Wed Sep 23 11:03:47 2020 +0200

    fix compatibility with newer clang

commit fdb1841
Author: AlexeyAB <[email protected]>
Date:   Mon Sep 21 06:11:20 2020 +0300

    Ignore behavior of [history] layer for training on non-sequential images

commit 8993a24
Author: AlexeyAB <[email protected]>
Date:   Mon Sep 21 05:48:15 2020 +0300

    Added: [net] contrastive_color=0 and [contrastive] contrastive_neg_max

commit 5aa9fdd
Author: AllenH <[email protected]>
Date:   Tue Sep 15 15:47:05 2020 +0800

    fix: python API that caused Memory leak

commit 05a88b2
Author: zk2ly <[email protected]>
Date:   Thu Sep 10 15:28:21 2020 +0800

    Update darknet_images.py

commit eb0272f
Author: AlexeyAB <[email protected]>
Date:   Sun Sep 6 04:54:20 2020 +0300

    Fixed cuDNN 8.x usage

commit ecad770
Author: AlexeyAB <[email protected]>
Date:   Sun Aug 30 02:34:29 2020 +0300

    Added [yolo] l.cls_normalizer

commit acd8f31
Author: AlexeyAB <[email protected]>
Date:   Sun Aug 30 01:55:49 2020 +0300

    Added [yolo] obj_normalizer=1.0 delta_normalizer=1.0

commit ae27c16
Merge: 05dee78 519fc8b
Author: Alexey <[email protected]>
Date:   Sat Aug 29 17:52:06 2020 +0300

    Merge pull request AlexeyAB#6564 from bouncyphoton/master

    Improve model loading performance for detect

commit 519fc8b
Author: sandy <[email protected]>
Date:   Tue Aug 18 16:57:02 2020 -0700

    Remove expensive unnecessary memset

commit 6a2d50f
Author: sandy <[email protected]>
Date:   Tue Aug 18 16:56:45 2020 -0700

    Precompute part of expensive multiplication
juhong-rdv pushed a commit to juhong-rdv/darknet that referenced this pull request Dec 18, 2021
Fix: Python example API that caused Memory leak.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants