Giter Club home page Giter Club logo

Comments (5)

WongKinYiu avatar WongKinYiu commented on July 22, 2024 7

You may need reinstall your Pillow, for example pip install Pillow==9.5.0.

from yolov9.

moralesja560 avatar moralesja560 commented on July 22, 2024 7

Hi, I use YOLO for an industrial application, and I wanted to collaborate:

I replaced line 86 in plots.py:

w, h = self.font.getsize(label) # text width, height

I read in the PIL docs that getsize is now deprecated and was replaced by ImageFont.getbbox() and ImageFont.getlength().

In the source code of getbbox, shows that it returns 4 elements:

return 0, 0, width, height

So I did this:

unused1,unused2,w, h = self.font.getbbox(label) # text width, height

And the error was solved.

I apologize in advance if I'm commenting in a closed thread.
Have a great day.

from yolov9.

Hezhing avatar Hezhing commented on July 22, 2024

Thank you, it was very useful and has been resolved

from yolov9.

mkrupczak3 avatar mkrupczak3 commented on July 22, 2024

Recommend re-opening this issue, either until a patch is merged in or requirements.txt specifies this version. If installing yolov9 with the existing requirements.txt, this error will always occur

You may need reinstall your Pillow, for example pip install Pillow==9.5.0.

from yolov9.

mkrupczak3 avatar mkrupczak3 commented on July 22, 2024

Related to PR #97

from yolov9.

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.