Coder Social home page Coder Social logo

kritiksoman / gimp-ml Goto Github PK

View Code? Open in Web Editor NEW
1.4K 1.4K 126.0 98.01 MB

AI for GNU Image Manipulation Program

Home Page: https://kritiksoman.github.io/GIMP-ML-Docs/index.html

License: MIT License

Python 94.01% Shell 0.23% C 0.17% C++ 1.67% Cuda 3.02% MATLAB 0.90%
coloring-image computer-vision computervision deblurring deep-learning dehazing enlightenment gimp gimp-plugin gimp-plugins image-manipulation linux machine-learning machine-learning-algorithms macos photo-editing python3 ubuntu

gimp-ml's People

Contributors

kritiksoman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gimp-ml's Issues

Problems with install script: Using `apt`

Describe the bug
Errors while installing this package on Manjaro/Arch linux

To Reproduce
Steps to reproduce the behavior:

  1. running bash GIMP-ML/install.bat results in a bunch of errors:
    • sudo: apt-get: command not found
    • sudo: apt: command not found : These two are because apt is not the package manager for Manjaro
    • python: can't open file 'GIMP-ML/get-pip.py': [Errno 2] No such file or directory 1

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS Version: Manjaro
  • GIMP Version: 2.99.8-1

Footnotes

  1. Happens after I get:

    Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 199.232.20.175, 2a04:4e42:42::175
    Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|199.232.20.175|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2159352 (2.1M) [text/x-python]
    Saving to: ‘get-pip.py’
    
    get-pip.py                      100%[====================================================>]   2.06M  9.29MB/s    in 0.2s    
    
    2021-11-29 11:57:04 (9.29 MB/s) - ‘get-pip.py’ saved [2159352/2159352]
    
    python: can't open file 'GIMP-ML/get-pip.py': [Errno 2] No such file or directory
    

    I don't think you need to download pip. It should be installed on most systems anyways or otherwise make it a system requirement.

4 channel png support

I noticed that many of the plugins do not work if your input is a 4 channel png, could this support be added?

for an example, monodepth, it prints out a channel mismatch error, but this error is not printed if the image is 3 channel

deeplabv3 (Exec format error)

System: Linux antixbud 4.9.189-antix.1-amd64-smp #1 SMP PREEMPT Thu Aug 15 01:53:58 BST 2019 x86_64 GNU/Linux

$ gimp
gimp: /usr/lib/x86_64-linux-gnu/libbabl-0.1.so.0: no version information available (required by gimp)
gimp: /usr/lib/x86_64-linux-gnu/libbabl-0.1.so.0: no version information available (required by /usr/lib/libgimpwidgets-2.0.so.0)
gimp: /usr/lib/x86_64-linux-gnu/libbabl-0.1.so.0: no version information available (required by /usr/lib/libgimpcolor-2.0.so.0)
GIMP-Error: Unable to run plug-in "deeplabv3"
(/home/mario/bin/GIMP-ML/gimp-plugins/deeplabv3)

Failed to execute child process “/home/mario/bin/GIMP-ML/gimp-plugins/deeplabv3” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "deeplabv3.py"
(/home/mario/bin/GIMP-ML/gimp-plugins/deeplabv3.py)

Failed to execute child process “/home/mario/bin/GIMP-ML/gimp-plugins/deeplabv3.py” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error

Error during install - torch

ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cu111 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1)
ERROR: No matching distribution found for torch==1.8.1+cu111

Inpainting option is grayed out in the drop down list

Describe the bug
The Inpainting plugin is grayed out

To Reproduce
Steps to reproduce the behavior:

  1. Install GIMP & GIMP-ML as given in readme section
  2. Go to Layers -> GIMP-ML -> View the list
  3. Inpainting, Matting & Interpolation is grayed out

Screenshots
image

Desktop (please complete the following information):

  • OS Version: Windows 11
  • GIMP Version: 2.99

pluginrc errors and warnings

I think I followed every step, yes still receive plenty of errors when executing Gimp 2.8. Only options showing on GIML-ML menu are "colorize..." and "super-resolution...", and they crash after excution.

Following is the relevant part of the output text after executing gimp --verbose:

Parsing '/home/roberto/.gimp-2.8/pluginrc'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/deblur.py'
Traceback (most recent call last):
File "/home/roberto/GIMP-ML/gimp-plugins/deblur.py", line 10, in
from predictorClass import Predictor
File "/home/roberto/GIMP-ML/gimp-plugins/DeblurGANv2/predictorClass.py", line 1, in
from models.networks import get_generator_new
File "/home/roberto/GIMP-ML/gimp-plugins/DeblurGANv2/models/networks.py", line 1, in
import torch
ImportError: No module named torch

(gimp:22058): LibGimpBase-WARNING **: 01:05:10.258: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/roberto/GIMP-ML/gimp-plugins/deblur.py'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/CelebAMask-HQ'
GIMP-Error: Unable to run plug-in "CelebAMask-HQ"
(/home/roberto/GIMP-ML/gimp-plugins/CelebAMask-HQ)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/CelebAMask-HQ” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/deeplabv3.py'
Traceback (most recent call last):
File "/home/roberto/GIMP-ML/gimp-plugins/deeplabv3.py", line 10, in
from PIL import Image
ImportError: No module named PIL

(gimp:22058): LibGimpBase-WARNING **: 01:05:10.310: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/roberto/GIMP-ML/gimp-plugins/deeplabv3.py'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/monodepth2'
GIMP-Error: Unable to run plug-in "monodepth2"
(/home/roberto/GIMP-ML/gimp-plugins/monodepth2)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/monodepth2” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/deeplabv3'
GIMP-Error: Unable to run plug-in "deeplabv3"
(/home/roberto/GIMP-ML/gimp-plugins/deeplabv3)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/deeplabv3” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/faceparse.py'
Traceback (most recent call last):
File "/home/roberto/GIMP-ML/gimp-plugins/faceparse.py", line 11, in
from model import BiSeNet
File "/home/roberto/GIMP-ML/gimp-plugins/face-parsing.PyTorch/model.py", line 5, in
import torch
ImportError: No module named torch

