As a note, this is a command line only version, and it’s great for integration into darktable. The changes will be propagated to the GUI version, but only after I finish the ONNX part I think.
Easiest method at the moment is pip. You have a couple options, but I recommend the pipx option as you can then use it to integrate in to darktable later on if you wish using the scripts linked early in this thread.
- If you want a minimal install (assuming python and pip are already installed), I’d do something like this in your terminal (I’ve tested both in python 3.12 on the Mac laptop I’m typing this out on):
python3 -m venv rawforge
source ./rawforge/bin/activate
pip install rawforge
rawforge TreeNetDenoise <input>.CR3 <output>.dng --cfa
Line, by line, we create a python3 virtual environment (venv), start the environment, pip install, and then run the model on an image. Of course, one could also use conda or another venv manager.
The disadvantage is that it requires the venv to be active to run. To fix that, you could pip install rawforge outside of a venv (just omit the first two lines), but that is often undesirable as it could conflict with other python applications.
Better would be to install with pipx.
- Install with pipx.
pipx works like pip, but it automatically installs the software in a venv and makes the command available system wide. All you have to do is first install pipx:
brew install pipx
pipx ensurepath
Then, you need to close and reopen terminal and install with pipx:
pipx install rawforge
I should print out:
(base) ryanmueller@Mac ~ % pipx install rawforge
installed package rawforge 0.1.0, installed using Python 3.12.9
These apps are now globally available
- rawforge
done! ✨ 🌟 ✨
This is preferable because the command is then globally available, meaning you can easily use it without setting the venv up each time.
In the future, I will provide dmgs, but what I learned with my first release is that I need to get the program mostly figured out before I do that, as each time I make some change it causes a lot of downstream work.
The good news is once it’s installed, you can get any updates easily with pipx.
Let me know if that works for you, and thanks for trying it out.