Problem with kernel and fast-SAM

Running a folder of images using fast-SAM requieres restarting the kernel after the SAM function