Giter Site home page Giter Site logo

Comments (7)

araneto avatar araneto commented on May 10, 2024 3

Hey @jacobpchen

You can use the 'verbose=False' argument to disable the output generated by YOLOv8.

model.predict(source=0, verbose=False)

from supervision.

jacobpchen avatar jacobpchen commented on May 10, 2024 1

Hi @araneto thank you! Your solution worked perfectly!

from supervision.

github-actions avatar github-actions commented on May 10, 2024

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.

from supervision.

SkalskiP avatar SkalskiP commented on May 10, 2024

Hi @jacobpchen 👋🏻! Could you help me out what console output are we talking about?

from supervision.

jacobpchen avatar jacobpchen commented on May 10, 2024

Hi @SkalskiP when the detection is running this is printed in console:

0: 384x640 (no detections), 1072.9ms
Speed: 1.7ms preprocess, 1072.9ms inference, 1.4ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 (no detections), 1055.3ms
Speed: 1.0ms preprocess, 1055.3ms inference, 1.6ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 (no detections), 1232.2ms
Speed: 1.7ms preprocess, 1232.2ms inference, 1.4ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 3 cars, 1 truck, 955.4ms
Speed: 1.5ms preprocess, 955.4ms inference, 6.8ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 3 cars, 1 truck, 905.9ms
Speed: 1.5ms preprocess, 905.9ms inference, 3.1ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 2 cars, 1 truck, 722.2ms
Speed: 1.0ms preprocess, 722.2ms inference, 3.0ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 3 cars, 739.7ms
Speed: 1.2ms preprocess, 739.7ms inference, 3.1ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 2 cars, 1073.4ms
Speed: 1.3ms preprocess, 1073.4ms inference, 3.4ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 2 cars, 1 truck, 1159.1ms
Speed: 0.9ms preprocess, 1159.1ms inference, 3.0ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 2 cars, 877.3ms
Speed: 2.1ms preprocess, 877.3ms inference, 3.2ms postprocess per image at shape (1, 3, 640, 640)

0: 384x640 2 cars, 1 truck, 1359.9ms

I was wondering if there was a way to hide all of this output.

from supervision.

SkalskiP avatar SkalskiP commented on May 10, 2024

Oh. That log is generated by YOLOv8 (ultralytics pip package). Feel free to create an issue here: https://github.com/ultralytics/ultralytics/issues

from supervision.

fortmea avatar fortmea commented on May 10, 2024

Found out you can also set an environment variable:
In utils/init.py there's this line:
VERBOSE = str(os.getenv("YOLO_VERBOSE", True)).lower() == "true" # global verbose mode
So to disable the logging, just use os.environ["YOLO_VERBOSE"] = "False" Somewhere in your code

from supervision.

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.