Python Plug-in for GIMP3: exec_raw_forge_g3


I have bug-fixed this plug-in (ver. 0.1a). If you already downloaded this plug-in, please re-download it.

Hi,

I made a new GIMP3 plug-in which enables users to use RawForge and ART in conjunction. RawForge is the cli version of FOSS AI denoiser RawRefinery and is available in Linux, Mac OS and Windows, where RawRefinery is not usable on Windows yet.

@agriggio published the instructions of using RawForge and ART together in the site below.

https://artraweditor.github.io/AItools

However his method uses Posix shell script and Zenity, so it is difficult to apply it to Windows environment.

My plug-in replaces the shell script and Zenity to enable using them on Windows, however it is also usable on Linux and Mac OS. In other words, it may be said that using GIMP3 as an image processing platform, my plug-in enables the integration of RawForge and ART.

How to install it

  1. Install RawForge following the instructions below.

https://github.com/rymuelle/RawForge
For Windows users, the instructions are below.

  1. Install ART, if you don’t have installed it yet.
  2. Download my plug-in from here, and install it in your GIMP3 plug-in directory.
  1. Install Adobe DNG Converter, if you want to decode Nikon HE compressed Raw files. In Linux install it using wine.
  2. Setup config.ini file in the plug-in directory according to your environment.
    Default parameters are below.

[ART directory path on Windows]

COMMAND_NT;C:\\Program Files\\ART\\1.26.1

# Do not add ".exe" for COMMAND_NT

[ART directory path on Linux]

COMMAND_LINUX;/home/username/Programs/ART

# If your ART is Flatpak version...

#COMMAND_LINUX;flatpak run us.pixls.art.ART

[ART directory path on Mac OS]

COMMAND_DARWIN;/Applications/ART.app/Contents/MacOS

[Python path for rawforge]

PYTHON;/home/username/scripts/rawforge/.venv/bin/python

[model for rawforge]

MODEL;TreeNetDenoise

#Deblur,DeepSharpen,TreeNetDenoise,TreeNetDenoiseHeavy,TreeNetDenoiseLight,TreeNetDenoiseSuperLight

[device for rawforge]

DEVICE;cuda

# cuda, mps, cpu

[lumi noise for rawforge]

LUMI;0.0

# 0.0 - 1.0

[chroma noise for rawforge]

CHROMA;0.0

# 0.0 - 1.0

[Temp file format]

TMP_FILE_FORMAT;png

# The value of TMP_FILE_FORMAT must be tiff or png

[Temp file bit depth]

TMP_FILE_BITDEPTH;16

# The value of TMP_FILE_BITDEPTH must be 8, 16 or 32

[Acceptable file extensions]

EXTENSIONS;.dng .DNG .cr .CR .nef .NEF .nrf .NRF .arw .ARW .sr .SR .raf .RAF .orf .ORF .rw2 .RW2 .rwl .RWL .pef .PEF .x3f .X3F .tif .TIF

[Decode Nikon HE Raw]

NIKON_HE;False

# The value of NIKON_HE must be True or False

# Following parameters are needed if only NIKON_HE=True

[Exiftool path on Mac OS]

EXIF_DARWIN;/opt/homebrew/bin/exiftool

[DNG Converter path on Windows]

DNG_NT;C:\\Program Files\\Adobe\\Adobe DNG Converter\\Adobe DNG Converter.exe

[DNG Converter path on Linux]

DNG_LINUX;/home/yohnishi/.wine/drive_c/Program Files/Adobe/Adobe DNG Converter/Adobe DNG Converter.exe

[DNG Converter path on Mac OS]

DNG_DARWIN;/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter

[Delete temp. dng file]

DELETE_DNG;True

# The value of DELETE_DNG must be True or False

—---------------

[Python path for rawforge] is python interpreter path of virtual environment for RawForge.

[model for rawforge] is the model name used by RawForge. If your system has no GPU, it is recommended to use reeNetDenoiseLight or TreeNetDenoiseSuperLight.

[device for rawforge] specifies RawForge executing device. cuda for NVIDIA GPU, mps for Apple ARM chip PCs and cpu for no GPU PCs.

[lumi noise for rawforge] and [chiroma noise for rawforge] specifies the amount of noise to add back to the denoised result. See following posts.

https://discuss.pixls.us/t/introducing-a-new-foss-raw-image-denoiser-rawrefinery-and-seeking-testers/54778/68

If you want to use Nikon HE compressed Raw files, set [Decode Nikon HE Raw] True.

Start the plug-in

After the installation, users start this plug-in from [File] > [Apply RawForge to Raw and import it with ART…] in GIMP3 menu. If you use GIMP3 Flatpak version, start GIMP3 with “–socket=session-bus” option to allow it to communicate with ART.

Select target file.

Now denoising.

After denoising, ART UI will appear.

Closing ART UI, edited image by ART will be imported in GIMP3.

2 Likes

Denoising sample / model: TreeNetDenoise

before denoising

denoised

before denoising

denoised

1 Like

This is really cool! Is there a place I can link to share this with people?

Thank you!

Only here, now.