

InvertOrNot
Make your app's dark-mode smarter with InvertOrNot. Our API predicts if an image should be inverted for optimal dark-mode rendering.
Cost / License
- Free
- Open Source
Platforms
- Online
- Self-Hosted

InvertOrNot
Features
- Dark Mode
- Invert colours
Tags
- invert-colors
- Api
InvertOrNot News & Activities
Recent activities
InvertOrNot information
What is InvertOrNot?
Make your app's dark-mode smarter with InvertOrNot. Our API predicts if an image should be inverted for optimal dark-mode rendering. This API is free, and is open source (both the code and the weights of the model are available).
Background
Despite dark-mode's popularity, images often aren't automatically adapted to fit it. The conservative approach is to reduce the brightness of the image, which can degrade it significantly. Inverting the image can be a better solution, but it can't be applied to all images (see the poor Queen Victoria). Using our API you can make your website more pleasant to use in dark-mode, without having to manually adapt each image.
How does it work?
The API works by finetuning an EfficientNet model on a custom dataset using PyTorch. By using deep learning we are able to have a much more reliable approach to solve this problem, the only alternative being heuristics.
