The CLI is once again completely broken in the new release (as was in 1.3.3, 1.4.0, 2.0.0, and so on).
I did a complete fresh install, all preferences default - only “CPU” only is selected in the prefs.
Steps to Reproduce:
Open Windows Command Prompt
cd C:\Program Files\Topaz Labs LLC\Topaz Photo AI
tpai c:\Windows\Web\4K\Wallpaper\Windows\img0_1024x768.jpg -o c:\Projects
(where you would replace C:\Projects with a writable folder that actually exists on your machine)
Checking if log directory should be pruned. Currently have 6 log files.
Log file count is within bounds
Logger initialized
Change the following settings within the preferences panel in the app
Application settings:
Overwrite Files: 0
Recurse Directories: 0
Input File Count: 1
Output Folder: c:\Projects
Output Format: Preserve
Jpeg quality: 95
Png compression level: 2
Tiff compression: none
Tiff bit depth: 16
Autopilot settings:
Auto apply filters: true (Forced)
Face Detection: auto
Face Strength: 80
Face Parts: hair,necks
Sharpen Model: Auto
Sharpen Levels: medium,high
Sharpen Strength: 3
Upscaling Model: Auto
Auto Upscaling Type: auto
Auto Upscaling Factor: 2
Upscaling Denoise Strength: 3
Upscaling Deblur Strength: 3
Resolution Unit: 1
Resolution: -1
Remove Noise (non-RAW) Model: Auto
Remove Noise (non-RAW) Levels: medium,high,severe
Remove Noise (non-RAW) Strength: 3
Remove Noise (RAW) Model: Auto
Remove Noise (RAW) Levels: low,medium,high,severe
Remove Noise (RAW) Strength: 3
Remove Noise vs Sharpen: auto
Default Subject Type: Subject
ExifTool loaded!
Warning: failed to load Config_git.pl, something strange about this perl…
[ WARN:0@3,018] global C:.conan\918058\1\source_subfolder\modules\core\src\matrix_expressions.cpp (1334) cv::MatOp_AddEx::assign OpenCV/MatExpr: processing of multi-channel arrays might be changed in the future: core: inconsistency of addition for multi-channel Mat and Scalar · Issue #16739 · opencv/opencv · GitHub
Error | [CLI] Engine canceled processing
I don’t understand - can’t you create a simple functional/integration test that runs the tpai.exe with a predetermined picture file and check if an output file (> 0 bytes) was written? That would ensure that the CLI at least does something before a release.
This is very frustrating, as this is the fifth time (or more) that the CLI is completely unusable in a new version of Photo AI… It still worked in 2.0.6…
P.S: Could you please add an autopilot preference to always force “sharpening” and “remove noise” (additional entry in “Enable when” saying “Always On”). It’s the only thing I still can’t force for the CLI - and there are many cases, when a picture is blurry and PAI doesn’t see it that way. I know what pictures need sharpening (I named them with a _blurred suffix), so I need some sort of way to force PAI CLI to sharpen them.
Thanks.
Topaz Photo AI [v2.0.7] on [Windows]