(gimp:22058): LibGimpBase-WARNING **: 01:05:10.416: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/roberto/GIMP-ML/gimp-plugins/faceparse.py'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/face-parsing.PyTorch'
GIMP-Error: Unable to run plug-in "face-parsing.PyTorch"
(/home/roberto/GIMP-ML/gimp-plugins/face-parsing.PyTorch)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/face-parsing.PyTorch” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/monodepth.py'
Traceback (most recent call last):
File "/home/roberto/GIMP-ML/gimp-plugins/monodepth.py", line 10, in
import PIL.Image as pil
ImportError: No module named PIL.Image

(gimp:22058): LibGimpBase-WARNING **: 01:05:10.479: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/roberto/GIMP-ML/gimp-plugins/monodepth.py'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/pytorch-SRResNet'
GIMP-Error: Unable to run plug-in "pytorch-SRResNet"
(/home/roberto/GIMP-ML/gimp-plugins/pytorch-SRResNet)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/pytorch-SRResNet” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/neural-colorization'
GIMP-Error: Unable to run plug-in "neural-colorization"
(/home/roberto/GIMP-ML/gimp-plugins/neural-colorization)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/neural-colorization” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/facegen.py'
Traceback (most recent call last):
File "/home/roberto/GIMP-ML/gimp-plugins/facegen.py", line 11, in
import torch
ImportError: No module named torch

(gimp:22058): LibGimpBase-WARNING **: 01:05:10.561: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/roberto/GIMP-ML/gimp-plugins/facegen.py'
Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/DeblurGANv2'
GIMP-Error: Unable to run plug-in "DeblurGANv2"
(/home/roberto/GIMP-ML/gimp-plugins/DeblurGANv2)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/DeblurGANv2” (Permission denied)

Querying plug-in: '/home/roberto/GIMP-ML/gimp-plugins/gimpenv'
GIMP-Error: Unable to run plug-in "gimpenv"
(/home/roberto/GIMP-ML/gimp-plugins/gimpenv)

Failed to execute child process “/home/roberto/GIMP-ML/gimp-plugins/gimpenv” (Permission denied)

Wrong user path in windows

Describe the bug
trying to run inference on windows generates the below error
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Kritik Soman\GIMP-ML\weights\..\gimp_ml_run.pkl

It looks like the Folder path might be hard-coded or incorrectly loaded from a variable somewhere

Super-Resolution doesn't seem to work ...

Hello,

I've been trying out a super-resolution plugin and it seems it doesn't work .. Superscaling was running very long and eating a lot of resources ... Comparing that with standard gimp resize function - there's zero difference ..

do I miss something ?

I am attaching a tgz archive with results where I compare that with standard scaling in gimp (2.10.x) - filename superscaled-dpecka.tar.gz, please check README in archive ..

I am also attaching full superscaled image along with original - filename full-image-dpecka.tar.gz, please check README in archive

thanks for help and support ..

regards, dan

superscaled-dpecka.tar.gz
full-image-dpecka.tar.gz

Doesn't seem to work?

