Hi Allan,

g.extension fails in that case on Windows, yes, and modules are not 
conveniently available to end users.

However, i.ann.maskrcnn does not require compilation since it is a Python tool. 
So, you could manually copy the Python scripts into your AddOn directory (not 
ad-hoc sure where the library parts of maskrcnn are supposed to go). That way 
they should be usable.

There are more developer oriented notes for Windows here:
https://trac.osgeo.org/grass/wiki/CompileOnWindows

Hope that helps a bit.
You may get further responses and more support on the GRASS developers list: 
grass-...@lists.osgeo.org<mailto:grass-...@lists.osgeo.org>

Cheers,
Stefan


From: Allan Sims <sims.al...@gmail.com>
Sent: onsdag 11. november 2020 10:07
To: Stefan Blumentrath <stefan.blumentr...@nina.no>
Cc: GRASS-PSC <grass-psc@lists.osgeo.org>
Subject: Re: [GRASS-PSC] Contribution in AddOns

Dear Stefan,

According to the manual: On MS-Windows systems, where compilation tools are 
typically not readily locally installed, g.extension downloads a precompiled 
executable from the GRASS GIS project server.
So, end-user in Windows can't do anything if precompiled file contains errors?

Regards,
Allan


On Wed, 11 Nov 2020 at 09:58, Stefan Blumentrath 
<stefan.blumentr...@nina.no<mailto:stefan.blumentr...@nina.no>> wrote:
Hi Allan,

There are definitely more developers on Linux/UNIX, but developing on windows 
should work and not be an issue, esp. when working with Python.

The reason that there are no precompiled versions (and manual) for 
i.ann.maskrcnn.detect is due to the import of skimage (see below). Using lazy 
importing for skimage should fix this…

Cheers,
Stefan

grass783/x86_64/addons/mswindows/osgeo4w/lib:/c/Users/landa/grass_packager/grass783/x86_64/addons/mswindows/osgeo4w:/c/windows32/system32:/c/windows:/c/windows32/system32:/c/windows"
 LC_ALL=C LANG=C LANGUAGE=C 
/c/Users/landa/grass_packager/grass784/x86_64/addons/i.ann.maskrcnn/scripts/i.ann.maskrcnn.detect.py<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fi.ann.maskrcnn.detect.py%2F&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C03053a24b2b34d4dd96908d886213f22%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637406824638388645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SaEQFNwnchxpkEHucs%2BE7LcPNKR%2BrFDoluzA2546SbU%3D&reserved=0>
 --html-description < /dev/null | grep -v '</body>\|</html>' > 
i.ann.maskrcnn.detect.tmp.html ; fi
Traceback (most recent call last):
  File 
"C:/Users/landa/grass_packager/grass784/x86_64/addons/i.ann.maskrcnn/scripts/i.ann.maskrcnn.detect.py<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fi.ann.maskrcnn.detect.py%2F&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C03053a24b2b34d4dd96908d886213f22%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637406824638388645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SaEQFNwnchxpkEHucs%2BE7LcPNKR%2BrFDoluzA2546SbU%3D&reserved=0>",
 line 87, in <module>
    from skimage.measure import find_contours
ModuleNotFoundError: No module named 'skimage'
make[1]: *** [/c/msys64/usr/src/grass784/include/Make/Html.make:14: 
i.ann.maskrcnn.detect.tmp.html] Error 1
rm i.ann.maskrcnn.detect.tmp.html


From: grass-psc 
<grass-psc-boun...@lists.osgeo.org<mailto:grass-psc-boun...@lists.osgeo.org>> 
On Behalf Of Allan Sims
Sent: onsdag 11. november 2020 08:35
To: Ondřej Pešek <pesej.ond...@gmail.com<mailto:pesej.ond...@gmail.com>>
Cc: GRASS-PSC <grass-psc@lists.osgeo.org<mailto:grass-psc@lists.osgeo.org>>
Subject: Re: [GRASS-PSC] Contribution in AddOns

Hi,

I'm using GRASS in Windows; however, I have some trouble to install addons via 
g.extension. And i.ann.maskrcnn is one of those I have trouble with. Precompile 
module in 
http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.4/<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwingrass.fsv.cvut.cz%2Fgrass78%2Fx86_64%2Faddons%2Fgrass-7.8.4%2F&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C03053a24b2b34d4dd96908d886213f22%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637406824638398641%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0vmCibqbBs7zdFF4LCl8IgeiPRbGkKatSIWJgWxTYxE%3D&reserved=0>
 do not contain file "i.ann.maskrcnn.detect.html" and this interrupts the 
installation. Also g.extension expects a html file for every .py file in folder 
maskrcnnlib.

How many GRASS developers use Windows?

Regards,
Allan

On Wed, 11 Nov 2020 at 08:59, Ondřej Pešek 
<pesej.ond...@gmail.com<mailto:pesej.ond...@gmail.com>> wrote:
Hi Allan,

po 9. 11. 2020 v 9:41 odesílatel Allan Sims 
<sims.al...@gmail.com<mailto:sims.al...@gmail.com>> napsal:
I need and therefore going to develop frontend for python modules "keras" and 
"tensorflow" to analyze raster images in GRASS.

Thus, I'd like to have write access for grass-addons repository and develop 
addons r.keras.*

This is just great! I'm very happy to hear that.

As Stefan mentioned, there are the i.ann.maskrcnn.* AddOns. However, these are 
still written in TF 1.x and therefore anything more modern and flexible would 
be highly appreciated.
As these modules were part of my work, feel free to contact me if having any 
question or willing to discuss something. I'm looking forward to seeing more 
ANN modules up there.

Regards,
Ondrej
_______________________________________________
grass-psc mailing list
grass-psc@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-psc

Reply via email to