Skip to content

GIMP3 machine learning plug-ins - update of old GIMP-ML plug-ins to work with GIMP 3

License

Notifications You must be signed in to change notification settings

neurozero/GIMP3-ML

 
 

Repository files navigation

GIMP3-ML

Machine Learning plugins for GIMP 3. These include: Background Removal, Super Resolution, Monocular Depth Map (as opposed to stereo), Inpainting, Noise Removal, Deblur, Denoise, among others. See below for the full list.

These plugins wrap functionality from other projects in order to make them easily accessible from within GIMP. See below for links to specific projects.

ABOUT THIS FORK

This was forked from UserUnknownFactor GIMP3-ML which was forked from original version

Both of those forks seem abandoned. The original GIMP-ML is being moved in a different direction to use DALL-E, Stable Diffusion, etc. But doesn't seem to include these specific Machine Learning tools for specific tasks which I find very useful. In the last fork the Remove Background plug-in isn't working, as it hasn't kept up with the latest version of rembg, among other issues.

I've made this fork to update the plug-ins to work with the latest GIMP version. When it was last worked on in the old Fork it was supposedly working with a 2.99.12 version of GIMP. First I will make sure it is working with GIMP 2.99.12, then move to the latest GIMP 3 RC (Release Canditate).

INFO FROM PREVIOUS FORKS

Forked from the original version to improve the user experience in several aspects:

  • Added more models.
  • Models are run with Python 3.10+.
  • Full error text is shown in the GIMP error dailog and in debug console.
  • Additional alpha channel handling in some plugins.
  • Automatic installation for Windows systems.
  • And other smaller improvements.

The plugins have been tested with GIMP 2.99.12 on the following systems:

  • Windows 10

Installation Steps

  1. Install GIMP3.
  2. Download this repository.
  3. On Windows:
    • Install Python 3.10.
    • Run install.cmd from the unpacked folder.
  4. You should now find the GIMP-ML plugins under Layers → GIMP-ML.
  5. You can download the weights here, or from the weight links below.

Screenshot

References

Background Removal

Anime-style Inpainting

@inproceedings{nazeri2019edgeconnect,
  title={EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning},
  author={Nazeri, Kamyar and Ng, Eric and Joseph, Tony and Qureshi, Faisal and Ebrahimi, Mehran},
  journal={arXiv preprint},
  year={2019}}

Demosaics

[Paper]
Xintao Wang, Liangbin Xie, Chao Dong, Ying Shan
Applied Research Center (ARC), Tencent PCG
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences

Inpainting

@article{Moskalenko_2020,
	doi = {10.51130/graphicon-2020-2-4-18},
	url = {https://doi.org/10.51130%2Fgraphicon-2020-2-4-18},
	year = 2020,
	month = {dec},
	pages = {short18--1--short18--9},
	author = {Andrey Moskalenko and Mikhail Erofeev and Dmitriy Vatolin},
	title = {Deep Two-Stage High-Resolution Image Inpainting},
	journal = {Proceedings of the 30th International Conference on Computer Graphics and Machine Vision ({GraphiCon} 2020). Part 2}} 

SRResNet

Neural Colorization

Edge Detection (DexiNed)

@misc{soria2021dexined_ext,
    title={Dense Extreme Inception Network for Edge Detection},
    author={Xavier Soria and Angel Sappa and Patricio Humanante and Arash Arbarinia},
    year={2021},
    eprint={arXiv:2112.02250},
    archivePrefix={arXiv},
    primaryClass={cs.CV}}

DeblurGANv2

Monodepth2

Authors

  • UserUnknownFactor
  • Kritik Soman (kritiksoman) – original GIMP-ML implementation

License

MIT

Please note that additional license terms apply for each individual model. See the references list for details. Many of the models restrict usage to non-commercial or research purposes only.

About

GIMP3 machine learning plug-ins - update of old GIMP-ML plug-ins to work with GIMP 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Other 0.9%