Describe the bug
I get "Layer->GIMP-ML" which only has "update", and I've run it with both 'yes' and 'no' (one downloaded over a gig of weights), but I don't get any new buttons under "GIMP-ML" (as seen in https://www.youtube.com/watch?v=kXYsWvOB4uk)

To Reproduce
I installed GIMP 2.10.24-3 from "Official Repositories (extra)"
I cloned the repo and ran the shell script as directed.
Then I added the plugins folder of the repo to preferences->folders->plugins
Then I installed "python2-gimp 2.10.24-1" from AUR
Restarted
Did the Layer->GIMP-ML->update stuff.
Restarted...
What now...?

Desktop (please complete the following information):

  • OS Version: Manjaro
  • GIMP Version: 2.10.24-3

Make inpainting available in resolutions other than 256x256

(currently using GIMP3-ML)

Is your feature request related to a problem? Please describe.
When I use inpainting, it seems the image is downscaled to 256x256, and then upscaled back to the original resolution. If the image has a higher resolution that's kind of a problem. And using super-resolution to upscale the image from 256x256 back to the original resolution makes the image lose a lot of details.

Describe the solution you'd like
For the image inpainting to happen on the image's original resolution. I know it might not be possible sometimes; when trying the same function on GIMP-ML, I had to halve the size of the image for it to work, but I'm fine with this.

Describe alternatives you've considered
If not possible for some reason, then perhaps chopping the image into 256x256 blocks and applying the inpainting to each? (maybe checking if the image isn't fully black before doing so, to avoid spending computation time on parts that are not going to be inpainted at all)

If this is not feasible for some reason, or if something I've mentioned is inaccurate, please let me know. Thanks in advance!

Python 2.7

Hi,

Python 2.7 is no more maintained. You should convert your project in Python 3.

Best,

Plug-in crashed: "super_resolution.py"

Describe the bug
In Ubuntu 20.04 (64 bit) with 8 Gb RAM the plug-in crashes with images around 1000x1000 and higher (it works fine for images around 400x400)

To Reproduce
Having a simple image (pictures or even cartoon images) and applying Super Resolution, setting Force CPU to Yes or No, the result is the same.
I get 2 error boxes, one saying that the plug-in crashed, and another one saying "Unable tu run GimpPdbProgress callback. The corresponding plug-in may have crashed"

Screenshots
Screenshot from 2020-09-27 12-02-10

Desktop (please complete the following information):

  • OS Version: Ubuntu 20.04 (64 bit) - VMWare image
  • GIMP Version: 2.10.20

GIMP 2.10.32 does not execute the GIMP-ML plugins

Describe the bug
After installation complete I saw that GIMP-ML does not show up in Layer menu.
So I run GIMP in Terminal and :
$ gimp

(gimp:77933): Gtk-WARNING **: 20:08:10.900: Não foi possível localizar a ferramenta de temas no module_path: "adwaita",

(gimp:77933): Gtk-WARNING **: 20:08:11.248: Theme directory places/128 of theme ubuntustudio-dark has no size field

(gimp:77933): Gtk-WARNING **: 20:08:11.248: Theme directory places/scalable of theme ubuntustudio-dark has no size field

Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/update.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/syncWeights.py", line 1, in
import requests
ImportError: No module named requests
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/super_resolution.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/semseg.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/monodepth.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/kmeans.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/invert.py", line 2, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/interpolateframes.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/inpainting.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/faceparse.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/facegen.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/enlighten.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/deepmatting.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/deepdenoise.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/deepdehaze.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/deepcolor.py", line 3, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/deblur.py", line 5, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/Documentos/GIMP-ML/gimp-plugins/colorpalette.py", line 3, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error

Usage:
get-pip.py install [options] [package-index-options] ...
get-pip.py install [options] -r [package-index-options] ...
get-pip.py install [options] [-e] ...
get-pip.py install [options] [-e] ...
get-pip.py install [options] <archive url/path> ...

no such option: -g
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/python-eval/python-eval.py", line 19, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/python-console/python-console.py", line 19, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/py-slice/py-slice.py", line 30, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/palette-to-gradient/palette-to-gradient.py", line 16, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/palette-sort/palette-sort.py", line 17, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/palette-offset/palette-offset.py", line 16, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/histogram-export/histogram-export.py", line 40, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/gradients-save-as-css/gradients-save-as-css.py", line 25, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/foggify/foggify.py", line 19, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/file-openraster/file-openraster.py", line 20, in
from gimpfu import *
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/colorxhtml/colorxhtml.py", line 24, in
import gimp
ImportError: could not import pygtk
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Traceback (most recent call last):
File "/home/phenry/.config/GIMP/2.10/plug-ins/remove_background.py", line 7, in
import requests
ImportError: No module named requests
gimp: LibGimpBase-- AVISO: gimp: gimp_wire_read(): error
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-bw-film" with a full menu path "/Colors/BW Film Simulation" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-selection-to-anim-image" with a full menu path "/Filters/Animation/Animators/Selection to AnimImage..." as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "diana-holga2c" with a full menu path "/Filters/Artistic/diana-holga2b" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-draw-arch" with a full menu path "/FX-Foundry/Shapes/Parametric/_Arch" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-draw-box" with a full menu path "/FX-Foundry/Shapes/Parametric/Box" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-draw-ellipse" with a full menu path "/FX-Foundry/Shapes/Parametric/Ellipse" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-gap-dup-continue" with a full menu path "/Video/Duplicate Continue" as menu label, this deprecated and will be an error in GIMP 3.0

I don't know what exactly it means, but something still feels wrong.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS Version: Ubuntu Studio 22.04.01
  • GIMP Version: 2.10.32

Gimp ML not in Layer menu, Linux Mint 21 Cinnamon

I followed all of the steps and successfully installed everything, but ml not showing up in 'layer' menu.

The only snag I saw during the process was this bit that flew by during the installation: Gimp ML/GIMP-ML/get-pip.py': [Errno 2] No such file or directory.

I copied the plug-in path, as shown in video, and was displayed in my terminal at the end of the installation process, yet no GIMP-ML.

I realize this might not be a clear enough place to start for you, but that's all I have so far. Your help and follow-up would be appreciated. Thanks a lot.

Can't load gimpenv modules

Hi,

I have installed GIMP-ML on Fedora 32/GIMP 2.10.20, according to the documentation (only used python2 instead of just python, as the latter is python3 under Fedora). It kinda worked in that the GIMP-ML menu now appears in the layer menu, but with never anything more than the possibility to update it, which I did, to no avail.

Looking at the console message when launching GIMP, all the pip installed modules fail to launch, throwing a message like "ImportError: No module named torch", despite everything having installed seemingly properly in the gimpenv subfolder of the gimp-plugins folder.

Did I miss something, or is it yet another unfixable python3 woe?

"plug-ins must be installed in subdirectories"

First, thank you for your hard work bringing this plugin to Gimp.

I followed the installation guide and got it to work. But after restarting my computer, ML no longer shows up in the menu, and when I start Gimp from the terminal I get the following messages:

Skipping potential plug-in '/home/username/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/init.py': plug-ins must be installed in subdirectories.
Skipping potential plug-in '/home/username/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/plugin_utils.py': plug-ins must be installed in subdirectories.

Any ideas what that means and how to fix it?

OS: Manjaro Linux
Gimp 2.99.12

Some filters crashed with CUDA out of memory

CUDA out of memory by many filters

Ubuntu 20.04/ Gimp 2.10

How many memory nic ram is nessesary?

I use Nvidia P1000 with 4 GB RAM.

But sametime crashed the filter

Deep Color ist working, but not oft. Then:
GIMP-ML/gimp-plugins/deepcolor.py", line 16, in createResultLayer region[:,:]=rlBytes TypeError: string is wrong length)
Restart Gimp and it working again.

My memory usage
.............................
Deep Color : 28% .
Super resolution: 89%
deep hazing 27%
semantic segmentation: 97%
kmeans 18%
facegen 99%

face parse URL error Vertificat verity failed

MonoDepth: RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/ inline_container.cc:132,...

But deep matting, enlighten, inpainting, interpolate frame: CUDA out of memory

   Deblur:          Cuda out of memory 
    RuntimeError: CUDA out of memory. Tried to allocate 852.00 MiB (GPU 0; 3.94 GiB total capacity; 2.05 GiB already allocated; 687.44 MiB free; 2.08 GiB reserved in total by PyTorch

    deep denoising   CUDA out of memory
    RuntimeError: CUDA out of memory. Tried to allocate 64.00 MiB (GPU 0; 3.94 GiB total capacity; 2.68 GiB already allocated; 71.31 MiB free; 2.69 GiB reserved in total by PyTorch)

    deep matting       -"-
    RuntimeError: CUDA out of memory. Tried to allocate 314.00 MiB (GPU 0; 3.94 GiB total capacity; 2.29 GiB already allocated; 291.44 MiB free; 2.47 GiB reserved in total by PyTorch)

Should i update my Nvidia?

Weight Update issue

Hello,

I'm installing GIMP-ML with the installation instructions.

I've downloaded the GIT, add gimp-plugins folder in the preferences and restarted GIMP.

Now, running the Weights Update (Layer > GIMP-ML > Update...), clicking on OK (with the selection Update Weights > Yes), I get the following error on GIMP python console :

Traceback (most recent call last):
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 740, in res
ponse
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 361, in run
_script
return apply(function, params)
File "C:\Program Files\GIMP 2\share\gimp\2.0\scripts\gimp-plugins\update.py",
line 25, in update
syncWeights.syncGit(baseLoc)
File "C:\Program Files\GIMP 2\share\gimp\2.0\scripts\gimp-plugins/syncWeights.
py", line 57, in syncGit
if os.path.samefile(src_file, dst_file):
AttributeError: 'module' object has no attribute 'samefile'

The status in the update window is stucked on "Downloading plugins (~0.5MB)..."

Any idea?

moveWeights.sh issues

First issue
mv: target 'CelebAMask-HQ/MaskGAN_demo/checkpoints/label2face_512p/' is not a directory mv: target 'monodepth2/models/mono+stereo_640x192/' is not a directory mv: cannot move 'weights/super_resolution/model_srresnet.pth' to 'pytorch-SRResNet/model/': Not a directory
Resolved with mkdir pytorch-SRResNet/model

Second issue
mv: target 'CelebAMask-HQ/MaskGAN_demo/checkpoints/label2face_512p/' is not a directory mv: target 'monodepth2/models/mono+stereo_640x192/' is not a directory
Resolved with mkdir -p mkdir monodepth2/models/mono+stereo_640x192

Third issue
mv: target 'CelebAMask-HQ/MaskGAN_demo/checkpoints/label2face_512p/' is not a directory
Resolved with mkdir -p CelebAMask-HQ/MaskGAN_demo/checkpoints/label2face_512p

install problem

Microsoft Windows [Version 10.0.19044.1682]
(c) Microsoft Corporation. Wszelkie prawa zastrzeżone.

(base) C:\Users\wasza>git clone https://github.com/kritiksoman/GIMP-ML.git
'git' is not recognized as an internal or external command,
operable program or batch file.

(base) C:\Users\wasza>conda install git
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: C:\Users\wasza\anaconda3

added / updated specs:
- git

The following NEW packages will be INSTALLED:

git pkgs/main/win-64::git-2.34.1-haa95532_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(base) C:\Users\wasza>git clone https://github.com/kritiksoman/GIMP-ML.git
Cloning into 'GIMP-ML'...
remote: Enumerating objects: 2457, done.
remote: Counting objects: 100% (184/184), done.
remote: Compressing objects: 100% (133/133), done.
remote: Total 2457 (delta 72), reused 154 (delta 51), pack-reused 2273 eceiving objects: 100% (2457/2457), 112.67 MiB | Receiving objects: 100% (2457/2457), 115.57 MiB | 4.64 MiB/s, done.

Resolving deltas: 100% (1176/1176), done.

(base) C:\Users\wasza>git checkout --track origin/GIMP3-ML
fatal: not a git repository (or any of the parent directories): .git

(base) C:\Users\wasza>cd C:\Users\wasza\GIMP-ML

(base) C:\Users\wasza\GIMP-ML>git checkout --track origin/GIMP3-ML
Switched to a new branch 'GIMP3-ML'
Branch 'GIMP3-ML' set up to track remote branch 'GIMP3-ML' from 'origin'.

(base) C:\Users\wasza\GIMP-ML>

(base) C:\Users\wasza\GIMP-ML>install.bat gpu
**** GIMP-ML Setup started ****
Collecting virtualenv
Downloading virtualenv-20.14.1-py2.py3-none-any.whl (8.8 MB)
|████████████████████████████████| 8.8 MB 1.7 MB/s
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
|████████████████████████████████| 461 kB ...
Requirement already satisfied: filelock<4,>=3.2 in c:\users\wasza\anaconda3\lib\site-packages (from virtualenv) (3.3.1)
Requirement already satisfied: six<2,>=1.9.0 in c:\users\wasza\anaconda3\lib\site-packages (from virtualenv) (1.16.0)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.5.2-py3-none-any.whl (14 kB)
Installing collected packages: platformdirs, distlib, virtualenv
Successfully installed distlib-0.3.4 platformdirs-2.5.2 virtualenv-20.14.1
created virtual environment CPython3.9.7.final.0-64 in 3494ms
creator CPython3Windows(dest=C:\Users\wasza\GIMP-ML\gimpenv3, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\wasza\AppData\Local\pypa\virtualenv)
added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Looking in links: https://download.pytorch.org/whl/lts/1.8/torch_lts.html
Collecting torch==1.8.1+cu111
Using cached https://download.pytorch.org/whl/lts/1.8/cu111/torch-1.8.1%2Bcu111-cp39-cp39-win_amd64.whl (3055.6 MB)
Collecting torchvision==0.9.1+cu111
Using cached https://download.pytorch.org/whl/lts/1.8/cu111/torchvision-0.9.1%2Bcu111-cp39-cp39-win_amd64.whl (1.9 MB)
Collecting torchaudio===0.8.1
Downloading torchaudio-0.8.1-cp39-none-win_amd64.whl (109 kB)
---------------------------------------- 109.3/109.3 KB 1.6 MB/s eta 0:00:00
Collecting typing-extensions
Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting numpy
Downloading numpy-1.22.3-cp39-cp39-win_amd64.whl (14.7 MB)
---------------------------------------- 14.7/14.7 MB 25.1 MB/s eta 0:00:00
Collecting pillow>=4.1.1
Downloading Pillow-9.1.0-cp39-cp39-win_amd64.whl (3.3 MB)
---------------------------------------- 3.3/3.3 MB 26.0 MB/s eta 0:00:00
Installing collected packages: typing-extensions, pillow, numpy, torch, torchvision, torchaudio
Successfully installed numpy-1.22.3 pillow-9.1.0 torch-1.8.1+cu111 torchaudio-0.8.1 torchvision-0.9.1+cu111 typing-extensions-4.2.0
ERROR: Invalid requirement: 'GIMP-ML\.'
Hint: It looks like a path. File 'GIMP-ML.' does not exist.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\wasza\GIMP-ML\gimpml_init_.py", line 1, in
from .tools.kmeans import get_kmeans as kmeans
File "C:\Users\wasza\GIMP-ML\gimpml\tools\kmeans.py", line 4, in
from scipy.cluster.vq import kmeans2
ModuleNotFoundError: No module named 'scipy'
**** GIMP-ML Setup Ended ****

(base) C:\Users\wasza\GIMP-ML>

Unable to find error_log.txt

Describe the bug
A clear and concise description of what the bug is.
When running any inference from GIMP-ML, it fails. But I cannot find a error_log.txt even after doing find / error_log.txt | grep error_log.txt
I've gotten this error on both my laptop and desktop
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'

  2. Click on '....'

  3. Scroll down to '....'

  4. See error

  5. Git clone of gimp-ml and switch branch to GIMP3-ML

  6. Install gimp development version commit bf1b405

  7. Run install.bat with no errors

  8. Add folder to plugins

  9. Attempt to do something using GIMP-ML on an image
    See error

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot_2021-08-17_15-15-53.png

Desktop (please complete the following information):

  • OS Version: [e.g. Ubuntu] Xubuntu 21.04
  • GIMP Version: [e.g. 2.10] 2.99.6 Commit bf1b405

GIMP3-ML installation does not work

GIMP3-ML installation does not work
I followed the installation procedure for the GIMP3-ML branch, and GIMP 2.10.18 does not have any changes or additional plugins. There doesn't seem to be any gimp-plugins folder generated using the install.bat file

To Reproduce

  1. Follow the GIMP3-ML install instructions
  2. Cannot find the gimp-plugins folder for GIMP3-ML

GIMP version 2.10.18
ubuntu

More intuitive inpainting

Is your feature request related to a problem? Please describe.
Currently inpainting is very difficult to use as is so please make it more availible.

Describe the solution you'd like
User actions:

  • Use any selection tool to select an area of the image to inpaint
  • Call the inpainting plugin, which warns the user if there is no selection availible or layer is empty / non rasterized.

The following actions are done by the plugin:

  • Fill the selected area with a solid color without antialiasing on a new (mask) layer;
  • (if needed) Convert the mask layer to a format the inference module understands;
  • Save image layer and mask layer as cache0.png / cache1.png;
  • Send them to the inference module which saves its output as result.png or produces an intelligible error text (The inference module should fill only pixels corresponding to non-transparent mask-layer pixels leaving the rest transparent.);
  • Replace the mask layer with result.png so the it will have only inpainted region;
  • Delete cache and inference result files.

Additional context
Currently if inpainting fails it does so silently without any intelligible error messages whatsoever, please fix it too.

Wrong bitmap pass to the AI algorithms

Description

Even if the selected layer has no alpha channel, the plugin will give no output if there are alpha pixels in the image.

Steps to reproduce

  1. Open any image with GIMP.
  2. Remove the alpha channel of the layer if it has one.
  3. Scale down the layer 2x. (1024x1024 will be 512x512)
    3.1. You will notice an alpha space around the layer.
  4. With the scaled layer selected, apply it a GIML plugin.
    4.1. MonoDepth is a quick test.

What happened?

  • No output for any of the available GIML plugins.
  • If there is an output, will be a duplicate of the selected layer.

What should happen?

There should be a new layer output of the plugin with the desired effects.

Workaround

  1. Select the layer.
  2. File > Create > From Clipboard
  3. Apply the plugin.

Versioning

 - OS Version: MX Linux 19.2 amd64
 - GIMP Version: 2.10.20

Permission denied

After following the install instructions, after opening gimp (same when running sudo gimp) on ubuntu:

`gimp screenshot.png
Gtk-Message: 16:31:03.205: Failed to load module "canberra-gtk-module"

(gimp:4087): GLib-GObject-WARNING **: 16:31:03.210: g_object_set_is_valid_property: object class 'GeglConfig' has no property named 'cache-size'
GIMP-Error: Unable to run plug-in "DeblurGANv2"
(/home/raymond/GIMP-ML/gimp-plugins/DeblurGANv2)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/DeblurGANv2” (Permission denied)

GIMP-Error: Unable to run plug-in "__MACOSX"
(/home/raymond/GIMP-ML/gimp-plugins/__MACOSX)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/__MACOSX” (Permission denied)

GIMP-Error: Unable to run plug-in "pytorch-SRResNet"
(/home/raymond/GIMP-ML/gimp-plugins/pytorch-SRResNet)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/pytorch-SRResNet” (Permission denied)

GIMP-Error: Unable to run plug-in "mkdir"
(/home/raymond/GIMP-ML/gimp-plugins/mkdir)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/mkdir” (Permission denied)

GIMP-Error: Unable to run plug-in "gimpenv"
(/home/raymond/GIMP-ML/gimp-plugins/gimpenv)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/gimpenv” (Permission denied)

GIMP-Error: Unable to run plug-in "monodepth2"
(/home/raymond/GIMP-ML/gimp-plugins/monodepth2)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/monodepth2” (Permission denied)

GIMP-Error: Unable to run plug-in "face-parsing.PyTorch"
(/home/raymond/GIMP-ML/gimp-plugins/face-parsing.PyTorch)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/face-parsing.PyTorch” (Permission denied)

GIMP-Error: Unable to run plug-in "neural-colorization"
(/home/raymond/GIMP-ML/gimp-plugins/neural-colorization)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/neural-colorization” (Permission denied)

/home/raymond/GIMP-ML/gimp-plugins/deeplabv3: 1: /home/raymond/GIMP-ML/gimp-plugins/deeplabv3: ���: not found
/home/raymond/GIMP-ML/gimp-plugins/deeplabv3: 2: /home/raymond/GIMP-ML/gimp-plugins/deeplabv3: Syntax error: "(" unexpected

(gimp:4087): LibGimpBase-WARNING **: 16:31:03.581: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "CelebAMask-HQ"
(/home/raymond/GIMP-ML/gimp-plugins/CelebAMask-HQ)

Failed to execute child process “/home/raymond/GIMP-ML/gimp-plugins/CelebAMask-HQ” (Permission denied)`

MonoDepth resolution

The MonoDepth filter is super handy, but it seems it operates at a very low resolution and then resize the new layer, making it quite blurry, and thus not so usable.

Could it be possible to add a parameter in order to increase its resolution?

Not all plugins are shown in GIMP after unsuccessful installation

Describe the bug

I have installed GIMP-ML as the main README.MD file describes. After all, JUST these plugins are shown:

Layer > GIML-ML >
deeplabv3...
facegen...
faceparse...
kmeans...

I can't infer exactly how many plugins this package provide because de Manual, my menu, and the YouTube channel are not homogeneous.

Steps to reproduce

  1. Follow the README.MD file installations steps.
  2. I did receive these terminal output errors.
  3. Open GIMP.
  4. Expand the Layer > GIML-ML menu.

Screenshots

image

Desktop:

 - OS Version: MX Linux 19.2
 - GIMP Version: 20.10.20

Getting exec format error for all plugins

Installed the plugin per instructions. Ran the install script. PIP installed packages w/o any issues.

  • OS Version: Ubuntu 20.10
  • GIMP Version: 2.10.18-1build2
~/git/GIMP-ML/gimp-plugins$ gimp
GIMP-Error: Unable to run plug-in "update.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/update.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/update.py” (Exec format error)

GIMP-Error: Unable to run plug-in "syncWeights.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/syncWeights.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/syncWeights.py” (Exec format error)

GIMP-Error: Unable to run plug-in "super_resolution.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/super_resolution.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/super_resolution.py” (Exec format error)

GIMP-Error: Unable to run plug-in "semseg.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/semseg.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/semseg.py” (Exec format error)

GIMP-Error: Unable to run plug-in "monodepth.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/monodepth.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/monodepth.py” (Exec format error)

GIMP-Error: Unable to run plug-in "kmeans.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/kmeans.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/kmeans.py” (Exec format error)

GIMP-Error: Unable to run plug-in "invert.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/invert.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/invert.py” (Exec format error)

GIMP-Error: Unable to run plug-in "interpolateframes.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/interpolateframes.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/interpolateframes.py” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "faceparse.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/faceparse.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/faceparse.py” (Exec format error)

GIMP-Error: Unable to run plug-in "facegen.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/facegen.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/facegen.py” (Exec format error)

GIMP-Error: Unable to run plug-in "enlighten.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/enlighten.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/enlighten.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deepmatting.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepmatting.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepmatting.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deepdenoise.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepdenoise.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepdenoise.py” (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "deepcolor.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deepcolor.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deepcolor.py” (Exec format error)

GIMP-Error: Unable to run plug-in "deblur.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/deblur.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/deblur.py” (Exec format error)

GIMP-Error: Unable to run plug-in "colorpalette.py"
(/home/muksihs/git/GIMP-ML/gimp-plugins/colorpalette.py)

Failed to execute child process “/home/muksihs/git/GIMP-ML/gimp-plugins/colorpalette.py” (Exec format error)

The "pip install enum" command fails.

Describe the bug
A clear and concise description of what the bug is.

The instruction in installGimpML.sh "python -m pip install enum"
and the alternate instruction to use "pip install enum" found on https://github.com/kritiksoman/GIMP-ML/blob/master/INSTALLATION.md

See: "[5] Activate the environment and install torchvision, "opencv-python<=4.3", numpy, future, torch, scipy, typing, enum, pretrainedmodels, requests using pip."

The installation of enum fails.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

From the command line: pip install enum
Here is the error message:

Collecting enum
Using cached enum-0.4.7.tar.gz (20 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gyuvnxr4/enum/setup.py'"'"'; file='"'"'/tmp/pip-install-gyuvnxr4/enum/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-gyuvnxr4/enum/pip-egg-info
cwd: /tmp/pip-install-gyuvnxr4/enum/
Complete output (33 lines):
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 5, in
import distutils.core
File "/usr/lib/python3.8/distutils/core.py", line 16, in
from distutils.dist import Distribution
File "/usr/lib/python3.8/distutils/dist.py", line 9, in
import re
File "/usr/lib/python3.8/re.py", line 145, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 62, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.8/re.py", line 145, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 5, in <module>
    import distutils.core
  File "/usr/lib/python3.8/distutils/core.py", line 16, in <module>
    from distutils.dist import Distribution
  File "/usr/lib/python3.8/distutils/dist.py", line 9, in <module>
    import re
  File "/usr/lib/python3.8/re.py", line 145, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS Version: [e.g. Ubuntu]
  • GIMP Version: [e.g. 2.10]

OS: Ubuntu 20.04
GIMP: GNU Image Manipulation Program version 2.10.24
pip: pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

CUDA out of memory with super-resolution plugin

System: Kubuntu linux - GTX 960 4GB - Gimp 2.10.18

If I apply Super-resolution plugin to any image larger than about 600x600 px it quickly fills up the 4GB of vRAM and I get the following error:

An error occurred running python-fu-super-resolution
RuntimeError: CUDA out of memory. Tried to allocate 66.00 MiB (GPU 0; 3.95 GiB total capacity; 3.10 GiB already allocated; 53.38 MiB free; 3.12 GiB reserved in total by PyTorch)
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 740, in response
    dialog.res = run_script(params)
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
    return apply(function, params)
  File "/home/yafu/GIMP-ML/gimp-plugins/super_resolution.py", line 100, in super_resolution
    cpy = getnewimg(imgmat,scale)
  File "/home/yafu/GIMP-ML/gimp-plugins/super_resolution.py", line 56, in getnewimg
    HR_4x = model(im_input)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/yafu/GIMP-ML/gimp-plugins/pytorch-SRResNet/srresnet.py", line 61, in forward
    out = self.residual(out)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/container.py", line 100, in forward
    input = module(input)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/yafu/GIMP-ML/gimp-plugins/pytorch-SRResNet/srresnet.py", line 18, in forward
    output = self.in2(self.conv2(output))
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/modules/instancenorm.py", line 49, in forward
    self.training or not self.track_running_stats, self.momentum, self.eps)
  File "/home/yafu/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/nn/functional.py", line 1685, in instance_norm
    use_input_stats, momentum, eps, torch.backends.cudnn.enabled
RuntimeError: CUDA out of memory. Tried to allocate 66.00 MiB (GPU 0; 3.95 GiB total capacity; 3.10 GiB already allocated; 33.44 MiB free; 3.12 GiB reserved in total by PyTorch)

As a request derived from this problem, as vRAM capacity can be very varied depending on the users, it would be great if the user could choose between CPU or GPU in the plugins that autodetect CUDA to work.
Thanks!

Install problems

Hello I wanted to give a try to GIMP-ML but I can't see the menu. I get this error during install

    ERROR: Command errored out with exit status 1:
     command: /home/emrah/Code/GIMP-ML/gimp-plugins/gimpenv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-54icbb_9/enum/setup.py'"'"'; __file__='"'"'/tmp/pip-install-54icbb_9/enum/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-54icbb_9/enum/pip-egg-info
         cwd: /tmp/pip-install-54icbb_9/enum/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/emrah/Code/GIMP-ML/gimp-plugins/gimpenv/lib/python3.7/site-packages/setuptools/__init__.py", line 5, in <module>
        import distutils.core
      File "/home/emrah/anaconda3/lib/python3.7/distutils/core.py", line 16, in <module>
        from distutils.dist import Distribution
      File "/home/emrah/anaconda3/lib/python3.7/distutils/dist.py", line 9, in <module>
        import re
      File "/home/emrah/anaconda3/lib/python3.7/re.py", line 143, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Maybe it confuses due to other packages in my system. Thanks

No menu entry for GIMP-ML on Debian 10

Steps:

  1. Cloned repo.
  2. Added gimp-plugins to Preferences -> Folders -> Plug-ins and close GIMP.
  3. Downloaded weights.zip and save it in gimp-plugins folder.
  4. Runned:
bash moveWeights.sh
bash installGimpML-ubuntu.sh

I have no errors during scripts run. But no menu entry in GIMP menu like in screenshot in readme.

Debian 10
GIMP v2.10.8

Please let us choose to work with CPU when CUDA is detected.

Hi.
Currently plugins autodetect CUDA and they do not allow us to choose to work with CPU. The problem is that plugins make excessive use of vRAM, and most of them fail with out of memory problems even with small images (400x400px) on 4GB vRAM card. Some of them like super-resolution plugin return an error message when out of memory. But other plugins like "deep-denoising" don't return an error message but they don't work unless you are working with very small images.
Thank you.

Do not use Google Drive to host dependencies

##########

Downloading deepmatting(~108.0MB)...
Cached Downloading: /home/szm/GIMP-ML/weights/deepmatting/stage1_sad_57.1.pth
Access denied with the following error:

 	Cannot retrieve the public link of the file. You may need to change
	the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser:

	https://drive.google.com/uc?id=1-sS7sYCaVJJhH6Z3AZTTd3MGG6xwMT61 

Access denied with the following error:

 	Cannot retrieve the public link of the file. You may need to change
	the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser:

	https://drive.google.com/uc?id=1-sS7sYCaVJJhH6Z3AZTTd3MGG6xwMT61 

Use Git LFS.

Colorize input array shape error

When running "colorize" on an image after installing, got the following as error printout in terminal in ubuntu:

Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 851, in _run res = apply(func, params[1:]) File "/home/raymond/GIMP-ML/gimp-plugins/colorize.py", line 92, in colorize cpy=getcolor(imgmat) File "/home/raymond/GIMP-ML/gimp-plugins/colorize.py", line 39, in getcolor img_yuv = rgb2yuv(p) File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/skimage/color/colorconv.py", line 1611, in rgb2yuv return _convert(yuv_from_rgb, rgb) File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/skimage/color/colorconv.py", line 598, in _convert arr = _prepare_colorarray(arr) File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/skimage/color/colorconv.py", line 156, in _prepare_colorarray raise ValueError(msg) ValueError: the input array must be have a shape == (.., ..,[ ..,] 3)), got (854, 1440, 12)

'Image' object has no attribute 'get_active_layer'

Describe the bug
I have successfully installed the GIMP developer version 2.99.14 and the plugins, I can see the plugins in the Layer Menu. But whenever I try to run any of the plugins, the CMD window returns:

(gimp-2.99.exe:47212): GLib-GIO-WARNING **: 10:57:39.767: win32 session dbus binary not found
set device 'System Aggregated Pointer' to mode: disabled
Skipping potential plug-in 'C:\Users\Guilherme\GIMP-ML\gimpenv3\Lib\site-packages\gimpml\plugins\plugin_utils.py': plug-ins must be installed in subdirectories.
Skipping potential plug-in 'C:\Users\Guilherme\GIMP-ML\gimpenv3\Lib\site-packages\gimpml\plugins\__init__.py': plug-ins must be installed in subdirectories.

jpeg-load: found Exif block (14993 bytes)
Traceback (most recent call last):
  File "C:\Users\Guilherme\GIMP-ML\gimpenv3\Lib\site-packages\gimpml\plugins\enlighten\enlighten.py", line 171, in run
    result = enlighten(
  File "C:\Users\Guilherme\GIMP-ML\gimpenv3\Lib\site-packages\gimpml\plugins\enlighten\enlighten.py", line 72, in enlighten
    result_layer = result.get_active_layer()
AttributeError: 'Image' object has no attribute 'get_active_layer'

(enlighten.py:42940): LibGimp-WARNING **: 10:58:15.761: gimp_procedure_run: no return values, shouldn't happen
C:\Users\Guilherme\GIMP-ML\gimpenv3\Lib\site-packages\gimpml\plugins\enlighten\enlighten.py:230: Warning: g_error_new: assertion 'domain != 0' failed
  Gimp.main(Enlighten.__gtype__, sys.argv)
gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 1 was refed by plug-in, it MUST NOT do that!
gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 2 was refed by plug-in, it MUST NOT do that!
gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 2 was refed by plug-in, it MUST NOT do that!

The problem happens when result.get_active_layer() is called:

result = Gimp.file_load( Gimp.RunMode.NONINTERACTIVE, Gio.file_new_for_path(os.path.join(weight_path, "..", "cache.png")), ) result_layer = result.get_active_layer()

What could be the issue? Can it be a conflict between the Image library and Gimp library?

Desktop (please complete the following information):

  • OS Version: Windows 11
  • GIMP Version: 2.99.14

Fails to load on Arch Linux

It doesn’t work for me on Arch Linux with Gimp 2.10.20. After the setup routine and enabling the new path in the plug-in settings, all I can get is this output:

$ gimp

(gimp:64872): Gtk-WARNING **: 16:48:20.054: Unable to locate theme engine in module_path: "adwaita",
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "deepdenoise.py"
(/home/maximilian/.gimp-plugins/deepdenoise.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/deepdenoise.py? (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "deepmatting.py"
(/home/maximilian/.gimp-plugins/deepmatting.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/deepmatting.py? (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "faceparse.py"
(/home/maximilian/.gimp-plugins/faceparse.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/faceparse.py? (Exec format error)

GIMP-Error: Unable to run plug-in "invert.py"
(/home/maximilian/.gimp-plugins/invert.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/invert.py? (Exec format error)

gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "monodepth.py"
(/home/maximilian/.gimp-plugins/monodepth.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/monodepth.py? (Exec format error)

GIMP-Error: Unable to run plug-in "super_resolution.py"
(/home/maximilian/.gimp-plugins/super_resolution.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/super_resolution.py? (Exec format error)

GIMP-Error: Unable to run plug-in "syncWeights.py"
(/home/maximilian/.gimp-plugins/syncWeights.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/syncWeights.py? (Exec format error)

GIMP-Error: Unable to run plug-in "update.py"
(/home/maximilian/.gimp-plugins/update.py)

Failed to execute child process ?/home/maximilian/.gimp-plugins/update.py? (Exec format error)

Installed python2-virtualenv, python-virtualenv, python-virtualenvwrapper and python2-pip and python-pip.

CUDA out of memory

The super-resolution module crash with this error :

RuntimeError: CUDA out of memory. Tried to allocate 24.00 MiB (GPU 0; 1.95 GiB total capacity; 955.34 MiB already allocated; 5.38 MiB free; 1.01 GiB reserved in total by PyTorch)

Maybe add the GPU memory requirement in the README

Deeplab not a directory error

When I run deeplabv3 on a jpg on ubuntu:

Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 851, in _run
res = apply(func, params[1:])
File "/home/raymond/GIMP-ML/gimp-plugins/deeplabv3.py", line 71, in deeplabv3
cpy=getSeg(imgmat)
File "/home/raymond/GIMP-ML/gimp-plugins/deeplabv3.py", line 16, in getSeg
model = torch.load(baseLoc+'deeplabv3/deeplabv3+model.pt')
File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/serialization.py", line 525, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/serialization.py", line 212, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/raymond/GIMP-ML/gimp-plugins/gimpenv/lib/python2.7/site-packages/torch/serialization.py", line 193, in init
super(_open_file, self).init(open(name, mode))
IOError: [Errno 20] Not a directory: '/home/raymond/GIMP-ML/gimp-plugins/deeplabv3/deeplabv3+model.pt'

GIMP cannot import GIMP-ML

Describe the bug

gimp
This is a development version of GIMP.  Debug messages may appear here.

set device 'Logitech G102 Prodigy Gaming Mouse Keyboard' to mode: disabled
set device 'Logitech G102 Prodigy Gaming Mouse' to mode: disabled
set device 'Razer Razer BlackWidow Chroma V2' to mode: disabled
set device 'Virtual core XTEST pointer' to mode: disabled
set device 'Razer Razer BlackWidow Chroma V2 Keyboard' to mode: disabled
Skipping potential plug-in '/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/__init__.py': plug-ins must be installed in subdirectories.
Skipping potential plug-in '/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/plugin_utils.py': plug-ins must be installed in subdirectories.
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/monodepth/monodepth.py", line 204, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'MonoDepth' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/inpainting/inpainting.py", line 308, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'InPainting' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/enlighten/enlighten.py", line 203, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Enlighten' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/deblur/deblur.py", line 205, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Deblur' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/matting/matting.py", line 223, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Matting' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/detectobjects/detectobjects.py", line 196, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'DetectObjects' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/colorpalette/colorpalette.py", line 47, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'ColorPalette' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/superresolution/superresolution.py", line 283, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'SuperResolution' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/filterfolder/filterfolder.py", line 221, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'FilterFolder' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/denoise/denoise.py", line 202, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Denoise' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/coloring/coloring.py", line 253, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Coloring' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/kmeans/kmeans.py", line 235, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Kmeans' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/semseg/semseg.py", line 203, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'SemSeg' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/faceparse/faceparse.py", line 204, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'FaceParse' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/dehaze/dehaze.py", line 204, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Dehaze' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/canny/canny.py", line 238, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Canny' object has no attribute 'set_translation_domain'
Traceback (most recent call last):
  File "/home/szm/gimpenv3/lib/python3.10/site-packages/gimpml/plugins/interpolation/interpolation.py", line 279, in do_query_procedures
    self.set_translation_domain(
AttributeError: 'Interpolation' object has no attribute 'set_translation_domain'
luajit: .../org.gimp.extension.goat-exercises/goat-exercise-lua.lua:22: module 'lgi' not found:
	no field package.preload['lgi']
	no file './lgi.lua'
	no file '/usr/share/luajit-2.1.0-beta3/lgi.lua'
	no file '/usr/local/share/lua/5.1/lgi.lua'
	no file '/usr/local/share/lua/5.1/lgi/init.lua'
	no file '/usr/share/lua/5.1/lgi.lua'
	no file '/usr/share/lua/5.1/lgi/init.lua'
	no file './lgi.so'
	no file '/usr/local/lib/lua/5.1/lgi.so'
	no file '/usr/lib/lua/5.1/lgi.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: in function 'require'
	.../org.gimp.extension.goat-exercises/goat-exercise-lua.lua:22: in main chunk
	[C]: at 0x563cc50cdcd0
GIMP-WARNING: gimp: gimp_wire_read(): error

/usr/bin/env: ‘gjs’: No such file or directory
GIMP-WARNING: gimp: gimp_wire_read(): error

To Reproduce

Follow the install instructions on Arch Linux (GIMP 2.99).

Plugins install but fail in GIMP 2.99.12 on Windows 10

I managed to get GIMP-ML installed in GIMP 2.99.12 on Windows 10. The weights were downloaded and installed manually.
The plugins load and appear in the layers menu but fail upon first use. I tried several of the plugins with similar results, here is the debug output for the deblur and superresolution plugins:

Traceback (most recent call last):
File "C:\GIMP-ML\gimpml\plugins\deblur\deblur.py", line 172, in run
result = deblur(
File "C:\GIMP-ML\gimpml\plugins\deblur\deblur.py", line 58, in deblur
with open(os.path.join(weight_path, "..", "gimp_ml_run.pkl"), "wb") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Kritik Soman\GIMP-ML\weights\..\gimp_ml_run.pkl'

(deblur.py:6540): LibGimp-WARNING **: 01:13:10.440: gimp_procedure_run: no return values, shouldn't happen
C:\GIMP-ML\gimpml\plugins\deblur\deblur.py:232: Warning: g_error_new: assertion 'domain != 0' failed
Gimp.main(Deblur.gtype, sys.argv)
gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 2 was refed by plug-in, it MUST NOT do that!
gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 22 was refed by plug-in, it MUST NOT do that!

The modal dialog message was the same for both attempts: Calling error for procedure 'file-png-save':
Could not open 'C:\Users\Kritik Soman\GIMP-ML\cache.png' for writing: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.