Hi everybody,
I have been trying to experiment the new Meta Segment Anything Model (SAM) library on FME Desktop via a PythonCaller transformer.
After lots of debugging when making SAM compatible with the IFMERaster object, I finally reached the part in which I need to "decode a mask in COCO RLE format into binary."
This is carried out via another library, named pycocotools
"from pycocotools import mask as mask_utils
mask = mask_utils.decode(annotation["segmentation"])"
Apparently there is no way to pip install such library directly and, therefore, a workaround has been proposed by philferriere in his git repository. According to them, "on Windows, you must have the Visual C++ 2015 build tools on your path".
I downloaded Visual Studio Code Build Tools 2022, but I now lack of knowledge to understand what the necessary step-by-step is to make such library available in FME when using the PythonCaller.
Could anyone give me some help? I appreciate VERY MUCH your time and effort in advance!
Greetings,
Denis Giannelli