Giter VIP home page Giter VIP logo

Comments (4)

NikolayTV avatar NikolayTV commented on May 14, 2024

Give code to reproduce the error

from dsfd-pytorch-inference.

 avatar commented on May 14, 2024
def read_image(img_path):
    img = cv2.imread(img_path)
    img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
    return img

detector = face_detection.build_detector("DSFDDetector", confidence_threshold=.5, nms_iou_threshold=.3)
image_paths = ['img1.jpg', 'img2.png', ...]    # list of image paths

predictions = detector.detect(read_image(str(image_paths[0])))  
predictions = detector.detect(read_image(str(image_paths[1])))  
predictions = detector.detect(read_image(str(image_paths[2])))  

My RAM keeps on increasing as I do inference for more and more images. RAM is not getting freed.

from dsfd-pytorch-inference.

hukkelas avatar hukkelas commented on May 14, 2024

Hi, I don't have access to a GPU currently as I'm on vacation. Will be able to inspect the issue when I'm back.
If anyone finds the issue, please submit a pull request and I should be able to review it.

from dsfd-pytorch-inference.

NikolayTV avatar NikolayTV commented on May 14, 2024

I also have this issue. On GPU it works fine, CPU inference loads the memory

from dsfd-pytorch-inference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.