Comments (5)
You may need reinstall your Pillow, for example pip install Pillow==9.5.0
.
from yolov9.
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.
Thank you, it was very useful and has been resolved
from yolov9.
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.
Related to PR #97
from yolov9.
Related Issues (20)
- pycocotools unable to run: [Errno 2] No such file or directory: '/yolov9/annotations/instances_val2017.json'
- When training YOLOv9 to segment a specific category, you may encounter an error.
- Can it be used for rotating target detection?
- Can it be used for rotating target detection? HOT 1
- yolov9 in C++ with onnx HOT 1
- pycocotools unable to run: Results do not correspond to current coco set HOT 2
- Hello, can you provide the complete code of "YOLOR-BASED MULTI-TASK LEARNING"? HOT 4
- YOLOv9 .pt => .onnx ? HOT 2
- about multi-level reversible auxiliary branch HOT 2
- train error . HOT 1
- Tensorboard Bug
- Trying to export a segment model -- "IndexError: index 1 is out of bounds for dimension 0 with size 1" HOT 2
- Can I run detect.py using multiple cpu instead of one on mac
- How To Run Detect.py From Python Code HOT 2
- where is yolov9-T cfg file? HOT 1
- RKNN
- please release yolov9-T, our university are waiting for it
- Sometimes getting a segmentation fault running DetectMultiBackend
- AttributeError: 'dict' object has no attribute 'shape'
- reparameterization script for yolov9-t missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov9.