I made boilerplate-free library for working with Images inside Notebooks

I definitely steal some ideas from notebooks we saw here :slight_smile:
But I bet this solution has some fast workflow & you can literally forget about writing most of the image-handling logic after this.

Here are some examples:

I.download(some_image_urls).crop(224).show()
I.download(some_image_urls).to_dir("/path/to/images")
pytorch_images = I.from_dir("path/to/images").resize(256).pt()
images = I.wrap(pytorch_images ).crop(224)
images.show()
pil_images = images.pick(0, 3, 4).normalize().pil()
I.merge(images, pil_images, pytorch_images, pil_images[0]).resize(128).to_dir("thumbs")

Hope this helps.

5 Likes