A Windows WPF application that provides a user-friendly interface for batch processing Canon RAW CR3 photos using RawForge AI denoising models.
- .NET 8.0 Runtime (Windows)
- RawForge - You must install RawForge from: https://github.com/rymuelle/RawForge
The application will search for rawforge.exe in:
- Your system PATH
- Common Python installation directories:
C:\Users\[username]\AppData\Roaming\Python\Python3xx\Scripts\C:\Users\[username]\AppData\Local\Programs\Python\Python3xx\Scripts\
Before running the application, you need to configure the following:
File: MainWindow.xaml.cs - Line 16
private const string RootFolder = @"C:\Fotos Import";Change C:\Fotos Import to the folder containing your photo folders. The app will scan subdirectories for Canon CR3 files.
Expected folder structure:
C:\Fotos Import\
├── Trip-2024-Summer\
│ ├── IMG_0001.CR3
│ ├── IMG_0001.jpg
│ ├── IMG_0002.CR3
│ ├── IMG_0002.jpg
│ └── Denoised\ (auto-created)
│ ├── IMG_0001.dng
│ └── IMG_0002.dng
├── Trip-2024-Winter\
│ └── ...
File: MainWindow.xaml.cs - Line 17
private const string DenoiseFolder = "Denoised";The app creates this subfolder within each directory to store denoised DNG files. Change if desired.
Ensure RawForge is installed and rawforge.exe is accessible via:
- System PATH, OR
- One of the default Python Scripts locations (automatically checked)
Run rawforge --help in PowerShell/Command Prompt to verify installation.
The heart of the application, containing:
- Folder browser - Lists all subdirectories in the root folder
- File list - Shows CR3 files with thumbnails from paired JPG files
- Processing queue - Users select files to denoise
- Batch processor - Executes RawForge with customizable parameters
- GPU monitoring - Tracks NVIDIA GPU temperature and pauses processing if overheating
Represents a single CR3 file with:
- File name and full path
- Thumbnail image (loaded from paired JPG)
- "Already denoised" status (checks if DNG exists in output folder)
Standard WPF application entry point.
The application supports multiple RawForge denoising models:
- TreeNetDenoiseHeavy - Best quality for Bayer-pattern sensors
- TreeNetDenoise - Standard denoise for Bayer sensors
- TreeNetDenoiseLight - Faster, lighter denoise for Bayer sensors
- TreeNetDenoiseSuperLight - Fastest option for Bayer sensors
- Deblur - Removes motion blur from Bayer images
- DeepSharpen - Enhances sharpness
- TreeNetDenoiseXTrans - Specialized for Fujifilm XTrans sensors
- RestormerXTrans - Advanced XTrans denoising
- JDD256 - Joint Demosaic & Denoise (256px tiles)
- JDD - Joint Demosaic & Denoise (768px tiles)
- Tile Size (128–1024 px) - Larger tiles = better quality but higher memory usage
- Tile Overlap (10%–50%) - Higher overlap reduces edge artifacts
- Device - Auto / CUDA / CPU / MPS
- CFA - Color filter array handling
- Clip Highlights - Prevent blown-out highlights
- Affine - Apply affine transformations
- ONNX - Use ONNX Runtime for inference
- Lumi Slider - Adjust luminance denoising strength
- Chroma Slider - Adjust color denoising strength
- Custom conditioning parameters can be passed to RawForge
- Monitors NVIDIA GPU temperature via
nvidia-smi - Pauses processing if GPU exceeds 85°C
- Resumes when temperature drops below 80°C
- Prevents thermal throttling and hardware damage
- Displays RawForge output in real-time
- Shows progress bar during batch processing
- Handles terminal-style progress updates (carriage returns)
- Automatically loads JPG thumbnails (same filename as CR3)
- Displays visual preview of each image
- Marks already-denoised files with a badge
# Clone or open the project in Visual Studio 2022
# The project uses .NET 8.0 with WPF
# Build
dotnet build RawForgeUI.csproj
# Run
dotnet run --project RawForgeUI.csprojOr open RawForgeUI.csproj in Visual Studio 2022+ and press F5.
- Configure Paths - Edit
MainWindow.xaml.csto set your photo folder - Launch App - Run
RawForgeUI.exe - Select Folder - Click a folder in the left panel to see CR3 files
- Select Files - Add files to queue using "Add Selected" or "Add All" buttons
- Configure Options - Choose denoise model, tile size, device, etc.
- Start Processing - Click "Start" button
- Monitor Progress - Watch log output and progress bar
- Review Output - Denoised DNG files appear in
Denoised\subfolder
- "rawforge.exe not found" - Install RawForge or add it to PATH
- "Root folder not found" - Check the
RootFolderpath in code - No thumbnails - Ensure JPG files have the same name as CR3 files (e.g.,
IMG_0001.CR3andIMG_0001.jpg) - GPU overheating - Reduce tile size or use a device other than CUDA
RawForgeUI/
├── App.xaml # Application resources
├── App.xaml.cs # Application bootstrap
├── MainWindow.xaml # UI layout (WPF)
├── MainWindow.xaml.cs # Main logic & event handlers
├── CrFile.cs # Data model for CR3 files
├── RawForgeUI.csproj # Project configuration
├── RawForgeUI.ico # Application icon
├── RunRawforge.cmd # Helper batch script
└── bin/Release/ # Compiled binaries
- RawForge installed and in PATH (or default Python directory)
- Source photo path configured in
MainWindow.xaml.cs(line 16) - CR3 files and matching JPG thumbnails in source folder
- GPU drivers up to date (for NVIDIA denoising)
- Windows .NET 8.0 Runtime installed
- Sufficient disk space for DNG output files
- Data binding for real-time UI updates
- Observable collections for queue management
INotifyPropertyChangedfor thumbnail updates
- Non-blocking I/O for file operations
- GPU temperature checks run on background threads
- UI updates marshaled back to main thread via
Dispatcher
- Character-by-character reading of RawForge output
- Handles carriage returns (
\r) for in-place terminal progress updates - Prevents UI thread blocking during long-running processes
See LICENSE file in the project root.
- RawForge - AI-powered RAW image denoising engine
- Built with .NET 8.0 and WPF
For issues with RawForge itself, visit: https://github.com/rymuelle/RawForge
For issues with this UI application, review the error messages in the log window.