Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save the planet by not reading images for size (#372)
Summary: ``` In [7]: %timeit Image.open("datasets/coco/train2017/000000000009.jpg").size 34.9 µs ± 59.6 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) In [8]: %timeit imagesize.get("datasets/coco/train2017/000000000009.jpg") 9.43 µs ± 64.2 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) ``` https://images.app.goo.gl/Msptv7xcCVsXJ5zh8 Pull Request resolved: facebookresearch/detectron2#372 Differential Revision: D18709576 Pulled By: ppwwyyxx fbshipit-source-id: f6910eff7abafcda053a1e8ee33a370fc96aed20
- Loading branch information