Using YOLOv5 with Pillow-SIMD #7472
jkocherhans
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
@jkocherhans you could create a PR for an environment variable that In any case the last time I checked PIL had already incorporated all of the speed improvements found in SIMD. Can you provide any current benchmarks with profiling results on each? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@jkocherhans PR #7505 merged! Let us know if you observe performance improvements with SIMD. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I’d like to use Pillow-SIMD (a drop-in replacement for Pillow) along with YOLOv5, but as soon as I import my model with
torch.hub.load
,check_requirements
notices that Pillow isn’t installed and installs it automatically over the top of Pillow-SIMD. I can think of a few possible ways around this, but they all involve changing YOLOv5’s code.install=True
default incheck_requirements
toFalse
. In a production environment, it’s surprising to me that importing code would cause a package to be installed, but I definitely see how the current behavior is helpful for most folks.install=False
intotorch.hub.load
, and pass that down to the call tocheck_requirements
.check_requirements
to check for Pillow-SIMD as a fallback for Pillow.If any combination of those options sound like a good idea to the maintainers, I’m happy to put together a PR.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions