https://github.com/thoppe/instafilter
Instagram-like filters with deep learning
https://github.com/thoppe/instafilter
ai art photography python
Last synced: 6 days ago
JSON representation
Instagram-like filters with deep learning
- Host: GitHub
- URL: https://github.com/thoppe/instafilter
- Owner: thoppe
- License: mit
- Created: 2020-08-29T13:49:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T00:37:52.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T00:09:35.920Z (10 months ago)
- Topics: ai, art, photography, python
- Language: Python
- Homepage:
- Size: 20.4 MB
- Stars: 56
- Watchers: 3
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-meteo - instafilter - like filters in python (Uncategorized / Uncategorized)
README

[](https://img.shields.io/pypi/pyversions/instafilter.svg)
[](https://pypi.python.org/pypi/instafilter)
Modifiy images using Instagram-like filters in python. [Read how it works on Medium](https://medium.com/@travis.hoppe/instagram-filters-in-python-acc1ee7e67bc)!
pip install instafilter
Example:
``` python
from instafilter import Instafilter
model = Instafilter("Lo-fi")
new_image = model("myimage.jpg")
# To save the image, use cv2
import cv2
cv2.imwrite("modified_image.jpg", new_image)
```
## Sample images
Browse samples for every filter in [`development/examples`](development/examples).
**Ludwig**
[](examples/Ludwig.jpg)
**Stinson**
[](examples/Stinson.jpg)
**Moon**
[](examples/Moon.jpg)
## Train
See the code in [`development/train_new_model`](development/train_new_model) to train a new model.
## Roadmap
+ Medium post
## Credits
+ Made with ❤️ by [Travis Hoppe](https://twitter.com/metasemantic?lang=en).
+ Header image sourced from [Will Terra](https://unsplash.com/photos/qIY9mUKT540) and modified with instafilter.