Initial support for raster masks

Hi @ThomasO

I have prepared a win64 portable package, you can find it at:

Just unpack the .7z, no installation is required.
You still need to install one of the SAM2 models though. By default, the configuration expects sam2.1_hiera_base_plus.pt: just download the file and put it in the models/ directory of SMART, then run SMART.exe. The first execution will simply result in a message box saying that it has created a default configuration for you. Just click ‘OK’ and run SMART.exe again, this time you should get the main window.

Note that by default the model is run on your CPU, which might be a bit slow. If you have an NVIDIA card, you can change the value of "device" in the configuration file (should be something like c:\Users\<USER>\AppData\Local\artpixls-SMART.json) to "cuda". You can also change the model name if you want to experiment with a different one (e.g. the larger sam2.1_hiera_large.pt should give more precise results but might also be slower).

HTH

4 Likes